Winter Gifts. A gift box is waiting in every Data API account until 31 December. Open your gift

Migrating from the Pokémon TCG API to Flipzi

Keep your pokemontcg.io card ids, then map fields, authentication, pagination and prices, with a staged cut-over in JavaScript and Python and the things that do not map at all.

91 days left. The Pokémon TCG API is scheduled to go offline on (counted from 30 November 2026, UTC). Your stored pokemontcg.io card ids work on Flipzi as they are: /v1/cards/sv3-125. How.

This guide is for code that already calls api.pokemontcg.io/v2 and has to move. If you are still deciding where to move to, read Pokémon TCG API alternatives first. If you want the fewest code changes, the official successor is Scrydex, which says ids from the old API still work there. They work on Flipzi too. This page is for teams moving to Flipzi. Most teams make that move because they need European and per-country prices.

What is changing, and when

  • Status: Deprecated. New accounts can no longer be registered; API keys already issued by pokemontcg.io keep working through 1 March 2027. The documentation asks developers to migrate to Scrydex.
  • Your deadline: your pokemontcg.io API key is documented to work through . The documentation does not say whether data keeps updating until then, so check the updatedAt on the price blocks you depend on.
  • The plan below needs the old API to be reachable during the shadow-read step, so start well before the cut-off.

Pokémon TCG API facts on this page were last verified on against each vendor's own pages, linked under Sources. Vendors change; check before you decide.

Check it fits before you start

Flipzi replaces the catalogue lookup and price parts of a pokemontcg.io integration. It does not replace the card-text parts. Decide before you write any code:

Parts of a pokemontcg.io integration and whether Flipzi covers them
You use pokemontcg.io forOn Flipzi
Card and set lookup, imagesYes. One image URL per card (WebP), not small and large.
TCGplayer and Cardmarket pricesYes, as a separate call, with the market named on every figure.
Price historyFrom Basic: daily history (30 days on Basic, full from Pro).
HP, attacks, abilities, weaknesses, retreat cost, legalities, artist, flavour text, Pokédex numbersNo. Keep another source for card text.
Free, unauthenticated requestsNo. Every call needs a key; the free plan is 500 units a month at 5 requests a minute, without commercial use.
Japanese, Chinese or other languagesJapanese and Chinese Pokémon are separate catalogues (pokemon-jp, pokemon-zh) with their own ids.

Endpoint mapping

pokemontcg.io v2 endpoints and their Flipzi Data API equivalents
pokemontcg.io v2Flipzi Data API v1Notes
GET /v2/cards?q=…GET /v1/cards/searchq is a name, not a query language. Add game=pokemon, and set_id or number to narrow it down.
GET /v2/cards/:idGET /v1/cards/{id}Takes your pokemontcg.io id as it is (/v1/cards/sv3-125), or a Flipzi UUID. See card ids.
GET /v2/setsGET /v1/catalog/sets?game=pokemongame is required; set_id is case-sensitive.
GET /v2/cards?q=set.id:…GET /v1/catalog/sets/{set_id}/cards?game=pokemonA whole set in collector-number order.
card.tcgplayer.prices, card.cardmarket.pricesGET /v1/cards/{id}/priceOne quote per grade, chosen by market priority, with market naming the source. Many cards: POST /v1/cards/bulk (Basic and above).
cardmarket.prices.avg7 / avg30 / trendPriceGET /v1/cards/{id}/history; on Ultra, cardmarket_guide on /priceHistory is a daily series. cardmarket_guide carries trend, 7- and 30-day averages and low for English Pokémon.
GET /v2/types, /subtypes, /supertypes, /raritiesNoneTypes and rarity are fields on each card; there are no list endpoints for them.
NoneGET /v1/cards/{id}/sold, /marketplaces, /sales, /cardmarketNew: eBay completed sales and Cardmarket asking prices by condition. See adding Cardmarket and eBay prices.

Authentication and limits

