User Macro to get Referral Links for pages in a space

I am building a macro that will display the title of and a link to all the Pages in the current Space. I also need to display all external referral links (Hot Links) so that before the space is archived I know who to notify.
How do I get a list of the referral links?

Thanks!

Hey there, did you managed to do this.