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

Migrate from tcgapi.dev to the Flipzi Data API

Replacing tcgapi.dev in an existing integration: authentication, endpoint and field mapping, card ids, pagination, rate limits, missing data, known gaps and a first working request. We map only what is publicly documented, and say where we could not check.

Check it fits first

Before writing any code, read Flipzi vs TCG API (tcgapi.dev). The short version of what to confirm:

  • The games you use are in the Flipzi catalogue, with the prices you need for them.
  • You can live with the known gaps below.
  • You can resolve your card ids (see Card ids). This is the real cost of any migration.

Authentication

Flipzi uses one header on every request to https://data.flipzi.io/v1. TCG API (tcgapi.dev) uses X-API-Key: <key> against https://api.tcgapi.dev.

# before
X-API-Key: <key>

# after
X-API-Key: fz_live_…

Keys are created in the developer account and sent from your server, never from a browser. The free plan needs a verified email and no card. Rotating a key keeps the old one valid for 24 hours, so you can deploy without downtime.

Endpoint mapping

TCG API (tcgapi.dev)FlipziNotes
GET /v1/search GET /v1/cards/search Search by q, or game + set_code + number.
GET /v1/cards/{id}/prices GET /v1/cards/{id}/price Endpoint names as listed on its homepage; confirm against its documentation.
GET /v1/cards/{id}/history GET /v1/cards/{id}/history?period= Flipzi periods: 7d, 30d, 90d, 6m, 1y, all. History depth depends on plan.
GET /v1/bulk/prices POST /v1/cards/bulk Flipzi takes card_ids in the body.

The full Flipzi surface is in the reference and the OpenAPI spec, from which you can generate a client in your language. Every response wraps its payload in data; errors are {"error":{"code","message","request_id"}}.

Response fields

We could not see TCG API (tcgapi.dev)'s response fields on its public pages, so there is no field-by-field table. What you will get from Flipzi:

  • data.prices[].price_cents: Flipzi price fields are integer cents. Their field names were not checked.

A Flipzi price object carries grade, price_cents (integer cents), price_formatted, market, valuation_type, confidence, updated_at and hours_ago. It is one market's quote chosen by priority, not an average; read market and valuation_type instead of assuming a source. Currency is ?currency=eur|usd, default EUR.

Card ids

Flipzi card ids are UUIDs and are not the same as any other vendor's. Resolve each card once, store the Flipzi id next to yours, and call prices by id afterwards.

# by the codes printed on the card (game is required with set_code)
curl -H "X-API-Key: fz_live_..." \
  "https://data.flipzi.io/v1/cards/search?game=pokemon&set_code=OBF&number=125"

# by an external id, where we hold it (coverage is partial; test your ids first)
curl -H "X-API-Key: fz_live_..." \
  "https://data.flipzi.io/v1/cards/{external_id}?id_type=external&source=tcgcsv"

set_id is case-sensitive and scoped to a game (Japanese SM10 and English sm10 are different sets). Collector numbers match across padding, so 1, 01 and 001 are equivalent. Responses carry no tcgplayer_id or cardmarket_id field.

Pagination and rate limits

  • Lists and search page with page and page_size (up to 200) and return total; stop when page × page_size ≥ total.
  • The change feed, GET /v1/cards/updates (Pro and above), pages with an opaque next_cursor until has_more is false. since must be within the last 7 days.
  • Two limits, both answered with 429 and Retry-After: RATE_LIMITED (requests per minute, a sliding window) and QUOTA_EXCEEDED (monthly units). Refusals are not billed, but a refused request still counts towards the minute window, so wait for Retry-After instead of retrying at once.
  • Read the headers X-RateLimit-Remaining and X-Quota-Remaining on every response, and GET /v1/meta/usage for the authoritative count. Quotas are monthly and reset on your billing date on a paid plan (otherwise at 00:00 UTC on the 1st), which differs from vendors that count per day.
  • Bulk instead of loops: POST /v1/cards/bulk prices 25, 100, 500 or 750 ids a request, billed one unit per id; unmatched ids come back in not_found.

Missing data

