- 1377x
- Yts
- Search: Search for torrents based on keywords or specific criteria.
- Torrent Details: Get detailed information about a specific torrent.
- Download Torrent: Download a torrent file directly.
- Get Magnet Link: Retrieve the magnet link for a torrent.
npm install @pardaillan/torrent-api
- query: search query
- category: category to search in
- limit: limit the number of results
- size: limit the size of results
- sortBy: sort by seeds,leeches,date,size
- sortOrder: asc or desc
import torrentApi from 'torrent-api'
const source = await torrentApi.setSource('1377x');
// Search 'Matrix' in 'Movies' category and limit to 20 results under 1300 Mb
const torrents = await source.search({query:'Matrix', category:'Movies', limit: 20, size: 1300});
const torrents = await source.search({query:'Matrix', category:'Movies', limit: 20, size: 1300});
const torrentDetails = await source.getTorrentDetails(torrent);
const torrentDownload = await source.getTorrent(torrent, path);
const torrentMagnet = await source.getMagnet(torrent);