# Scryfall API

Category: [Fun and games](https://free-web-services.com/web-services/other/fun/)  
Page: https://free-web-services.com/web-services/other/fun/scryfall-api.html  
Documentation: https://scryfall.com/docs/api

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.

- API key: Not needed
- 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

Example request:

```sh
curl 'https://api.scryfall.com/cards/named?exact=Black+Lotus' \
  -H 'User-Agent: MyApp/1.0' \
  -H 'Accept: application/json'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

