# EDHREC Top Commanders Scraper

**Use case:** 

Get the top MTG Commander decks from EDHREC by year with popularity ranks and stats in clean structured data.

## Input

```json
{
  "mode": "topCommanders",
  "timeframe": "year",
  "commanderSlug": "the-ur-dragon",
  "fetchDetails": false,
  "maxItems": 5
}
```

## Output

```json
{
  "mode": {
    "label": "Mode",
    "format": "text"
  },
  "rank": {
    "label": "Rank",
    "format": "number"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "slug": {
    "label": "Slug",
    "format": "text"
  },
  "url": {
    "label": "Url",
    "format": "link"
  },
  "id": {
    "label": "Id",
    "format": "text"
  },
  "numDecks": {
    "label": "Num Decks",
    "format": "number"
  },
  "inclusion": {
    "label": "Inclusion",
    "format": "number"
  },
  "timeframe": {
    "label": "Timeframe",
    "format": "text"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [EDHREC Magic the Gathering Commander Scraper](https://apify.com/parseforge/edhrec-mtg-commander-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/edhrec-mtg-commander-scraper) to learn more, explore other use cases, and run it yourself.