Migrating from pokemontcg.io to the CardMochi Price API

The Pokémon TCG API (api.pokemontcg.io) is scheduled to go offline on 1 March 2027: new sign-ups are closed and existing keys work through that date, per its developer portal and its data repository (read 3 Dec 2026). This guide is for one case: your app needs prices for Japanese prints, of Pokémon and now One Piece too. Read the scope first: for some apps CardMochi is the right move, for others it is not.

What CardMochi covers, and what it doesn't

pokemontcg.ioCardMochi Price API
GamesPokémonPokémon and the One Piece Card Game
PrintsEnglish (international) setsJapanese prints only, each version its own record (regular, parallels, finishes such as 1st edition and reverse holo). English prints are not in the API
Sealed productsNoBooster boxes, packs and decks, with the official list price apart
PricesPer marketplace, copied from that marketplaceOne CardMochi price per market (Japan ¥, US $, Europe €), each with a confidence and a date
UpdatesAs the marketplace data changedWeekly; every figure dated
Card details (HP, attacks, legalities, artist)YesNo
Card imagesYesNo
SearchField syntax: q=name:charizard set.id:base1Plain words over id, number, English and Japanese name: q=charizard SV2a
AccessNew sign-ups closed; offline from 1 Mar 2027Free plan: 1,000 calls a day, non-commercial, with a linked "Prices from CardMochi"

Not a fit if your app needs English-print prices: the API covers Japanese prints only, and English prints are not in it. Nor if it needs gameplay data or card images (keep a card-data source for those and join CardMochi's price on the card number).

A fit if your app tracks, sells, values or alerts on Japanese cards: a collection tracker, a Discord price bot, a shop tool, an import calculator.

Requests side by side

pokemontcg.ioCardMochi
https://api.pokemontcg.io/v2/https://cardmochi.com/api/v1/
X-Api-Key: <key>Authorization: Bearer <key> (X-API-Key also accepted)
GET /cards/{id}GET /cards/{id}
GET /cards?q=name:charizardGET /search?q=charizard&game=pokemon
GET /cards?q=set.id:sv3pt5GET /sets/pokemon/SV2a (a whole set in one call)
GET /sets, GET /sets/{id}GET /sets?game=pokemon, GET /sets/{game}/{set} (the set and all its records)
page, pageSize (max 250)/search: limit (max 50); a whole game: /bulk/{game}?page=N, 2,000 a page (Pro)
orderBy, select; /types, /rarities…None: sort and pick fields on your side
NoneGET /sealed, GET /cards/{id}/history (7 days on Free, 90 on Developer, full on Pro), GET /meta (no key)

Ids are different. A pokemontcg.io id is the English set id and number (sv3pt5-199); a CardMochi id is the Japanese set code and number (SV2a-201). The English and Japanese releases of a set are numbered differently, so there is no formula from one to the other: look each card up by name with /search once and store the CardMochi id.

Fields side by side

pokemontcg.io cardCardMochi versionNote
ididDifferent scheme (above)
namename.en, name.jaBoth languages; either may be null
numbernumberThe printed number (201; One Piece OP05-119)
rarityrarityJapanese rarities (Special illustration rare; One Piece SEC, L…)
set.id, set.nameset; names from GET /setsThe Japanese set code (SV2a, OP-05)
Noneversion, languageregular, parallel-1, a finish; language is ja on every card, null on sealed
Nonekind, sealedKind, listPricecard or sealed; sealed adds its kind and its official list price
The per-marketplace price objectsprice.jp, price.us, price.euOne estimate per market: value, currency, confidence, date, approx. Not a copy of any single marketplace's figure: don't relabel it as one
Price variants per finishSeparate recordsEach finish is its own id (E3-088|1ed, URL-encoded %7C)
NoneconvertedEach figure in other currencies at the European Central Bank rate (?currency=GBP for one currency): a conversion, never a market price
hp, types, attacks, abilities, legalities, artist…NoneNot in the API
images, set.imagesNoneNot in the API

The envelope: pokemontcg.io returns { data, page, pageSize, count, totalCount }; CardMochi returns { data, meta }, where meta holds published (the last weekly publish), your plan and its licence, on Free the attribution, and on lists their counts (meta.total on search, meta.pages on bulk).

The code change

-const res = await fetch("https://api.pokemontcg.io/v2/cards?q=name:charizard&pageSize=5", {
-  headers: { "X-Api-Key": process.env.POKEMONTCG_IO_API_KEY },
-});
-const { data } = await res.json();
-for (const c of data) console.log(c.id, c.name, c.number);
+const res = await fetch("https://cardmochi.com/api/v1/search/?q=charizard&game=pokemon&limit=5", {
+  headers: { Authorization: `Bearer ${process.env.CARDMOCHI_KEY}` },
+});
+const { data, meta } = await res.json();
+for (const c of data) console.log(c.id, c.name.en, c.version, c.price.jp?.value, c.price.jp?.confidence);
+// Free plan: show meta.attribution as a link, "Prices from CardMochi" → https://cardmochi.com

What behaves differently

Checklist

  1. Create a free key in My Account → API & billing (a CardMochi account with a confirmed email).
  2. Map your cards once with /search and store the CardMochi id next to yours.
  3. Swap the base URL and header; read data.price.jp (and us, eu) instead of the marketplace objects.
  4. Handle null markets, approx, and 429 with Retry-After.
  5. Cache, and refetch after GET /meta shows a new published.
  6. On Free, add the linked "Prices from CardMochi".