Scryfall · Schema

Scryfall Set

A Magic: The Gathering set or product as catalogued by Scryfall.

Games And ComicsMagic The GatheringCard DataOpen DataFreeCommunity FundedPublic APIs

Properties

Name Type Description
object string
id string
code string The unique three-to-five-letter set code.
mtgo_code string
arena_code string
tcgplayer_id integer
name string
set_type string core, expansion, masters, alchemy, masterpiece, arsenal, from_the_vault, spellbook, premium_deck, duel_deck, draft_innovation, treasure_chest, commander, planechase, archenemy, vanguard, funny, starte
released_at string
block_code string
block string
parent_set_code string
card_count integer
printed_size integer
digital boolean
foil_only boolean
nonfoil_only boolean
scryfall_uri string
uri string
icon_svg_uri string
search_uri string
View JSON Schema on GitHub

JSON Schema

scryfall-set-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/scryfall/main/json-schema/scryfall-set-schema.json",
  "title": "Scryfall Set",
  "description": "A Magic: The Gathering set or product as catalogued by Scryfall.",
  "type": "object",
  "required": ["object", "id", "code", "name", "set_type"],
  "properties": {
    "object": { "type": "string", "const": "set" },
    "id": { "type": "string", "format": "uuid" },
    "code": { "type": "string", "description": "The unique three-to-five-letter set code." },
    "mtgo_code": { "type": "string" },
    "arena_code": { "type": "string" },
    "tcgplayer_id": { "type": "integer" },
    "name": { "type": "string" },
    "set_type": { "type": "string", "description": "core, expansion, masters, alchemy, masterpiece, arsenal, from_the_vault, spellbook, premium_deck, duel_deck, draft_innovation, treasure_chest, commander, planechase, archenemy, vanguard, funny, starter, box, promo, token, memorabilia, minigame." },
    "released_at": { "type": "string", "format": "date" },
    "block_code": { "type": "string" },
    "block": { "type": "string" },
    "parent_set_code": { "type": "string" },
    "card_count": { "type": "integer" },
    "printed_size": { "type": "integer" },
    "digital": { "type": "boolean" },
    "foil_only": { "type": "boolean" },
    "nonfoil_only": { "type": "boolean" },
    "scryfall_uri": { "type": "string", "format": "uri" },
    "uri": { "type": "string", "format": "uri" },
    "icon_svg_uri": { "type": "string", "format": "uri" },
    "search_uri": { "type": "string", "format": "uri" }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/scryfall-set"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.