Authentication, base URL and rate limits on each API
pokemontcg.ioFlipzi
Base URLhttps://api.pokemontcg.io/v2https://data.flipzi.io/v1
HeaderX-Api-KeyX-API-Key: fz_live_… (HTTP headers are case-insensitive; the key is what changes)
Without a keyAllowed at lower limits401 API_KEY_REQUIRED on everything except /v1/meta/health
Limits20,000 requests a day with a key; 1,000 a day and 30 a minute without one.Monthly units plus a per-minute rate, by plan: Basic €19.99/month · Pro €49.99/month · Ultra €99.00/month · Mega €249.00/month. Free: 500 units a month at 5 requests a minute. Shared by every key on the account.
Cost per callOne requestSearch, card and price: 1 unit each. Bulk: 1 unit per id. Errors are never billed.
UsageNot documentedGET /v1/meta/usage (free, works at the cap) and X-Quota-* headers

Details: authentication, rate limits, billing units and plans.

Keep your card ids

A pokemontcg.io id is the set id, a hyphen and the collector number: sv3-125. You do not have to translate it. Wherever the Flipzi Data API takes a card id, it also takes a pokemontcg.io id:

  • GET /v1/cards/sv3-125, and every route under it: /price, /history, /printings, /sold, /cardmarket and the rest.
  • POST /v1/cards/bulk (and /bulk/analytics, /bulk/cardmarket): put them in card_ids, mixed with UUIDs if you like. A row you asked for by a pokemontcg.io id carries requested_id, so you can match results to your input.
  • GET /v1/cards/lookup?pokemontcg_id=sv3-125 returns the Flipzi card_id and the card, if you would rather store the UUID next to the old id.

The same card, before and after:

# Before: the Pokémon TCG API, by its card id (prices arrive inside the card)
curl -H "X-Api-Key: $POKEMONTCG_API_KEY" \
  "https://api.pokemontcg.io/v2/cards/sv3-125"
# After: the same card id on Flipzi. The host, /v1 and the key change; the id does not.
curl -H "X-API-Key: $FLIPZI_API_KEY" \
  "https://data.flipzi.io/v1/cards/sv3-125"

# Its price is one more call (1 unit), with the same id
curl -H "X-API-Key: $FLIPZI_API_KEY" \
  "https://data.flipzi.io/v1/cards/sv3-125/price?currency=usd"

99.2% of the 20,635 card ids in pokemontcg.io's own published card files resolve to a Flipzi card. We matched every one on 28 October 2026 by set, collector number and name, never by number alone. Of the rest, 145 have no Flipzi card yet (mostly "a" alternate prints, the 30th Celebration Classic Collection and the newest sets) and 13 match a card our catalogue holds twice. Those return 404 CARD_NOT_FOUND rather than a guess, and sit in not_found in a bulk response.

  • The response id is a Flipzi UUID, for example 0908653a-ce24-4d7e-811e-78c2935bd822 for sv3-125. Both keep working; store whichever suits you.
  • English Pokémon only. Ids are matched case-insensitively, and bulk responses echo them in lower case. Percent-encode the two ids with ? or ! in them (ex10-%3F).
  • One id, the base card. pokemontcg.io has one id for base1-4; Flipzi also has the Shadowless and 1st Edition printings as their own cards. The pokemontcg.io id names the base card, and /printings lists the others.

You need set ids only to search or list a set. We compared pokemontcg.io's published set list with Flipzi's Pokémon sets on 22 October 2026: 122 of 176 set ids are spelled identically (Base Set is base1 on both). Most of the rest are newer sets with a different spelling:

pokemontcg.io set ids that differ on Flipzi
pokemontcg.io set idFlipzi set_idNotes
sv1 … sv9sv01 … sv09Zero-padded set ids. Numbers are padded too (025); the number search accepts 25.
sv3pt5, sv4pt5, sv6pt5, sv8pt5sv03.5, sv04.5, sv06.5, sv08.5"pt5" becomes ".5" with padding.
zsv10pt5 / rsv10pt5sv10.5b / sv10.5wBlack Bolt and White Flare.
me1, me2, me2pt5me01, me02, me02.5Padded.
me3, me4, me5, me55perfect-order, chaos-rising, pitch-black, 30th-celebrationNewer sets use name slugs.
sm35, sm75, swsh35, swsh45sm3.5, sm7.5, swsh3.5, swsh4.5Decimal point instead of run-together digits.
swsh12pt5, pgoswsh12.5, swsh10.5Crown Zenith and Pokémon GO.
swsh9tg … swsh12tg, swsh12pt5gg, swsh45svthe parent setTrainer Gallery, Galarian Gallery and Shiny Vault cards sit in their parent set with their printed numbers (TG01, GG44, SV107).
cel25ccel25Classic Collection cards sit in Celebrations with a suffixed number (4A for Charizard), so match by name.
base6, bp, hsp, fut20lc, bog, hgssp, fut2020Legendary Collection, Best of Game, HGSS promos, Futsal.
mcd11 … mcd22, tk1a … tk2bnot mapped one-to-oneMcDonald's collections and trainer kits are split differently; resolve these by name and number.

