DEVELOPER DOCUMENTATIONBuild with
Build with
Collectales.
Card identities, sets, prices and deck data for your application. Start with a request, then explore the API.
Your first API request
# Requires curl and jq. Set your base URL, Client ID and Secret first.
COLLECTALES_ACCESS_TOKEN=$(curl --fail-with-body --silent --show-error \
--request POST "$COLLECTALES_BASE_URL/oauth/token" \
--user "$COLLECTALES_CLIENT_ID:$COLLECTALES_CLIENT_SECRET" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "scope=catalog:read" | jq -er '.access_token')
curl --fail-with-body "$COLLECTALES_BASE_URL/v1/games/one-piece/cards?limit=25" \
--header "authorization: Bearer $COLLECTALES_ACCESS_TOKEN"const base = process.env.COLLECTALES_BASE_URL;
const basic = Buffer.from(
`${process.env.COLLECTALES_CLIENT_ID}:${process.env.COLLECTALES_CLIENT_SECRET}`,
).toString("base64");
const tokenResponse = await fetch(`${base}/oauth/token`, {
method: "POST",
headers: {
authorization: `Basic ${basic}`,
"content-type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({ grant_type: "client_credentials", scope: "catalog:read" }),
});
if (!tokenResponse.ok) throw new Error(`Token request failed: ${tokenResponse.status}`);
const { access_token, expires_in } = await tokenResponse.json();
const cards = await fetch(`${base}/v1/games/one-piece/cards?limit=25`, {
headers: { authorization: `Bearer ${access_token}` },
});
if (!cards.ok) throw new Error(`Card request failed: ${cards.status}`);
const { data, page } = await cards.json();
console.log(data.length, "cards · more:", page.hasMore);import os
import requests
base = os.environ["COLLECTALES_BASE_URL"]
response = requests.post(
f"{base}/oauth/token",
auth=(os.environ["COLLECTALES_CLIENT_ID"], os.environ["COLLECTALES_CLIENT_SECRET"]),
data={"grant_type": "client_credentials", "scope": "catalog:read"},
timeout=10,
)
response.raise_for_status()
access_token = response.json()["access_token"]
cards = requests.get(
f"{base}/v1/games/one-piece/cards",
headers={"authorization": f"Bearer {access_token}"},
params={"limit": 25},
timeout=10,
)
cards.raise_for_status()
body = cards.json()
print(len(body["data"]), "cards · more:", body["page"]["hasMore"])What are you building?
Find the resources your application needs.
Deck builders & meta trackers
Work with deck lists, card identities and tournament samples. Source coverage is reported separately.
Catalogs, collections & pricing
Stable card identities, sets, variants and directories — the backbone of collection and price apps.
Everything you need in production
Authentication
OAuth 2.0 client credentials and one scope per capability.
Pagination & caching
Opaque cursors and complete snapshot refreshes.
Plans & limits
Rate limits, monthly units and the headers that report them.
Errors & retries
Problem details, request IDs and safe retry rules.
Availability
Audited per-game capability status.
Changelog
Contract changes, newest first.