Want an easy way to include the hottest topics directly on your Web site?
Well, if you can open a socket and parse XML, you're ready to go...
Our API allows you to grab the top 5 wired, tired, active and recent topics
from the category of your choosing. Just open a socket and parse the contents
from the following URL structure:
http://www.wiredortired.com/api/[category]
To get the topics for all categories, use "all" as the category name:
http://www.wiredortired.com/api/all
Replace any spaces in the category name with a "-":
http://www.wiredortired.com/api/web-sites
The returned XML is structured like this:
<topics>
<wired>
<topic>
<title>Some title</title>
<byline>Some byline</byline>
<link>http://www.wiredortired.com/path-to-topic-detail-page</link>
<thumbnail>http://path-to-thumbnail-image</thumbnail>
<fullsize>http://path-to-full-size-image</fullsize>
<comments>[number of comments]</comments>
<links>[number of links]</links>
<score>[WT score]</score>
<rank>[Ranking within the category]</rank>
</topic>
...
</wired>
<tired>
<topic>...</topic>
</tired>
<recent>
<topic>...</topic>
</recent>
<active>
<topic>...</topic>
</active>
</topics>