To search by set and number, use set_id and number: /v1/cards/search?game=pokemon&set_id=sv03.5&number=25 finds card 025, because the number match ignores zero-padding.

The search language is different too. Field queries such as name:char* -types:water, select and orderBy have no equivalent. q is a plain name with the last word prefix-matched (char finds Charizard). See finding a card.

Pagination and response shape

Response shape differences
pokemontcg.ioFlipzi
Envelopedatadata
Page sizepageSize, default and max 250page_size, default 100, max 200
Totalspage, pageSize, count, totalCountpage, page_size, total beside data; no count (use data.length)
Field casecamelCasesnake_case
MoneyDecimal dollars or eurosInteger cents (price_cents) plus price_formatted, currency chosen with ?currency=eur|usd
ErrorsHTTP status{"error": {"code", "message", "details", "request_id"}}; plan limits return 403 PLAN_FEATURE_LOCKED with the plan that unlocks it

Card fields, one by one

Every field of the pokemontcg.io v2 card object, and where it is on Flipzi. The Flipzi side is what the API actually returns. It was read from the code that builds the response, not from documentation.

pokemontcg.io v2 card fields and their Flipzi Data API equivalents
pokemontcg.io cardFlipziReturned by
idid (a UUID). Your pokemontcg.io id still works in requests; it is not echoed on the card.detail, search, set cards
namenameevery card object
supertype, subtypesNo equivalent
level, hpNo equivalent
typestypes (energy types; can be null)every card object
evolvesFrom, evolvesToNo equivalent
rules, ancientTrait, abilities, attacksNo equivalent (card text)
weaknesses, resistances, retreatCost, convertedRetreatCostNo equivalent
set.idset.set_id (spelling can differ: sv03, see set ids)every card object
set.nameset.nameevery card object
set.ptcgoCodeset.code (the printed code; can be null)every card object
set.releaseDaterelease_year (year only; can be null). Set dates: GET /v1/catalog/setsevery card object
set.series, set.printedTotal, set.total, set.legalities, set.imagesNo equivalent on the card
numbernumber (zero-padded in recent sets: 025)every card object
artist, flavorText, nationalPokedexNumbersNo equivalent
rarityrarityevery card object
legalities, regulationMarkNo equivalent
images.small, images.largeimage_url (one WebP image)every card object
tcgplayer.url, cardmarket.urlNo equivalent
tcgplayer.prices, cardmarket.pricesprices[] and finishes; see prices/price
tcgplayer.updatedAt, cardmarket.updatedAtupdated_at and hours_ago on each price/price
Nonegame, slug, name_en (English name of a Japanese or Chinese card), printing, printing_label, base_card_id, finishesevery card object
Nonevariants[]: variant_id, edition, finish, grade/v1/cards/{id} only

Everything marked "no equivalent" is card text or gameplay data. If your app shows it, keep a source for it; Flipzi is a catalogue and price API.

Where the prices went

pokemontcg.io put two price blocks inside every card. Flipzi has a price endpoint that returns one quote per grade and tells you which market it came from. For ungraded cards, TCGplayer's market price is the first choice when you ask for currency=usd, and Cardmarket is first for eur. That is a design difference, not a missing feature. If your UI shows "TCGplayer market" and "Cardmarket trend" side by side, read market and plan for the per-market breakdown.

