1.0.0 • Published 6 years ago

xtorrent v1.0.0

Weekly downloads
316
License
MIT
Repository
github
Last release
6 years ago

1337x Unoffical api module

Install

npm install xtorrent

Usage

const xtorrent = require('xtorrent');

Search

Simple search

xtorrent.search({query: 'New Girl S01E12'}).then(data => {
  console.log(data);
});

Advanced search

xtorrent
  .search({
    query: 'Battlestar Galactica',
    category: 'TV',
    orderBy: 'time',
    sortBy: 'desc',
    page: 2,
  })
  .then(data => {
    console.log(data);
  });

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
  .info(
    'http://1337x.org/torrent/738290/Brooklyn-Nine-Nine-S01E15-HDTV-x264-2HD-ettv/',
  )
  .then(data => {
    console.log(data);
  });
1.0.0

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.4

6 years ago

0.2.3

7 years ago

0.2.2

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago

0.0.0

11 years ago