How Magnet Link Caches Download Torrent Metadata

Magnet link caches allow users to download torrent metadata directly over standard HTTP/HTTPS protocols without relying on original indexing websites or active BitTorrent trackers. Instead of waiting to discover peers through a Distributed Hash Table (DHT) or tracker responses to exchange metadata, a client or user queries centralized or distributed cache databases using the unique infohash contained in the magnet link. This article explains the underlying mechanics of how magnet links function, how cache servers acquire .torrent files, and how users retrieve metadata independently of traditional tracker infrastructure.

A standard magnet link does not contain the file directory, piece sizes, or cryptographic verification hashes needed to download data. Instead, it primarily contains a cryptographic hash of the metadata, known as the BitTorrent Info Hash (BTIH), alongside optional tracker URLs and display names:

magnet:?xt=urn:btih:EXAMPLEHEXHASH1234567890&dn=FileName

Under normal circumstances, the torrent client must use this hash to find peers via the DHT (BitTorrent Enhancement Proposal 5) or tracker announcements. Once peers are found, the client requests the actual torrent metadata from those peers using the BitTorrent Extension Protocol (BEP 9). If trackers are offline, the indexer is inaccessible, or peer availability is low, this metadata resolution phase can fail or stall indefinitely.

Magnet link caches (such as Torrage, iTorrents, and similar services) function as public archives of .torrent files. These services decouple metadata distribution from the peer-to-peer swarm using the following pipeline:

  1. Continuous Crawling and Indexing: Cache servers run active nodes on the BitTorrent DHT network. Whenever a new infohash is broadcast across the network, the cache’s crawlers actively request the metadata pieces from available peers, reconstruct the raw .torrent file, and save it to an internal database indexed specifically by the BTIH.
  2. Deterministic URL Mapping: Cache services store metadata under predictable URL patterns based entirely on the infohash. For example: https://torcache-example.com/torrent/[INFOHASH].torrent
  3. HTTP-Based Retrieval: When a user or client requires the metadata for a magnet link, it extracts the BTIH and issues a direct standard HTTP GET request to the cache server’s URL.

Bypassing Indexers and Trackers

By using a deterministic cache lookup, the metadata acquisition process bypasses traditional torrent discovery channels:

With this metadata loaded locally, the client can skip the peer-to-peer metadata handshake phase entirely and transition directly into discovering data peers and downloading file payloads via DHT, Peer Exchange (PEX), or local peer discovery.