Price fields and their Flipzi equivalents
pokemontcg.io fieldFlipziPlan
tcgplayer.prices.holofoil.market (or normal)prices[] where grade is RAW: price_cents, market, confidence, updated_atEvery plan
tcgplayer.prices.reverseHolofoil, 1stEditionHolofoilfinishes.reverse_holo, finishes.first_edition on /priceEvery plan
low, mid, high, directLowNo equivalent
Both markets' own figuresmarkets[] on /price, winner firstUltra
cardmarket.prices.trendPrice, avg7, avg30, lowPricecardmarket_guide: trend_cents, avg7_cents, avg30_cents, low_centsUltra
avg1, averageSellPrice, germanProLow, suggestedPriceNo equivalent
tcgplayer.updatedAt, cardmarket.updatedAtupdated_at and hours_ago on every priceEvery plan
NoneGraded prices (?grade=PSA_10), eBay sold comps, Cardmarket asking prices by condition and languagePro / Ultra

How the quote is chosen is documented in which market a price came from and how prices are produced.

JavaScript and Python

An adapter that prices a card by its pokemontcg.io id, looks up the Flipzi id when you want to store it, and pages through a set. It is the same code in both languages, and it is tested against captured API responses whenever this page changes.

// migrate.mjs (Node 18+, built-in fetch). Run: FLIPZI_API_KEY=fz_live_... node migrate.mjs
const BASE = process.env.FLIPZI_BASE ?? "https://data.flipzi.io/v1";

async function flipzi(path, params = {}) {
  const url = new URL(BASE + path);
  for (const [k, v] of Object.entries(params)) url.searchParams.set(k, String(v));
  const res = await fetch(url, { headers: { "X-API-Key": process.env.FLIPZI_API_KEY } });
  const body = await res.json();
  if (!res.ok) {
    const err = new Error(`${res.status} ${body.error?.code}: ${body.error?.message}`);
    err.code = body.error?.code;
    throw err;
  }
  return body;
}

// Your stored pokemontcg.io ids work as they are: "sv3-125" goes wherever a
// Flipzi card id goes. lookup() is for code that also wants to keep the
// Flipzi UUID; null means the card is not in the catalogue (review it by hand).
export async function lookup(ptcgId) {
  try {
    const { data } = await flipzi("/cards/lookup", { pokemontcg_id: ptcgId });
    return data; // { pokemontcg_id, card_id, card }
  } catch (err) {
    if (err.code === "CARD_NOT_FOUND") return null;
    throw err;
  }
}

// What your code used to read from card.tcgplayer.prices / card.cardmarket.prices.
// cardId is a Flipzi UUID or a pokemontcg.io id.
export async function rawPrice(cardId, currency = "usd") {
  const { data } = await flipzi(`/cards/${cardId}/price`, { currency });
  const raw = data.prices.find((p) => p.grade === "RAW");
  if (!raw) return null;
  return {
    cents: raw.price_cents,              // integer, in `currency`
    market: raw.market,                  // which market quoted it: "tcgplayer", "cardmarket", ...
    reliable: raw.confidence.is_reliable,
    updatedAt: raw.updated_at,
    otherFinishes: data.finishes,        // { reverse_holo: {...} } or [] when there are none
  };
}

// Every card in one set, page by page (pokemontcg.io: page, pageSize, totalCount).
export async function* setCards(setId) {
  for (let page = 1; ; page++) {
    const body = await flipzi(`/catalog/sets/${setId}/cards`, { game: "pokemon", page, page_size: 200 });
    yield* body.data;
    if (page * body.page_size >= body.total) return;
  }
}

const match = await lookup("base1-4");
console.log(match ? match.card_id : "needs review", await rawPrice("base1-4"));
# migrate.py (Python 3.9+, pip install requests). Run: FLIPZI_API_KEY=fz_live_... python migrate.py
import os
import requests

BASE = os.environ.get("FLIPZI_BASE", "https://data.flipzi.io/v1")
session = requests.Session()
# Send your own User-Agent: the edge refuses Python's default urllib one.
session.headers.update({"X-API-Key": os.environ["FLIPZI_API_KEY"], "User-Agent": "my-app/1.0"})


def flipzi(path, **params):
    res = session.get(BASE + path, params=params, timeout=15)
    body = res.json()
    if not res.ok:
        err = body.get("error", {})
        raise RuntimeError(f"{res.status_code} {err.get('code')}: {err.get('message')}")
    return body


