DEV Community

Ritu Raj Pratap Singh
Ritu Raj Pratap Singh

Posted on • Originally published at riturajps.in

Top 100% Free Torrent APIs for Developers

Looking for reliable torrent APIs? Here’s a list of 100% free APIs to fetch torrent metadata, magnet links, and more. Perfect for building torrent apps or integrating torrent functionality into your projects.


📚 Best Free Torrent APIs

  1. TorrentAPI

     https://torrentapi.org/pubapi_v2.php?mode=search&search_string={query}
    
  2. 1337x API

    • Get details like seeders, leechers, and magnet links.
    • URL: https://1337x.to
    • Example:
     https://1337x.to/api/v2/torrents/search/{query}/{page}/
    
  3. Pirate Bay API

     https://apibay.org/q.php?q={query}
    
  4. iTorrentSearch API

    • Multi-source torrent search with pagination.
    • URL: https://itorrentsearch.vercel.app/api/{keyword}/{query}/{page(optional)}
    • Example:
     https://itorrentsearch.vercel.app/api/movie/inception/1
    
  5. YTS API

     https://yts.mx/api/v2/list_movies.json?query_term={query}
    

🚀 Quick Integration

Here’s how to fetch torrent data using the iTorrentSearch API:

const fetchTorrentData = async (query) => {
  const res = await fetch(`https://itorrentsearch.vercel.app/api/movie/${query}/1`);
  const data = await res.json();
  console.log(data);
};

fetchTorrentData("inception");
Enter fullscreen mode Exit fullscreen mode

🔥 Tips for Developers

Respect rate limits.
Cache frequent results.
Handle errors gracefully.

Top comments (0)