
Magic: The Gathering Card Scraper (Scryfall)
hipersoft/scryfall-scraper
Scrape Magic: The Gathering card data from Scryfall: name, set, type, mana cost, rarity, oracle text, colors, power/toughness, USD/EUR prices, format legality and card image. Use Scryfall search syntax. One row per card as JSON, CSV or Excel.
Total users
2Monthly users
1Total runs
37Per card scraped
$0.0004Last rebuilt
Oct 26, 2026Overview
Scrape Magic: The Gathering card data with the MTG Card Scraper, powered by Scryfall search. Query cards with Scryfall's powerful syntax and export each one's name, set, type, mana cost, rarity, oracle text, colors, power/toughness, USD/EUR prices, format legality and card image โ one clean row per card as JSON, CSV or Excel.
Built for deck builders, card-price trackers, collection managers, MTG apps and market research, it turns a search into a structured card dataset with prices.
What it does
- ๐ Full card data โ name, set, collector number, type line, mana cost, CMC, colors, oracle text, power/toughness and keywords.
- ๐ต Prices โ USD, USD foil, EUR and MTGO tix.
- โ๏ธ Legality โ Standard, Modern and Commander legality for each card.
- ๐ Powerful search โ use full Scryfall syntax (
t:dragon c:r,set:mh3 r:mythic,o:draw). - ๐ผ๏ธ Images โ a card image URL and the Scryfall page link.
- ๐ Auto-pagination โ pulls every matching card, not just the first page.
- ๐ค Export anywhere โ JSON, CSV or Excel, or straight into a deck tool, sheet or dashboard.
Example output
{
"name": "Adult Gold Dragon",
"setName": "Adventures in the Forgotten Realms",
"typeLine": "Creature โ Dragon",
"manaCost": "{3}{R}{W}",
"rarity": "rare",
"priceUsd": 0.37,
"power": "4",
"toughness": "3",
"legalCommander": "legal"
}
How to use it
- Add one or more card searches using Scryfall syntax.
- Set Max cards and run.
- Download the results as JSON, CSV or Excel.
Search tips: t: type, c: color, set: set code, r: rarity, o: oracle text, cmc<=3, is:commander. Combine them, e.g. t:dragon c:r cmc<=5.
Input fields
| Field | Description |
|---|---|
| Card searches | Scryfall-syntax searches; each paginates through all matches. |
| Max cards | Maximum cards to collect (0 = no limit). |
Output fields
id, name, setName, set, collectorNumber, rarity, typeLine, manaCost, cmc, colors, colorIdentity, oracleText, power, toughness, keywords, priceUsd, priceUsdFoil, priceEur, priceTix, releasedAt, artist, legalStandard, legalModern, legalCommander, image, url.
Popular use cases
- Deck building โ pull all cards matching a strategy or color identity.
- Price tracking โ export card prices for a set or collection over time.
- Collection management โ build a spreadsheet of cards with prices and rarity.
- MTG apps & bots โ power search and card detail with structured data.
- Market research โ analyse prices, rarity and legality across sets.
FAQ
Do I need an account or key? No. Enter a search and run.
What search syntax can I use? Full Scryfall search syntax โ types, colors, sets, rarity, oracle text, mana value and more can be combined.
Are prices included? Yes โ USD, USD foil, EUR and MTGO tix where available.
Can I export to Excel or Google Sheets? Yes โ results download as JSON, CSV or Excel and integrate with Sheets, deck tools and dashboards.
Scrape Magic: The Gathering cards with prices using powerful search โ clean, complete and export-ready for deck building, pricing and collection tools.
Input
| Field | Type | Description |
|---|---|---|
searchQueriesCard searches | array | Card searches using Scryfall syntax โ e.g. 'lightning bolt', 't:dragon c:r' (red dragons), 'set:mh3 r:mythic', 'o:draw c:u'. Each runs its own search and paginates through all matches. |
maxItemsMax cards | integer | Maximum number of cards to collect (0 = no limit). Default: 175 |
API
curl -X POST "https://api.apify.com/v2/acts/hipersoft~scryfall-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"searchQueries": [
"t:dragon c:r"
]
}'from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("hipersoft/scryfall-scraper").call(run_input={
"searchQueries": [
"t:dragon c:r"
]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hipersoft/scryfall-scraper').call({
"searchQueries": [
"t:dragon c:r"
]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);Pricing
| Event | Price | Paid plans from |
|---|---|---|
| Card scraped Charged for each MTG card returned. | $0.0004 | $0.0002 |
You pay only for what the run returns. Set a maximum cost per run and it stops cleanly at that limit.
Related scrapers
Carousell Scraper
Scrape Carousell search listings: title, price, condition, location, seller, photo and URL. Requires your own Carousell app token.
242 runs ยท 2 users ยท $0.003 / listing scrapedGoogle Flights Scraper
Scrape flight options from Google Flights by route and date: airline, flight number, departure and arrival times, duration, stops, layovers and price. One-way or round-trip, any cabin and currency. For travel and price monitoring.
216 runs ยท 4 users ยท $0.004 / flight scrapedPinterest Scraper
Search Pinterest and scrape pins (title, description, destination link, image, pinner, board, saves), boards and users. Fast. For visual research, e-commerce, trend and marketing analysis.
151 runs ยท 2 users ยท $0.0034 / item scrapedGoogle Trends Scraper
Scrape Google Trends for any keyword: interest over time, related and rising queries, and interest by region. Per country and timeframe. For SEO, market and trend research. No setup.
139 runs ยท 6 users ยท $0.001 / keyword scrapedAliExpress Product Search Scraper
Search AliExpress by keyword and export one clean row per product โ title, sale price, original price, image and product URL. Export to JSON, CSV or Excel.
135 runs ยท 3 users ยท $0.003 / product scrapedGoogle Maps Scraper
Search Google Maps and scrape places: name, category, full address, city, coordinates, rating, phone, website, Place ID and map link. Fast browser-free via Google's internal endpoint, no setup. For local lead generation and market research.
130 runs ยท 2 users ยท $0.005 / place scrapedSend the site and the fields. We build it and you get it first.