FindTorrent.queryYts()

Query YTS Torrents.

Usage

Hover over inputs/exits for more info.

var FindTorrent = require('machinepack-findtorrent');


// Query YTS Torrents.

FindTorrent.queryYts({

query: '',

apiUrl: 'https://yts.ag',

sortByKey: 'seeds',

sortOrder: 'desc',

page: 1,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

query required

The torrent query

''
apiUrl

The URL of the API

'https://yts.ag'
sortByKey

The key to sort the torrents by.

'seeds'
sortOrder

The sort order for the given sort key.

'desc'
page

The page number

1

Exits

error

An unexpected error occurred.

success

OK.