Do not build a production system relying on the TGx unofficial API. Instead:
The most reliable way to use TGx is via proxy applications:
| Tool | TGx Support Method | | :--- | :--- | | Jackett | Custom indexer with HTML scraper | | Prowlarr | Uses Jackett's definition | | FlexGet | RSS only (limited) | | qBittorrent Search | Built-in TGx plugin (Python scraper) | Torrentgalaxy Api -
These tools handle login cookies, CAPTCHA triggers, and HTML parsing for you.
If you need to query Torrentgalaxy from an application (like Sonarr or a custom Python script), you should never try to call the site directly. Instead, you use an API abstraction layer. Do not build a production system relying on
If you are determined to build your own raw scraper for Torrentgalaxy without Jackett, you must be prepared for a cat-and-mouse game. Here are the technical hurdles you will face:
Once you have Jackett running, interacting with TGx becomes trivial: Instead, you use an API abstraction layer
import requests
JACKETT_URL = "http://localhost:9117"
API_KEY = "your_jackett_api_key"
INDEXER_ID = "torrentgalaxy" # The ID Jackett gives to TGx
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.