Scryfall API
Overview
Scryfall is a comprehensive Magic: The Gathering card database API that covers every printed card, including artwork, legality, and pricing data. It requires no API key and returns rich JSON objects with dozens of fields per card. It is an excellent beginner API for MTG players and developers building deck builders or collection trackers.
Beginner Tip
No API key is required. Use the /cards/named endpoint with a ?fuzzy= parameter to find a card by approximate name, which is perfect for search-as-you-type features.
Available Data
Example Response
{
"id": 1,
"name": "Scryfall",
"data": "Magic: The Gathering database",
"source": "Scryfall"
} Field Reference
id Scryfall UUID uniquely identifying this specific printing of the card name Full card name as printed mana_cost Mana cost in symbolic notation, e.g., {2}{U}{U} type_line Full type line including supertypes, types, and subtypes oracle_text Canonical rules text for the card ability prices Market prices in USD and EUR as strings, including foil variants Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://scryfall.com/docs/api";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Age of Empires II
Age of Empires II provides programmatic access to get information about age of empires ii resources via REST API.
AmiiboAPI
AmiiboAPI provides programmatic access to nintendo amiibo information via REST API.
Animal Crossing: New Horizons
⭐ Beginner's PickThe Animal Crossing: New Horizons API gives you free access to in-game data including villagers, critters, fossils, art, music, and furniture.
Autochess VNG
The Autochess VNG API provides game data for the Autochess VNG mobile game including heroes, items, and races.
Barter.VG
Barter.VG aggregates data about PC games, DLC, bundles, giveaways, and trading from Steam and other platforms.