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.

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️