Seedpeer API Documentation
Draft number 0.0.5 Revised StableThis documentation will explain what the API is and what can be accomplished with it. This service can only be used by developers who want to integrate our search results into their meta search engine/website/blog or software. It is not allowed to use this API to offer direct downloads without our written consent.
Api requests require several variables, in this section we are going to discuss the most basic and most primitive of them.
Basic API requests
All request are done with the GET method and must be fired at http://api.seedpeer.com/ , the &apikey= must be the url of your website or application thats making use of this API. bellow you will find a list of request types:Providing a false url in the &apikey= variable will result in a server wide ban
Search Torrents
?apitype=search&query=search term&apikey=http://www.yoursite.com Use this variable if you want to search inside a specific category: Optional: &maincat=anime|games|movies|music|software|tv shows|othersTodays Torrents
?apitype=latest&apikey=http://www.yoursite.comTorrents by member
?apitype=user&username=axxo&apikey=http://www.yoursite.comTorrents by category
?apitype=category&maincat=anime|games|movies|music|software|tv shows|others + &apikey=http://www.yoursite.comTorrents by sub category
?apitype=subcategory&maincat=anime|games|movies|music|software|tv shows|others &subcat=subcatname + &apikey=http://www.yoursite.comVerified Torrents
?apitype=verified&apikey=http://www.yoursite.comThe API allows sorting torrents in many ways. However, this variable is optional, if not specified the output is going to be sorted by date in a descending fashion (ORDER BY * DESC for the mysql guys).
&sort = filename_asc filename_desc date_desc date_asc size_desc size_asc seeds_desc seeds_asc peers_desc peers_asc health_desc health_asc verified_desc verified_asc comments_desc comments_asc reportreal_asc reportreal_asc reportwarn_asc reportwarn_ascBy default only 50 torrents are displayed, you can choose any number starting from 1 up to 250 torrents. This variable is also optional. In case a maximum of 250 is not enough, the &page= variable will come in very handy.
This optional variable allows you to browse torrents beyond the max. value of the limit variable above.
In total we have 3 output formats:
php
The php format is basically an array that has been serialized with serialize() , to convert it back to an array use the unserialize() function inside php.
json
This format is commonly used in combination with javascript/ajax, but can also be converted into an array with the php json_decode() function (php 5.2.0)
xml (default)
The xml format is easy to parse by any language out there. Die hard php developers should check out the simplexml() function.
id -> Torrent id url -> Url to the details page hash -> Hash of the torrent filename -> Filename added -> Date torrent was added in unix epoch category -> The main category subcategory -> The subcategory filesize -> Size of the file in bytes seeds -> Number of seeds peers -> Number of peers comments -> Number of comments warnings -> Number of times the file has been reported as bad reportedreal -> Number of times the file has been reported as real verified -> 0 or 1 , 1 means that the file has been verified by our admins