According to the Linkshare help docs you can get a list of default URLs for all advertisers in your program (by joining data from two APIs), but those will still be affiliate links on Linkshare redirect domains. You would then need to write a script to visit those links and return the final destination URL, then grab the root domain of the URL.
Steps:
- Follow the instructions here: http://helpcenter.linkshare.com/publisher/questions.php?questionid=1030
- Write a script in your language of choice to cURL the affiliate link and grab
curl_getinfo(curl_init(), CURLINFO_EFFECTIVE_URL);
to see where it's redirecting to. - Parse the response with a RegExp to grab just the root domain like
http[s]?://([^/]+)