Docs / API reference
List sources
GET /v1/sources: every source the catalog's facts and photos come from, with its kind, address, and license.
GET /v1/sourcesNo key needed while the catalog is public; with a key you get photo links on every page and a higher rate limit.
Where the data comes from. Each item's provenance names a source key per field; this is where to look the key up. Sources and licenses explains the licensing.
Example
curl "https://tablearchive.dev/v1/sources" \
-H "Authorization: Bearer $TA_KEY"const res = await fetch('https://tablearchive.dev/v1/sources', {
headers: { Authorization: `Bearer ${process.env.TA_KEY}` },
})
const data = await res.json()import os, requests
res = requests.get(
"https://tablearchive.dev/v1/sources",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
)
data = res.json()Response
{
"sources": [
{ "key": "scryfall", "name": "Scryfall", "kind": "open_data", "url": "https://scryfall.com/docs/api", "license": "Scryfall API terms; card data © Wizards of the Coast" },
{ "key": "community", "name": "Community submissions", "kind": "community", "url": null, "license": null }
]
}kind is one of manufacturer, open_data, community, other.
Errors
| Status | When |
|---|---|
429 | Rate limited; wait for Retry-After seconds |
Every error is JSON with an error message. See Rate limits and errors.