1. Example request (get) 2. No results were found (or wrong 'phrase' given with a 'related' token): <hasResults>0</hasResults> 3. Error response message (if something went wrong or invalid data were used):
http://www.rapidshare8.com/api.php?key=8xxxx8659780e0bc6d2ca41ab731e&query=china
2. Example response (XML)
1. Successful response for the example request (above):
<?xml version="1.0" encoding="UTF-8" ?>
- <answer>
<hasResults>1</hasResults>
- <results>
<hitsTotal>2</hitsTotal>
<pageNumber>1</pageNumber>
<hitsForThisPage>1</hitsForThisPage>
- <hits id="1">
<name>China_Rising_9780231141888.rar</name>
<extension>rar</extension>
<size>~10 MB</size>
<description>rapidshare.com</description>
<address>http://www.rapidshare8.com/search.php?key=China_Rising_9780231141888.rar</address>
<details>http://www.rapidshare8.com/</details>
<tags />
<rate>5.00</rate>
<added>2008-11-21 12:39:14</added>
<related />
<password />
</hits>
- <hits id="2">
<name>China_Rising.rar</name>
<extension>rar</extension>
<size>~10 MB</size>
<description>rapidshare.com</description>
<address>http://www.rapidshare8.com/search.php?key=China_Rising.rar</address>
<details>http://www.rapidshare8.com/</details>
<tags />
<rate>5.00</rate>
<added>2008-11-22 03:07:51</added>
<related />
<password />
</hits>
</results>
</answer>
<?xml version="1.0" encoding="UTF-8" ?>
<answer>
</answer>
<?xml version="1.0" encoding="UTF-8" ?>
- <error>
<message>Please specify at least one query string</message>
</error>