MTGGoldfish APImtggoldfish.com ↗
Access MTGGoldfish metagame breakdowns, archetype popularity stats, and full deck lists by format or deck ID via a structured JSON API.
What is the MTGGoldfish API?
The MTGGoldfish API exposes 3 endpoints covering Magic: The Gathering metagame data, including archetype popularity, mana composition, and card-level deck lists. The get_metagame endpoint returns meta share percentages and paper/online prices across formats like Modern, Pioneer, and Legacy. The get_archetype_decks endpoint lists recent tournament decks with pilot and event details, and get_deck returns a complete card list grouped by section for any numeric deck ID.
curl -X GET 'https://api.parse.bot/scraper/4836cefe-c334-4463-86c6-73a648a3efd8/get_metagame?format=standard' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace mtggoldfish-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""MTGGoldfish SDK — explore metagame archetypes, browse recent decks, inspect card lists."""
from parse_apis.mtggoldfish_api import MTGGoldfish, Format, NotFound
client = MTGGoldfish()
# Fetch the Modern metagame and inspect top archetypes
metagame = client.metagames.get(format=Format.MODERN)
print(f"Format: {metagame.format}, archetypes: {len(metagame.archetypes)}")
# Drill into the top archetype's recent decks
top = metagame.archetypes[0]
print(f"Top archetype: {top.name}, meta share: {top.meta_percentage}, decks: {top.num_decks}")
print(f"Prices — paper: {top.prices.paper}, online: {top.prices.online}")
# List recent decks for that archetype (bounded)
for deck_summary in top.decks(limit=3):
print(f" Deck {deck_summary.deck_id} by {deck_summary.pilot} at {deck_summary.event}")
# Get full card list for one deck
first_deck = top.decks(limit=1).first()
if first_deck:
full = first_deck.details()
print(f"Deck: {full.deck_name} ({len(full.cards)} cards)")
for card in full.cards[:5]:
print(f" {card.count}x {card.name} [{card.section}]")
# Typed error handling: attempt to fetch a non-existent deck
try:
client.decks.get(deck_id="9999999999")
except NotFound:
print("Deck not found — expected for invalid ID")
print("Exercised: metagames.get / archetype.decks / deck_summary.details / decks.get")
Retrieves MTG metagame archetypes and their popularity statistics for a specific format. Returns archetype names, mana colors, meta share percentages, deck counts, and paper/online prices. Each archetype includes an archetype_url path that can be passed to get_archetype_decks to list recent decks.
| Param | Type | Description |
|---|---|---|
| format | string | The MTG format to fetch the metagame for. |
{
"type": "object",
"fields": {
"format": "string — the format queried",
"archetypes": "array of archetype objects with name, archetype_url, mana_types, meta_percentage, num_decks, and prices"
},
"sample": {
"data": {
"format": "modern",
"archetypes": [
{
"name": "Affinity",
"prices": {
"paper": "$ 1,133",
"online": "343 tix"
},
"num_decks": 280,
"mana_types": [
"Blue",
"Red"
],
"archetype_url": "/archetype/modern-affinity#online",
"meta_percentage": "11.5%"
}
]
},
"status": "success"
}
}About the MTGGoldfish API
Metagame Coverage by Format
The get_metagame endpoint accepts an optional format parameter (e.g. standard, modern, pioneer, legacy, pauper, vintage) and returns an array of archetype objects. Each archetype includes its name, archetype_url, mana_types (the color composition), meta_percentage (share of the metagame), num_decks (count of tracked decks), and both paper and online prices. This makes it straightforward to build metagame snapshots, track format diversity, or compare budget options across archetypes.
Archetype Drill-Down
The get_archetype_decks endpoint takes a path parameter matching the MTGGoldfish archetype URL path (e.g. /archetype/modern-boros-energy) and returns a list of recently played decks. Each deck object includes a deck_id, name, url, pilot (the player's name), and event (the tournament or league where it was played). This lets you see which versions of an archetype are actively performing and cross-reference pilots across events.
Full Deck Lists
With a numeric deck_id from either get_metagame (via archetype_url) or get_archetype_decks, you can call get_deck to retrieve every card in that deck. The response includes the deck_name (with pilot), the deck_id, and a cards array where each entry has a count, name, and section (e.g. Mainboard, Sideboard). This structure is suitable for card frequency analysis, sideboard pattern research, or building collection tools.
The MTGGoldfish API is a managed, monitored endpoint for mtggoldfish.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when mtggoldfish.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official mtggoldfish.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Track metagame share shifts across Modern or Pioneer over time using
meta_percentageandnum_decks - Compare paper vs. online prices for top archetypes in a given format to inform budget deck decisions
- Aggregate card counts across
get_archetype_decksresults to find the most-played mainboard cards in an archetype - Map pilot names to events to identify consistently top-performing players in a format
- Build a sideboard tracker by parsing the
sectionfield fromget_deckresponses across multiple decks - Monitor archetype diversity in Pauper or Legacy by counting distinct archetypes returned by
get_metagame - Seed a card collection wishlist by pulling full deck lists for target archetypes via
get_deck
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MTGGoldfish have an official developer API?+
What does `get_metagame` return for mana types, and how granular is the color data?+
mana_types field representing the color or color combination of the deck (e.g. Boros, Grixis, Mono-Green). This is a label rather than a per-card breakdown — it reflects the archetype's identity as listed on MTGGoldfish, not a computed color distribution from the decklist.Can I filter `get_archetype_decks` by event type or date range?+
event field you can filter client-side. You can fork the API on Parse and revise it to add server-side filtering parameters.Does the API cover card prices at the individual card level within a deck?+
get_metagame, but get_deck returns only count, name, and section per card — no per-card price fields. You can fork the API on Parse and revise it to add card-level price data to the deck endpoint.