Max Ciccotosto
posted this on February 17, 2011 09:11 pm
The Product Portals API includes a simple way to get links back to sites related to a given search term. It is designed to make it simple to get a predictable number of domains back, so you can easily fill a given area on a page with links. The following requests are supported:
http://api.epikstores.com/search_domains
This returns the default amount (5) of random domains.
http://api.epikstores.com/search_domains/amount/8
This returns 8 random domains. The number after the term "amount/" dictates how many domains are displayed.
http://api.epikstores.com/search_domains/keyword/bed
This search will look through the main text, tabs, and popular searches of every domain for the term "bed". The default number of results it returns is 5. If it cannot find enough domains that contain "bed", it will fill up the rest of the 5 slots with randomly selected domains.
http://api.epikstores.com/search_domains/keyword/bed/amount/8
This would return 8 domains. It will return as many as it can that include the keyword 'bed'. If it does not find enough to fill all 8 slots, it will fill the rest with random domains.
<summary>
<totalResults>8</totalResults>
<domains>
<domain>
<name>missionstylefurniture.net</name>
<title>Mission Style Furniture</title>
<logo>http://s3.amazonaws.com/wp4domains/missionstylefurniture_net/upper_...>
</domain>
<domain>
<name>cat-bed.com</name>
<title>Cat Bed</title>
<logo>http://s3.amazonaws.com/wp4domains/cat-bed_com/upper_logo.gif</logo>
</domain>
</domains>
</summary>