How to get nid of all nodes that are displayed inside a view? I have view named 'xyz' set on example.com/xyz. I want to access nid of nodes that are shown by 'xyz' and show them on example.com/abc. I want to do it in a custom module. What hook i can use? 

I tried to look into views API but no ups there.
You can use views_get_view_result($name, $display_id = NULL)

API Docs: views_get_views_result();