EDHREC MTG Commander Scraper avatar

EDHREC MTG Commander Scraper

Pricing

from $31.65 / 1,000 results

Go to Apify Store
EDHREC MTG Commander Scraper

EDHREC MTG Commander Scraper

Scrapes MTG Commander rankings and deck composition from EDHREC. Returns top commanders by week, month, year, or all-time, and full card breakdowns with synergy scores for any commander slug. Optional card details include prices, salt, and color identity.

Pricing

from $31.65 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

10

Total users

0

Monthly active users

12 days ago

Last modified

Share

ParseForge

EDHREC MTG Commander Scraper

Scrape Magic: The Gathering Commander data from EDHREC, including top commanders by timeframe and full deck composition for any commander. Every row returns card names, counts, categories, synergy scores, and optional card details like prices and color identity. No API key required. Export to CSV, JSON, Excel, or XML.

EDHREC is the go-to source for Magic: The Gathering Commander (EDH) data, but browsing rankings or deck breakdowns manually across dozens of pages is slow. This Actor reads the public EDHREC feeds directly, giving you structured top commander lists by week, month, year, or all-time, plus the full card-by-card composition for any commander slug you provide. You get the same data the site shows, in one flat row per card or commander, ready for analysis.

Who uses itWhat they scrape EDHREC for
MTG content creatorsPull the latest top commanders to build weekly meta roundup articles or videos.
Competitive EDH playersTrack which commanders are rising in popularity to tune their own decks against the meta.
Deck builders and brewersFetch a commander's full card pool by category to spot underplayed includes for new builds.
MTG data analystsCollect time-series commander rankings to model format trends and card price movements.

What it does

This Actor collects MTG Commander rankings and deck composition data from EDHREC and returns each commander or card as a flat row with its category, count, synergy score, and optional card details.

  • 📋 Top commanders ranking: scrape the most popular commanders filtered by week, month, year, 2 years, or all-time.
  • 🃏 Commander deck composition: get every card in a commander's average deck, grouped by category (creatures, instants, sorceries, etc.) with counts and synergy scores.
  • 💲 Optional card details: for top commanders mode, fetch color identity, mana cost, rarity, salt score, prices, and image URL with one extra call per commander.
  • 🔢 Capped runs: set a maximum number of commanders to collect, from a single sample up to a million per run.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with EDHREC data

📈 Track the weekly Commander meta.

A content creator runs the Actor every Monday in topCommanders mode with the past week timeframe, exports the CSV, and publishes a 'Top 10 Rising Commanders' article with exact rank changes.

🧪 Brew a new deck from average lists.

A deck builder fetches the commanderDetail for 'the-ur-dragon', gets every card sorted by category and synergy, and spots three high-synergy includes they had not considered.

💰 Correlate commander popularity with card prices.

An MTG finance analyst scrapes the top 100 commanders for the past month with card details enabled, joins the data with TCGPlayer prices, and identifies cards likely to spike.

📊 Build a personal Commander power-level dataset.

A data scientist collects all-time top commanders with their salt scores and color identities, then trains a model to predict how 'salty' a new commander will be based on its colors and mana cost.

Why choose this scraper

What you get
No API keyReads EDHREC's public feeds directly, no registration or token needed.
Fixed schemaEvery row follows the same flat structure, so your CSV or database import works first time.
Timeframe slicesPull the meta for the past week, month, year, or all-time to see what is trending now versus historically.
Synergy scoresEach card in a deck composition comes with its EDHREC synergy percentage, showing how uniquely it pairs with that commander.

How it compares

This Actor focuses on top commander rankings and individual deck composition, while the EDHREC MTG Commander Meta Scraper also covers card-centric meta queries and average decklists.

FeatureParseForgeEDHREC MTG Commander Meta Scraper
Top commanders by timeframeYesNot listed
Commander deck composition with synergy scoresYesYes
Card detail fetching (prices, salt, color identity)YesNot listed
Card-centric meta queries (inclusion rates, top cards)Not listedYes
Average decklist outputNot listedYes

Configure the run

Drive the Actor by choosing a mode (top commanders ranking or commander deck composition), then set the timeframe or commander slug, and optionally enable card detail fetching. The Input tab lists every parameter.

A first run with the defaults:

{
"mode": "topCommanders",
"timeframe": "year",
"commanderSlug": "the-ur-dragon",
"maxItems": 10
}

A larger pull:

{
"mode": "topCommanders",
"timeframe": "year",
"commanderSlug": "the-ur-dragon",
"maxItems": 200
}

Pricing

Pay-per-result: $0.0422 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$4.22
1,000 results$42.20
10,000 results$422.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the EDHREC MTG Commander Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to EDHREC through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/edhrec-mtg-commander-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that your commander slug is correct. Slugs are case-sensitive and must match the EDHREC URL exactly. Try searching for the commander on edhrec.com and copying the slug from the address bar.

Why is the run so slow with fetchDetails enabled?

Each commander requires an extra API call to fetch card details. For large maxItems values, consider running without fetchDetails first, then only fetching details for the commanders you need.

Why do I see fewer results than my maxItems setting?

EDHREC only lists a finite number of commanders for each timeframe. If you set maxItems to 500 but the past week only has 200 commanders with enough decks, you will get 200 results.

Why are some synergy scores missing?

Not every card in a commander's page has a synergy score. Some categories or cards may show a count without a synergy percentage. This is normal EDHREC behavior.

Why did the commanderDetail mode return an error?

The slug may be invalid or the commander may not have enough data on EDHREC. Verify the slug on edhrec.com/commanders and try a more popular commander to confirm the Actor is working.

FAQ

QuestionAnswer
Do I need an EDHREC account or API key?No. This Actor reads the same public feeds that power the EDHREC website, so no login, registration, or key is required.
What is a commander slug and where do I find it?A slug is the URL-friendly name of a commander, like 'the-ur-dragon' or 'atraxa-praetors-voice'. You can find it by searching for a commander on edhrec.com/commanders and copying the last part of the URL.
What does the synergy score mean?Synergy is a percentage that represents how often a card appears in decks for that specific commander compared to all decks of that color identity. A high synergy score means the card is particularly good or popular with that commander.
Can I scrape all commanders at once?In topCommanders mode, you can set maxItems up to 1,000,000 to collect as many as EDHREC lists for your chosen timeframe. The Actor will paginate through the rankings automatically.
What card details are included when I enable fetchDetails?You get color identity, mana cost, rarity, salt score, price data, and a card image URL. This requires one extra API call per commander, so it will be slower for large lists.
Does this work for non-English card names?The Actor returns card names as they appear on EDHREC, which are in English. If you need localized names, you will need to join the output with a separate card database.
What is the difference between 'Past 2 years' and 'Past 2 years (alt slug)'?EDHREC serves the two-year data under two different URL slugs. Both return the same rankings, but the alt slug exists as a fallback in case the primary endpoint changes.
Can I get the full decklist as a single row instead of one row per card?No, the Actor returns one row per card in the deck composition. You can group the rows by commander in your spreadsheet or database to reconstruct the full decklist.
How often is the EDHREC data updated?EDHREC updates its rankings and deck data daily based on new decks submitted by users. Running the Actor daily will give you the freshest meta snapshot.
Can I filter by color identity or theme?The Actor does not filter by color or theme directly. It returns the full ranking list for the timeframe you choose. You can filter the output in your own analysis by the color identity field when fetchDetails is enabled.

Browse the full ParseForge collection for more scrapers.

🆘 Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by EDHREC. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.