BETA
API
MTG Drain exposes a small public read-only API, in beta: no stability guarantee, endpoints may change without notice. Card data always stays free, in line with Scryfall's ToS.
Base URL
https://mtgdrain.com/api/v1
Rate limit
60 requests per minute per IP. Responses are JSON.
Public endpoints (read-only)
GET
/cards
Card search and listing (paginated)
GET
/cards/{id}
Single card detail
GET
/cards/{id}/price-history
Card price history
GET
/cards/{id}/condition-prices
Prices by condition and language (CardTrader)
GET
/cards/{id}/condition-price-history
Price history by condition
GET
/sets
Set list
GET
/sets/{code}
Single set detail
GET
/sets/{code}/cards
Cards of a set
GET
/formats
Play formats list
GET
/formats/{slug}
Single format detail
GET
/rules/chapters
Comprehensive Rules chapters
GET
/rules/search?q={query}
Rules search
GET
/rules/{section}
Single rules section
GET
/decks/featured
Featured official preconstructed decks
GET
/decks/featured/{id}
Featured deck detail
GET
/decks/featured/{id}/export
Featured deck text export
GET
/decks/shared/{token}
Deck shared via public token
GET
/tournaments/discover
Public tournaments open for registration
Required attribution
If you use this data you must credit the sources: card data and images come from Scryfall and MTGJSON. MTG Drain is Unofficial Fan Content — Magic: The Gathering is property of Wizards of the Coast.
Authenticated endpoints
Every other endpoint (collection, decks, games, chat…) requires a token and is reserved for the official MTG Drain apps: they are not documented nor supported for third-party use.