1337x Unoffical api module
Install
npm install xtorrent
Usage
const xtorrent = ;
Search
Simple search
xtorrent;
Advanced search
xtorrent ;
Parameters
url
{string} optional.
If you need to use custom domain.
page
{integer} optional.
If you need more results you can ask for page 2, etc. Default is 1.
category
{string} optional.
To search only in the specified category.
Must be one of those values: 'Movies', 'TV', 'Games', 'Music', 'Apps', 'Documentaries', 'Anime', 'Other', 'XXX'.
orderBy
{string} optional.
To sort the results.
Must be one of those values: 'time', 'size', 'seeders', 'leechers'. Default is 'seeders'.
sortBy
{string} optional.
To sort the results.
Must be one of those values: 'desc', 'asc'. Default is 'desc'.
İnfo
xtorrent ;