競
Scryfall API
2 endpointsSports & GamingGlobalsocial:read
Magic: The Gathering cards and search from Scryfall's public card and search pages.
View as Markdown| GET | /scryfall/card | One Magic: The Gathering card print: mana cost, type, rules text, artist, set, rarity, prices and format legalities. |
| GET | /scryfall/search | Search Magic: The Gathering cards with Scryfall syntax (name, t:goblin, c:red cmc<=2, …); one card per name, 60 per page. |
card
GET
/v1/scryfall/cardOne Magic: The Gathering card print: mana cost, type, rules text, artist, set, rarity, prices and format legalities.
scope social:read1 unitcached 6 h
Parameters
idstring required | Set code and collector number such as lea/161, or a scryfall.com/card URL. e.g. lea/161 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
17 fields
artist | string |
id | string |
imageUrl | string |
legalities | map |
manaCost | string |
name | string |
number | string |
oracleText | string |
prices | Money[] |
amount | string |
currency | string |
rarity | string |
setCode | string |
setName | string |
stats | string |
typeLine | string |
url | string |
curl "https://api.hoshime.com/v1/scryfall/card?id=lea%2F161" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/scryfall/card?id=lea%2F161", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/scryfall/card?id=lea%2F161", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "artist": "…", "id": "abc123", "imageUrl": "https://…", "legalities": {}, "manaCost": "…", "name": "…", "number": "…", "oracleText": "…", "prices": [ { "amount": "…", "currency": "USD" } ], "rarity": "…", "setCode": "…", "setName": "…", "stats": "…", "typeLine": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "card", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "scryfall", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/scryfall/searchSearch Magic: The Gathering cards with Scryfall syntax (name, t:goblin, c:red cmc<=2, …); one card per name, 60 per page.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Scryfall search syntax, such as lightning bolt or t:goblin c:r. e.g. lightning bolt |
orderstring | Sort order.namereleasedcmcusddefault name |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
id | string |
imageUrl | string |
name | string |
number | string |
setCode | string |
url | string |
curl "https://api.hoshime.com/v1/scryfall/search?query=lightning+bolt" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/scryfall/search?query=lightning+bolt", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/scryfall/search?query=lightning+bolt", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "imageUrl": "https://…", "name": "…", "number": "…", "setCode": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "scryfall", "requestId": "req_2Xb9kQ…", "units": 1 } }