Moxfield APImoxfield.com ↗
Access Magic: The Gathering card data, images, pricing, legalities, and public decklists from Moxfield via 6 structured API endpoints.
What is the Moxfield API?
The Moxfield API exposes 6 endpoints for retrieving Magic: The Gathering card data, deck lists, and card images from Moxfield. Use search_card_images to query cards by name or Scryfall syntax and receive per-face image URLs, or call get_card_details to get a single card's prices, legalities, artist, rarity, and all known editions. User deck data is available through get_user_decks and get_deck_cards, which return full board breakdowns with per-card metadata.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/55189296-4a3a-4cd2-a006-802b22cd2b73/get_startup_card_images' \ -H 'X-API-Key: $PARSE_API_KEY'
Retrieves card image URLs from the Moxfield startup card list. Returns all standard-resolution (488x680 webp) card images available in the anonymous startup payload. No parameters required; useful for bootstrapping a card image collection without a search query.
No input parameters required.
{
"type": "object",
"fields": {
"count": "integer total number of images discovered",
"images": "array of objects with link (URL string), source (discovery method string), and dimensions (string)"
},
"sample": {
"data": {
"count": 558,
"images": [
{
"link": "https://assets.moxfield.net/cards/card-E02VW-normal.webp",
"source": "startup",
"dimensions": "488x680"
}
]
},
"status": "success"
}
}About the Moxfield API
Card Search and Image Retrieval
search_card_images accepts a query parameter using Scryfall search syntax — filters like t:creature, c:blue, or plain card names all work. Results are paginated with a configurable page_size (up to 175). Each entry in image_links includes a card_name, image_link (488×680 px WebP), dimensions, and an optional face_name for double-faced or split cards. The total_cards field lets you calculate page counts client-side. For bulk bootstrapping without a query, get_startup_card_images and discover_images return pre-collected image sets — discover_images yields over 1,000 unique images across creature, artifact, and enchantment types.
Card Detail and Edition Data
get_card_details takes a card_id (extracted from image URLs returned by search_card_images) and returns a card object with fields including id, name, set, type_line, rarity, cmc, artist, legalities, and prices. The editions array lists every known printing with per-edition cardId, abbreviation, releasedAt, and prices. Multi-faced cards return one image URL per face in image_links.
Deck Data
get_user_decks looks up all public decklists for a given username (case-insensitive), returning deck metadata: name, format, colors, color_identity, like_count, view_count, comment_count, public_url, and pagination totals. get_deck_cards takes a deck_id or full deck URL and returns the complete card list across all boards — mainboard, sideboard, maybeboard, commanders, companions, and others. Each card entry includes board, quantity, mana_cost, cmc, type_line, oracle_text, rarity, colors, and image links.
The Moxfield API is a managed, monitored endpoint for moxfield.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when moxfield.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official moxfield.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a MTG card image gallery using
discover_imagesto seed 1,000+ card images without writing queries - Implement card price tracking by polling
get_card_detailsfor thepricesfield across multiple editions - Create a deck analyzer that fetches all boards from
get_deck_cardsand aggregates mana curve and color distribution - Check card format legality using the
legalitiesobject returned byget_card_details - Browse a player's public deck history with
get_user_deckssorted by last updated date - Support Scryfall-syntax card search in a custom deckbuilder using the
queryparameter ofsearch_card_images - Enumerate all editions of a card and their release dates using the
editionsarray fromget_card_details
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Moxfield have an official public developer API?+
What card pricing data does `get_card_details` return?+
card object includes a prices field, and each entry in the editions array also carries its own prices field, so you can compare prices across printings. The specific price sources and currency fields reflect what Moxfield surfaces for that card ID.Does `search_card_images` return cards from all sets or only the latest printing?+
get_card_details with the card's ID — its editions array and image_links cover multiple printings.Can I retrieve private or unlisted Moxfield decklists through this API?+
get_user_decks and get_deck_cards only surface public decklists. Private or unlisted decks are not exposed. You can fork this API on Parse and revise it to handle additional authentication flows if that access ever becomes available.