def lookup(ptcg_id):
    """'base1-4' -> {pokemontcg_id, card_id, card}, or None when the card is not in the catalogue.

    Only needed to store Flipzi UUIDs: a pokemontcg.io id works wherever a card id goes.
    """
    res = session.get(BASE + "/cards/lookup", params={"pokemontcg_id": ptcg_id}, timeout=15)
    if res.status_code == 404:
        return None
    body = res.json()
    if not res.ok:
        err = body.get("error", {})
        raise RuntimeError(f"{res.status_code} {err.get('code')}: {err.get('message')}")
    return body["data"]


def raw_price(card_id, currency="usd"):
    """card_id is a Flipzi UUID or a pokemontcg.io id."""
    data = flipzi(f"/cards/{card_id}/price", currency=currency)["data"]
    raw = next((p for p in data["prices"] if p["grade"] == "RAW"), None)
    if raw is None:
        return None
    return {
        "cents": raw["price_cents"],
        "market": raw["market"],
        "reliable": raw["confidence"]["is_reliable"],
        "updated_at": raw["updated_at"],
        "other_finishes": data.get("finishes") or {},
    }


def set_cards(set_id):
    """Every card in one set, page by page."""
    page = 1
    while True:
        body = flipzi(f"/catalog/sets/{set_id}/cards", game="pokemon", page=page, page_size=200)
        yield from body["data"]
        if page * body["page_size"] >= body["total"]:
            return
        page += 1


match = lookup("base1-4")
print(match["card_id"] if match else "needs review", raw_price("base1-4"))

Try the search and price calls in the playground first. They run against production data with no key.

A staged migration

Six stages: 1 inventory, 2 map ids, 3 adapter, 4 shadow reads, 5 cut over behind a flag, 6 retire the old client 1 Inventory 2 Map ids 3 Adapter 4 Shadow reads 5 Flag cut-over 6 Retire
  1. Inventory. List every call your code makes and every field it reads. Mark the card-text fields; they need another source.
  2. Check ids. Call /v1/cards/lookup for every pokemontcg.io id you store (1 unit each, free plan or above), and keep the returned card_id beside the old id if you want it. Review the 404s by hand.
  3. Adapter. Put one module between your app and both APIs that returns your own shape: {id, name, set, number, image, price}. Nothing else in the codebase should know which API answered.
  4. Shadow reads. Keep serving from pokemontcg.io and call Flipzi in the background for a sample of cards. Log both prices, the market Flipzi used and the ratio. Expect differences: the two APIs choose and refresh prices differently.
  5. Flag cut-over. Serve from Flipzi behind a feature flag, a small share of traffic first, then all of it.
  6. Retire. Remove the old client once the flag has been fully on for a release, and long before 1 March 2027.

Testing and rollback

Before the cut-over

  • Every stored pokemontcg.io id answers 200 from /v1/cards/lookup, or its 404 sits in the review queue.
  • Spot-check 50 resolved cards by image: Trainer Gallery, Shiny Vault, Classic Collection and promo sets are where mismatches hide.
  • Prices: compare shadow-read ratios per set and look into outliers. A large gap usually means a different market was chosen or a different printing was matched.
  • Errors: handle 401, 403 PLAN_FEATURE_LOCKED, 404 CARD_NOT_FOUND, 422 INVALID_INPUT and 429 (read Retry-After). See errors.
  • Quota: replay one day of traffic against the shadow path and read /v1/meta/usage; size the plan from that, not from request counts on the old API.
  • Currency: price_cents is an integer in the currency you asked for. Divide by 100 once, in the adapter.

Rollback

  • Keep the pokemontcg.io client and its key working until the flag has been fully on for a full release cycle.
  • Rollback is turning the flag off, nothing else. That only holds if your stored data still carries the old ids, so add the Flipzi id as a column; do not replace the old one.
  • After 1 March 2027 there is no old API to roll back to. Rehearse a rollback before that date, not after.

What does not map

