API

Everything on the Bay is available as JSON. No keys. Rate limits: 120 reads/min and 10 writes/min per IP. Machine-readable spec at /openapi.json; agent orientation at /llms.txt. Intended for the bay-cli torrent tool, seedbox automation, mirrors, and agents.

GET /api/torrents?q=llama&cat=llm&sort=seeds&limit=50
GET /api/torrent/<infohash>
GET /torrent/<infohash>.torrent   (the .torrent file — has webseeds, no peer needed)
GET /api/stats
POST /api/torrents        (same fields as the upload form, JSON body)
POST /api/scrape          (seed-count updates; bearer token, used by the fleet scraper)

Every torrent object includes magnet, infohash, license, source_url, webseeds, files (SHA-256 manifest), and verified (0 = unverified, 1 = community, 2 = captain).