# Scryfall Card Search API

Search Scryfall via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, raw, and retrieve structured data including printing identifier, shared card identity, card name, card language, and applied search configuration for collection identity, and source-linked views, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/scryfall/scryfall-card-search-api/42f3a28d-1de6-4eca-93ce-5b123a4e0987/
API ID: 42f3a28d-1de6-4eca-93ce-5b123a4e0987
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/scryfall/v1/search
Page update time: 2026-12-03T02:45:04.372Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:02.769Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Scryfall Search API

q uses Scryfall search syntax such as t:dragon f:commander. unique selects cards, art or prints, distinguishing one per card, artwork or every printing. include\_extras, include\_multilingual and include\_variations widen supported record categories; order and dir control ordering. Pass next\_page as page.

## What You Can Build

- **Collection identity**: Keep source IDs and record context when matching items in a collection or card-data catalogue.
- **Source-linked views**: Link the returned metadata to the appropriate source record and follow-up detail endpoint.

## Returned Data

| Field | Meaning |
| --- | --- |
| `cards[].id` | Printing identifier |
| `cards[].oracle_id` | Shared card identity |
| `cards[].name` | Card name |
| `cards[].lang` | Card language |
| `applied_filters` | Applied search configuration |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Scryfall Card Search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "A Scryfall search query, e.g. c:red pow=3 or t:dragon f:commander."
        },
        "unique": {
          "type": "string",
          "description": "Collapse duplicates: cards (one per card), art (one per artwork) or prints (every printing).",
          "enum": [
            "cards",
            "art",
            "prints"
          ]
        },
        "order": {
          "type": "string",
          "description": "Sort field.",
          "enum": [
            "name",
            "set",
            "released",
            "rarity",
            "color",
            "usd",
            "tix",
            "eur",
            "cmc",
            "power",
            "toughness",
            "edhrec",
            "penny",
            "artist",
            "review",
            "spoiled"
          ]
        },
        "dir": {
          "type": "string",
          "description": "Sort direction.",
          "enum": [
            "auto",
            "asc",
            "desc"
          ]
        },
        "include_extras": {
          "type": "boolean",
          "description": "Also include tokens, emblems and other extras."
        },
        "include_multilingual": {
          "type": "boolean",
          "description": "Also include cards in every language."
        },
        "include_variations": {
          "type": "boolean",
          "description": "Also include rare printing variations."
        },
        "page": {
          "type": "integer",
          "description": "Page number, 1 for the first. Pass back `next_page`."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "dir": {
          "type": "string"
        },
        "order": {
          "type": "string"
        },
        "unique": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "arena_id": {
            "type": "null"
          },
          "art_crop": {
            "type": "string"
          },
          "artist": {
            "type": "string"
          },
          "cardmarket_id": {
            "type": "integer"
          },
          "cmc": {
            "type": "integer"
          },
          "collector_number": {
            "type": "string"
          },
          "color_identity": {
            "type": "array",
            "items": {}
          },
          "colors": {
            "type": "array",
            "items": {}
          },
          "defense": {
            "type": "null"
          },
          "digital": {
            "type": "boolean"
          },
          "edhrec_rank": {
            "type": "null"
          },
          "finishes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "flavor_text": {
            "type": "null"
          },
          "id": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "image_large": {
            "type": "string"
          },
          "image_png": {
            "type": "string"
          },
          "keywords": {
            "type": "array",
            "items": {}
          },
          "lang": {
            "type": "string"
          },
          "layout": {
            "type": "string"
          },
          "legalities": {
            "type": "object",
            "properties": {
              "alchemy": {
                "type": "string"
              },
              "brawl": {
                "type": "string"
              },
              "commander": {
                "type": "string"
              },
              "competitivebrawl": {
                "type": "string"
              },
              "duel": {
                "type": "string"
              },
              "future": {
                "type": "string"
              },
              "gladiator": {
                "type": "string"
              },
              "historic": {
                "type": "string"
              },
              "legacy": {
                "type": "string"
              },
              "modern": {
                "type": "string"
              },
              "oathbreaker": {
                "type": "string"
              },
              "oldschool": {
                "type": "string"
              },
              "pauper": {
                "type": "string"
              },
              "paupercommander": {
                "type": "string"
              },
              "penny": {
                "type": "string"
              },
              "pioneer": {
                "type": "string"
              },
              "predh": {
                "type": "string"
              },
              "premodern": {
                "type": "string"
              },
              "standard": {
                "type": "string"
              },
              "standardbrawl": {
                "type": "string"
              },
              "timeless": {
                "type": "string"
              },
              "tlr": {
                "type": "string"
              },
              "vintage": {
                "type": "string"
              }
            }
          },
          "loyalty": {
            "type": "null"
          },
          "mana_cost": {
            "type": "string"
          },
          "mtgo_id": {
            "type": "integer"
          },
          "multiverse_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "name": {
            "type": "string"
          },
          "oracle_id": {
            "type": "string"
          },
          "oracle_text": {
            "type": "string"
          },
          "penny_rank": {
            "type": "null"
          },
          "power": {
            "type": "null"
          },
          "prices": {
            "type": "object",
            "properties": {
              "eur": {
                "type": "string"
              },
              "eur_foil": {
                "type": "null"
              },
              "tix": {
                "type": "string"
              },
              "usd": {
                "type": "null"
              },
              "usd_etched": {
                "type": "null"
              },
              "usd_foil": {
                "type": "null"
              }
            }
          },
          "promo": {
            "type": "boolean"
          },
          "purchase_uris": {
            "type": "object",
            "properties": {
              "cardhoarder": {
                "type": "string"
              },
              "cardmarket": {
                "type": "string"
              },
              "tcgplayer": {
                "type": "string"
              }
            }
          },
          "rarity": {
            "type": "string"
          },
          "released_at": {
            "type": "string"
          },
          "reprint": {
            "type": "boolean"
          },
          "reserved": {
            "type": "boolean"
          },
          "set": {
            "type": "string"
          },
          "set_name": {
            "type": "string"
          },
          "set_type": {
            "type": "string"
          },
          "tcgplayer_id": {
            "type": "integer"
          },
          "toughness": {
            "type": "null"
          },
          "type_line": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_page": {
      "type": "null"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "warnings": {
      "type": "array",
      "items": {}
    }
  }
}
```

## Request example
Scenario: Official example · Recorded API.SH response · Exact minimal requ
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/scryfall/v1/search?output=json&q=name%3A%22Black+Lotus%22+set%3Alea&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "dir": "auto",
    "order": "name",
    "unique": "cards"
  },
  "cached": false,
  "cards": [
    {
      "arena_id": null,
      "art_crop": "https://cards.scryfall.io/art_crop/front/b/0/b0faa7f2-b547-42c4-a810-839da50dadfe.jpg?1783948669",
      "artist": "Christopher Rush",
      "cardmarket_id": 5465,
      "cmc": 0,
      "collector_number": "232",
      "color_identity": [],
      "colors": [],
      "defense": null,
      "digital": false,
      "edhrec_rank": null,
      "finishes": [
        "nonfoil"
      ],
      "flavor_text": null,
      "id": "b0faa7f2-b547-42c4-a810-839da50dadfe",
      "image": "https://cards.scryfall.io/normal/front/b/0/b0faa7f2-b547-42c4-a810-839da50dadfe.jpg?1783948669",
      "image_large": "https://cards.scryfall.io/large/front/b/0/b0faa7f2-b547-42c4-a810-839da50dadfe.jpg?1783948669",
      "image_png": "https://cards.scryfall.io/png/front/b/0/b0faa7f2-b547-42c4-a810-839da50dadfe.png?1783948669",
      "keywords": [],
      "lang": "en",
      "layout": "normal",
      "legalities": {
        "alchemy": "not_legal",
        "brawl": "not_legal",
        "commander": "banned",
        "competitivebrawl": "not_legal",
        "duel": "banned",
        "future": "not_legal",
        "gladiator": "not_legal",
        "historic": "not_legal",
        "legacy": "banned",
        "modern": "not_legal",
        "oathbreaker": "banned",
        "oldschool": "restricted",
        "pauper": "not_legal",
        "paupercommander": "not_legal",
        "penny": "not_legal",
        "pioneer": "not_legal",
        "predh": "banned",
        "premodern": "not_legal",
        "standard": "not_legal",
        "standardbrawl": "not_legal",
        "timeless": "not_legal",
        "tlr": "banned",
        "vintage": "restricted"
      },
      "loyalty": null,
      "mana_cost": "{0}",
      "mtgo_id": 347,
      "multiverse_ids": [
        3
      ],
      "name": "Black Lotus",
      "oracle_id": "5089ec1a-f881-4d55-af14-5d996171203b",
      "oracle_text": "{T}, Sacrifice this artifact: Add three mana of any one color.",
      "penny_rank": null,
      "power": null,
      "prices": {
        "eur": "33768.47",
        "eur_foil": null,
        "tix": "491.06",
        "usd": null,
        "usd_etched": null,
        "usd_foil": null
      },
      "promo": false,
      "purchase_uris": {
        "cardhoarder": "https://www.cardhoarder.com/cards/347?affiliate_id=scryfall&ref=card-profile&utm_campaign=affiliate&utm_medium=card&utm_source=scryfall",
        "cardmarket": "https://www.cardmarket.com/en/Magic/Products?idProduct=5465&referrer=scryfall&utm_campaign=card_prices&utm_medium=text&utm_source=scryfall",
        "tcgplayer": "https://partner.tcgplayer.com/c/4931599/1830156/21018?subId1=api&u=https%3A%2F%2Fwww.tcgplayer.com%2Fproduct%2F1042%3Fpage%3D1"
      },
      "rarity": "rare",
      "released_at": "1993-08-05",
      "reprint": false,
      "reserved": true,
      "set": "lea",
      "set_name": "Limited Edition Alpha",
      "set_type": "core",
      "tcgplayer_id": 1042,
      "toughness": null,
      "type_line": "Artifact",
      "url": "https://scryfall.com/card/lea/232/black-lotus"
    }
  ],
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-20T05:21:53.692Z",
  "next_page": null,
  "page": 1,
  "query": "name:\"Black Lotus\" set:lea",
  "total": 1,
  "warnings": []
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I include every printing?
Set unique=prints; cards selects one per card and art one per artwork.

### Can I include tokens or other extras?
Use include_extras.

### How do I include other languages and rare variations?
Use include_multilingual and include_variations as needed.

### How do I continue search results?
Pass next_page as page with the same query and options.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/scryfall/scryfall-card-search-api/42f3a28d-1de6-4eca-93ce-5b123a4e0987/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