Treat absence as absence. An unknown card id is 404; a known card with no qualifying quote returns an empty prices or sold list, and a grade, condition or language with no observations has no row. None of these is a price of zero, and none should inherit another grade's or printing's figure. On /printings, prices.unavailable says why. Cardmarket condition prices answer coverage as covered, no_offers, stale or not_covered. Show "no price" with the reason, and keep the timestamp (updated_at, as_of) beside every figure you display.

An adapter, in code

Keep the rest of your application unchanged by putting the vendor behind one function. A minimal JavaScript version with the retry rule above:

const BASE = 'https://data.flipzi.io/v1';

async function flipzi(path, init = {}) {
  for (let attempt = 0; attempt < 3; attempt++) {
    const res = await fetch(BASE + path, {
      ...init,
      headers: { 'X-API-Key': process.env.FLIPZI_KEY, 'Content-Type': 'application/json', ...init.headers },
    });
    if (res.status === 429) {                       // RATE_LIMITED or QUOTA_EXCEEDED
      const wait = Number(res.headers.get('Retry-After') || 1);
      if (wait > 60) throw new Error('monthly quota exhausted');
      await new Promise(r => setTimeout(r, wait * 1000));
      continue;
    }
    if (res.status === 404) return null;            // unknown id: not a zero price
    if (!res.ok) throw new Error((await res.json()).error?.code ?? res.status);
    return (await res.json()).data;
  }
  throw new Error('rate limited');
}

// your old getPrice(cardId) keeps its signature
export async function getPrice(flipziId, grade = 'RAW') {
  const data = await flipzi(`/cards/${flipziId}/price?currency=eur&grade=${grade}`);
  const p = data?.prices?.[0];
  return p ? { cents: p.price_cents, market: p.market, asOf: p.updated_at } : null;
}

Your first request

Three steps, each checkable on its own. Step 1 needs no key.

# 1. the API is up (no key)
curl "https://data.flipzi.io/v1/meta/health"
# {"status":"ok","version":"v1","time":"..."}

# 2. find a card; the id is data[0].id
curl -H "X-API-Key: $FLIPZI_KEY" \
  "https://data.flipzi.io/v1/cards/search?q=charizard%20ex&game=pokemon"

# 3. its current price: data.prices[0].price_cents and .market
curl -H "X-API-Key: $FLIPZI_KEY" \
  "https://data.flipzi.io/v1/cards/{id}/price?currency=eur"

A response without a key returns 401 API_KEY_REQUIRED; a feature your plan lacks returns 403 PLAN_FEATURE_LOCKED with the plan that unlocks it, and rejected requests cost no units. Check your remaining quota any time, free, at GET /v1/meta/usage. No key yet? The playground runs the same calls against production with no signup.

Known gaps

What you may lose by moving, stated plainly:

  • 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.

Also confirm against TCG API (tcgapi.dev): Response field names, ID system, languages, sealed support, and whether its eBay sold data is split by country site. Game count is the one its homepage states.

Help and the switching offer

We will map your current calls for you. Email [email protected] with the endpoints you use and your rough request volume.

Try it before you decide

Try the calls above against production first, then pick a plan. Declare TCG API (tcgapi.dev) as the API you are moving from at checkout to be eligible for the switching offer, if it is live.

Open the playground Compare all 13 APIs Switching? Migration guides

Sources and what we did not check

Every figure about TCG API (tcgapi.dev) on this page was read from its own public pages on . We did not create an account with it, so we describe only what it publishes. Vendors change prices; confirm on their site before you decide.

Not checked: Response field names, ID system, languages, sealed support, and whether its eBay sold data is split by country site. Game count is the one its homepage states.

Something wrong or out of date? Tell us and we will fix it.

Straight answers

Can I keep my TCG API (tcgapi.dev) code and only change the base URL?
No. Header names, paths and response shapes differ, and Flipzi card ids are its own UUIDs. Put a thin adapter between your code and the API so the rest of your application does not change.
How do I map my existing card ids?
Resolve each card once by game, set code and collector number with GET /v1/cards/search, then store the Flipzi id next to your own. id_type=external&source= can look a card up by an external id, but coverage is partial, so test a sample of your ids before relying on it.
Is there a free way to try it?
Yes. A verified email gets a free key with no card (500 units a month, catalogue and current prices, not for commercial use), and the playground runs real queries against production with no signup, including paid endpoints.
Is there help with the migration?
Yes. Email [email protected] with the calls you make today and we will map them for you.