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
-
TorrentAPI
- Search torrents by keywords and filter by category.
- URL: https://torrentapi.org
- Example:
https://torrentapi.org/pubapi_v2.php?mode=search&search_string={query}
-
1337x API
- Get details like seeders, leechers, and magnet links.
- URL: https://1337x.to
- Example:
https://1337x.to/api/v2/torrents/search/{query}/{page}/
-
Pirate Bay API
- Access magnet links, torrent size, and more.
- URL: https://apibay.org
- Example:
https://apibay.org/q.php?q={query}
-
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
-
YTS API
- Focused on high-quality movie torrents.
- URL: https://yts.mx/api
- Example:
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");
🔥 Tips for Developers
Respect rate limits.
Cache frequent results.
Handle errors gracefully.
Top comments (0)