Torrentapi.org wrapper for node using promises
For documentation, read http://torrentapi.org/apidocs_v2.txt
var tapi = require('torrentapi-js');
tapi.search('My Application', { //useragent optionnal
query:'chaplin',
limit: 50,
category:'movies'
}).then(function (results){
console.log(results); //array of objects
}).catch(function (err){
console.error(err);
});
Possible parameters:
- query | string: search by keywords
- imdb | tvdb | tmdb | themoviedb: search by id
var tapi = require('torrentapi-js');
tapi.list('My Application', { //useragent optionnal
limit: 100,
category:'tv'
}).then(function (results){
console.log(results); //array of objects
}).catch(function (err){
console.error(err);
});
Yes.
- category: movies/tv/anime/all (+porn): restrict to a specific category
- limit: from 25 to 100
- sort: by 'seeders', 'leechers' or 'last' uploaded
- min_seeders | min_leechers: restrict
- rank | verified: set to false to get more results, but unverified by the community