Things that look like the same feature but are not:

  • One quote, not two blocks. /price returns the winning market per grade. Both markets side by side need Ultra (markets[]).
  • TCGplayer low/mid/high/directLow have no equivalent, and nor do Cardmarket avg1, averageSellPrice, germanProLow or suggestedPrice.
  • Price history is not the same as trend fields. avg7 and avg30 were Cardmarket's own averages; Flipzi history is a daily series of the selected quote, and Cardmarket's guide figures are on Ultra only.
  • Printings are separate ids. A Master Ball pattern or a stamped promo is its own Flipzi card with base_card_id pointing at the base card. pokemontcg.io usually had one id for both.
  • Subsets fold into their parent set when you search or list a set. The id still works as it is; only set.set_id differs: swsh9tg-TG01 is swsh9 number TG01, and cel25c-4_A is cel25 number 4A.
  • Non-English cards are separate catalogues with separate ids, not a language field on one card.
  • No card text, no legalities, no query language, no select.
  • Different update cadence. Every Flipzi price carries updated_at and hours_ago; do not assume a fixed refresh time.

What Flipzi does not have

  • Sealed-product search and current prices are available through GET /v1/sealed. Historical comparisons cover selected booster boxes. The general sealed catalogue has no per-product price-history endpoint.
  • No GraphQL. It is a REST API with an OpenAPI 3.0 spec, official SDKs for TypeScript/JavaScript and Python (flipzi on npm and PyPI), and a local, open-source MCP server (@flipzitcg/mcp, npm) for AI assistants.
  • No webhooks. Change feeds are polled with GET /v1/cards/updates.
  • No grading population reports.
  • Card ids are Flipzi UUIDs. The one other vendor's id accepted as it is is a pokemontcg.io id for English Pokémon (sv3-125); anything else works only through id_type=external&source=, with partial coverage. Responses carry no tcgplayer_id or cardmarket_id field. For other vendors, plan on matching by game + set code + collector number.
  • The free plan is 500 units a month at 5 requests a minute, reaching every endpoint up to Ultra: current prices, price history, analytics, graded prices and eBay sold comps within the allowance, and 5 calls a month to each Ultra endpoint (sales by marketplace, Cardmarket prices by condition, market movers and set analytics), with no commercial-use grant.
  • Pokémon (Japanese) current prices are Cardmarket asking prices in EUR, ungraded; its graded values come from eBay sold comps. Pokémon (Chinese) has eBay sold comps only. Cyberpunk is catalogue-only. Scanning covers Pokémon, One Piece, Yu-Gi-Oh!, Magic and 12 more games.

Sources

Read on . We did not sign up to any other vendor; we describe only what each one publishes. Flipzi's side is checked against our OpenAPI spec.

Pokémon TCG API

Scrydex (successor)

Flipzi

Not stated by the vendor, so not described here:

  • Its terms of service page returned a 404 when we checked, so its licensing and attribution terms are not described here.
  • Whether data stops updating before the key cut-off is not stated.

Something out of date? Tell us and we will correct it.

Try it before you decide

Search and price calls from this guide run in the playground against production data, with no signup and no key.

Open the playground Compare all 13 APIs Switching? Migration guides

Straight answers

Is the Pokémon TCG API shutting down?
Its documentation says it is deprecated, that new accounts can no longer be registered, and that API keys it has already issued will keep working through 1 March 2027. It asks developers to migrate to Scrydex. Check docs.pokemontcg.io for any later change.
Can I keep my pokemontcg.io card ids?
Yes. Wherever the Flipzi Data API takes a card id, it also takes a pokemontcg.io id such as sv3-125, and GET /v1/cards/lookup turns one into the Flipzi id if you want to store both. 99.2% of the 20,635 card ids in pokemontcg.io's published card files resolve (measured 28 October 2026); the rest return 404 and need a look by hand. English Pokémon only.
Can I just change the base URL?
For a card fetched by id, nearly: change the host to data.flipzi.io/v1, send your Flipzi key, and keep the id. Search syntax, response shapes and field names still differ, and prices are a separate call. Put a thin adapter between your application and the API so the rest of your code does not change.
Does Flipzi return attacks, abilities, HP and legalities?
No. The Flipzi Data API is a price and catalogue API: name, set, collector number, rarity, types, image and printing details. If your app shows card text or deck legality, keep a separate source for those fields.
How many requests will my app need?
Usually more than before, because pokemontcg.io put prices inside the card response. On Flipzi, finding a card and pricing it are separate calls of 1 unit each, so resolve ids once, store them, and price in bulk from the Basic plan up. The free plan is 500 units a month at 5 requests a minute, for evaluation only.