Magic: The Gathering API
The original TCG — 30 years of cards, real-time pricing
Magic: The Gathering is the world's oldest trading card game, releasing its first set in 1993. With over 30 years of printing history and a card pool exceeding 100,000 unique cards, MTG's market dynamics are unlike any other TCG. The Reserved List — a promise by Wizards of the Coast never to reprint specific cards — creates an absolute price floor for over 500 cards. Black Lotus, the most valuable MTG card, regularly sells for $100,000+ in high grades. The entire Alpha set commands prices that rival fine art.
Unlike rotation-based games, MTG's eternal formats (Legacy, Vintage, Commander) keep older cards in active demand indefinitely. Commander is now the most-played MTG format worldwide, and it drives distinct price pressure on cards with political, interaction, or ramp value. A card spiking in Commander can move from $5 to $50 in a weekend. Modern Horizons sets specifically target competitive formats with powerful reprints and new designs, making them the highest-impact releases for secondary market prices each year.
MTG card pricing is condition-sensitive in a way unique among TCGs. Edge wear on a 1993 Alpha card is not the same as edge wear on a 2023 card — collectors and graders treat them differently. Foil multipliers vary wildly by card and printing: some foils are 5x the non-foil price; others are barely above it. The price API returns both foil and non-foil prices where applicable, and per-condition granularity for accurate collection valuation.
What the API Provides for MTG
Foil & Non-Foil Pricing
Separate market prices for regular and foil printings. Essential for MTG where foil premiums range from negligible to 10x for the same card.
Per-Condition Breakdown
Near Mint through Damaged prices for every card. For Reserved List staples, condition dramatically affects value — an LP Power 9 card can be worth half its NM equivalent.
PSA / BGS / CGC Graded Values
Graded values for eligible MTG cards. High-grade Alpha and Beta copies increasingly trade as graded cards; the premium over raw copies is tracked here. Requires Trader plan.
90-Day Price History
Track Commander spikes, format bans, and reprint announcements over time. MTG has the most dramatic short-term price movements of any TCG. Requires Trader plan.
Set & Edition Filtering
Filter by set to isolate specific printings. A Counterspell from Legends is worth far more than a Counterspell from a Masters reprint set — set filtering lets you price each correctly.
Bulk Request Support
Submit up to 20 card lookups per request. Price a full Commander deck, evaluate a binder, or generate store buylist values in one API call rather than 100.
High-Demand MTG Cards
Key cards across Commander, Modern, Legacy, and collector markets:
Notable MTG Sets
The original prints. Alpha's black border, rounded corners, and limited print run give it permanent premium status. Beta and Unlimited copies are more liquid but still highly valued. The Power 9 lives here.
Arguably the highest-impact set for secondary market prices in Modern MTG history. Ragavan, Solitude, Grief, and numerous fetchland/dual reprints drove box prices to $300+ at peak.
The One Ring serialized card drove enormous mainstream press coverage. The full set includes competitive staples and high-value Showcase and Scene treatments commanding significant premiums.
A high-value reprint set targeting Commander staples. Tracking Dockside, Mana Crypt, and other reprints here shows the typical post-reprint price trajectory over 90 days.
Continued the Modern Horizons tradition with format-warping designs. Eldrazi and Nadu-related cards dominated competitive pricing discourse; ban watchlist price tracking is a common use case here.
Code Examples
Search MTG Cards
import { TcgLookupClient } from '@tcgpricelookup/sdk';
const tcg = new TcgLookupClient({ apiKey: 'YOUR_KEY' });
// Search for any MTG card
const results = await tcg.cards.search({
name: 'Mana Crypt',
game: 'mtg',
});
// Search by set for specific printing
const mh2Cards = await tcg.cards.search({
name: 'Ragavan',
game: 'mtg',
set: 'Modern Horizons 2',
});
console.log(results.data[0].name);
console.log(results.data[0].prices.nearMint.market); // NM non-foil market
console.log(results.data[0].prices.nearMint.foil); // NM foil market Get Card with Foil Pricing
// Get Sheoldred with full condition + foil breakdown
const card = await tcg.cards.get('dmu-107', { game: 'mtg' });
console.log(card.name); // "Sheoldred, the Apocalypse"
console.log(card.set.name); // "Dominaria United"
console.log(card.prices.nearMint.market); // NM non-foil market
console.log(card.prices.nearMint.foil); // NM foil market
console.log(card.prices.lightlyPlayed.market); // LP non-foil
console.log(card.prices.lightlyPlayed.foil); // LP foil Commander Deck Price Tool
// Price a Commander decklist (batch up to 20 cards per request)
const batch = await tcg.cards.batch([
{ name: 'Mana Crypt', game: 'mtg' },
{ name: 'Sol Ring', game: 'mtg' },
{ name: 'Dockside Extortionist', game: 'mtg' },
{ name: 'Smothering Tithe', game: 'mtg' },
{ name: 'Cyclonic Rift', game: 'mtg' },
]);
const total = batch.data.reduce((sum, card) => {
return sum + (card.prices.nearMint.market ?? 0);
}, 0);
console.log(`Staple package NM value: $${total.toFixed(2)}`); Track Commander Spike / Ban Price Movement
// 90-day history to catch Commander spike or ban announcement (Trader plan)
const history = await tcg.cards.history('card-id-here', {
game: 'mtg',
days: 90,
});
history.data.forEach(entry => {
console.log(entry.date, entry.prices.nearMint.market);
}); What People Build with MTG Price Data
Commander Deck Builders
Show live price for each card as users build their Commander deck. Display budget alternatives when a staple is too expensive. Sum the full deck cost in real time.
Store Buylist Automation
MTG stores run large buylists. Automating buylist prices from real market data, with condition-based adjustment, saves hours of manual pricing and keeps stores competitive.
MTG Finance Trackers
Watch lists for Reserved List cards, reprint monitoring, and ban/unban price impact analysis. The 90-day history endpoint is essential for this use case.
Large Collection Management
MTG collectors routinely have 10,000–100,000 cards. Batch pricing, set-based organization, and per-printing price isolation make collection valuation tractable at that scale.
Format Legality + Price Tools
Combine card legality data with real-time prices to show "cheapest Standard-legal version" or "which printing of this card is cheapest for Modern play."
Printing Comparison Tools
MTG cards have dozens of printings spanning 30 years. Show the cheapest functional printing vs. the premium collector printing for any given card.
Frequently Asked Questions
Does the API include Reserved List cards?
Can I filter MTG cards by format legality?
game: 'mtg' with set filtering for the most precise pricing.
How does MTG foil pricing work in the API?
prices.nearMint.market is the NM non-foil price, and prices.nearMint.foil is the NM foil price. Both TCGPlayer and eBay sources are separated this way where data is available.
How many different printings of a card can I access?
Get Started with the MTG API
- 1
Get a free API key
Sign up at tcgpricelookup.com/dashboard. Free plan is 200 requests/day — enough to prototype any Commander deck tool or collection tracker.
- 2
Search with
game: 'mtg'All MTG queries use the
mtggame slug. Search by name returns all printings; add a set filter for specific editions. Response includes foil and non-foil prices per condition. - 3
Use batch lookups for decklists
Submit up to 20 cards per request. A full Commander deck (99 cards + commander) takes 5 batch requests. Price a complete decklist in a fraction of a second.
- 4
Upgrade for price history and graded data
Trader plan ($14.99/mo) adds 90-day price history — essential for MTG finance and Commander spike tracking. Business plan ($89.99/mo) for high-volume store tooling.
Build with Magic: The Gathering price data
Get your free API key and start querying MTG card prices across 30 years of sets. No credit card required.