Skip to content
pokemontcgapi.com

Price sources

The redistribution policy in the open: every source that can appear in a price row, with its label and minimum delay.

GET/v1/prices/sources

Objects returned

Cost and plans

Cost
free, no key needed
Minimum plan
Any key, the trial included.
Key
X-Api-Key header (authentication). No key yet? POST /v1/accounts/free with an Idempotency-Key header and your email address returns one; the same key replays for 24 hours, see the quickstart. The trial is 800 credits over 30 days, no card.
Cache-Control
public, max-age=86400

Every source that can appear in a price row, with the label to print next to the number and the minimum age of any observation it carries: a figure is not served until it is older than min_delay_hours. is_own marks the composite we compute ourselves. This response does not include update cadence. Cardmarket card figures are re-read daily for Western cards and about every 48 hours for Japanese and Chinese cards; a daily point carries the latest known value. See price methodology.

Headers

Headers
NameTypeDefaultDescription
If-None-Matchstring—Send back the ETag you stored. The API returns a strong ETag on every catalogue response, and a 304 is a header exchange: no body, no database row read.

Example request

request.tsrequest.py
curl -s "https://api.pokemontcgapi.com/v1/prices/sources" \
  -H "X-Api-Key: $PTCG_API_KEY"
const url = new URL("https://api.pokemontcgapi.com/v1/prices/sources");

const res = await fetch(url, {
  headers: { "X-Api-Key": process.env.PTCG_API_KEY ?? "" },
});

if (!res.ok) {
  const { error } = await res.json();
  throw new Error(`${error.code}: ${error.message} (${error.request_id})`);
}

const { data, meta } = await res.json();
import os, httpx

res = httpx.get(
    "https://api.pokemontcgapi.com/v1/prices/sources",
    headers={"X-Api-Key": os.environ["PTCG_API_KEY"]},
)
res.raise_for_status()
payload = res.json()

Example response

200 OK

response.json
{
  "data": [
    {
      "source": "CARDMARKET",
      "label": "Cardmarket",
      "min_delay_hours": 24,
      "is_own": false
    },
    {
      "source": "CARDTRADER",
      "label": "CardTrader",
      "min_delay_hours": 24,
      "is_own": false
    },
    {
      "source": "COMMUNITY",
      "label": "Community-observed",
      "min_delay_hours": 0,
      "is_own": false
    },
    {
      "source": "EBAY",
      "label": "eBay",
      "min_delay_hours": 24,
      "is_own": false
    },
    {
      "source": "PRICECHARTING",
      "label": "PriceCharting",
      "min_delay_hours": 24,
      "is_own": false
    },
    {
      "source": "PTCG_INDEX",
      "label": "pokemontcgapi composite index",
      "min_delay_hours": 0,
      "is_own": true
    },
    {
      "source": "TCGPLAYER",
      "label": "TCGplayer",
      "min_delay_hours": 24,
      "is_own": false
    }
  ],
  "count": 7
}

Fields in the response

The rows are Price objects: One price observation: what it is, where it came from, and when it was seen. Descriptions and a full example are on the object page.

Price fields
FieldTypeNull
sourceenumno
variantenumno
basisenumno
amountnumberno
currencyenumno
localestringyes
conditionenumyes
printingenumyes
gradingobjectyes
as_ofdateno
sample_nintegeryes
provenancestringno

Errors

Every error body carries error.code, error.message and error.request_id. Switch on the code, never on the message.

Errors returned by this endpoint
StatusCodeWhen
400INVALID_PARAMETERA query parameter has the wrong type or an unsupported value — a non-integer limit, an unknown lang, an unknown region, a sort key that is not sortable.

The full taxonomy, with what to do about each code, is on the errors page.

view this page as markdown