What it does
The Scryfall API gives data about Magic: The Gathering cards, sets and rulings, with card images and prices, for example for a deck builder or a collection tracker. Send HTTPS requests with your own User-Agent and an Accept header and get JSON; daily bulk files are offered too. Free, no key needed, with rate limits of 2 requests per second for card search, named and random cards and 10 per second for most other calls; the data may not be put behind a paywall.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed, with rate limits of 2 requests per second for card search, named and random cards and 10 per second for most other calls; the data may not be put behind a paywall.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- scryfall.com
More information: https://scryfall.com/docs/api
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.scryfall.com/cards/named?exact=Black+Lotus' \
-H 'User-Agent: MyApp/1.0' \
-H 'Accept: application/json'
JavaScript
const response = await fetch("https://api.scryfall.com/cards/named?exact=Black+Lotus", {
headers: {
"User-Agent": "MyApp/1.0",
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.scryfall.com/cards/named?exact=Black+Lotus",
headers={
"User-Agent": "MyApp/1.0",
"Accept": "application/json",
},
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.