TorrentGalaxy is a torrent index site; some community projects and wrappers expose an API for searching and retrieving torrent metadata. Below is a concise guide covering common endpoints, usage patterns, and examples—assuming a generic JSON REST-style API since implementations vary.
GET https://torrentgalaxy.to/torrents-rss.php
| Parameter | Value | Description |
| :--- | :--- | :--- |
| feed | latest | Recently uploaded |
| cat | 1,2,3 | Comma-separated category IDs |
| lang | 0,1 | 0=All, 1=English |
Response: Standard XML RSS 2.0 with <item> containing title, link, torrent hash. Torrentgalaxy Api -
GET https://torrentgalaxy.to/torrents.php
| Parameter | Type | Example | Description |
| :--- | :--- | :--- | :--- |
| search | string | ubuntu | Search query |
| category | int | 1 | 1=Movies, 2=TV, 3=Games, 4=Music, etc. |
| sort | string | id | id, seeders, size |
| order | string | desc | desc or asc |
Response: HTML page. No native JSON. To get JSON, you must scrape the HTML table (.tgxtable). TorrentGalaxy is a torrent index site; some community
Let's get the hard truth out of the way immediately: There is no official, publicly documented, stable REST API for Torrentgalaxy.
Unlike modern SaaS platforms or even some competing torrent sites (like Jackett-supported indexers), Torrentgalaxy operates on a relatively old-school PHP backend. The developers behind TGx have historically focused on keeping the website online through DDoS attacks, legal pressure, and server migrations—not on building a developer portal.
Send more than 10 requests per minute from a single IP, and you will be temporarily blacklisted. GET https://torrentgalaxy
Do not build a production system relying on the TGx unofficial API. Instead:
This is the heavy lifter. You can send GET requests to fetch structured data.