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.io | CardMochi Price API | |
|---|---|---|
| Games | Pokémon | Pokémon and the One Piece Card Game |
| Prints | English (international) sets | Japanese 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 products | No | Booster boxes, packs and decks, with the official list price apart |
| Prices | Per marketplace, copied from that marketplace | One CardMochi price per market (Japan ¥, US $, Europe €), each with a confidence and a date |
| Updates | As the marketplace data changed | Weekly; every figure dated |
| Card details (HP, attacks, legalities, artist) | Yes | No |
| Card images | Yes | No |
| Search | Field syntax: q=name:charizard set.id:base1 | Plain words over id, number, English and Japanese name: q=charizard SV2a |
| Access | New sign-ups closed; offline from 1 Mar 2027 | Free 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.io | CardMochi |
|---|---|
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:charizard | GET /search?q=charizard&game=pokemon |
GET /cards?q=set.id:sv3pt5 | GET /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 |
| None | GET /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 card | CardMochi version | Note |
|---|---|---|
id | id | Different scheme (above) |
name | name.en, name.ja | Both languages; either may be null |
number | number | The printed number (201; One Piece OP05-119) |
rarity | rarity | Japanese rarities (Special illustration rare; One Piece SEC, L…) |
set.id, set.name | set; names from GET /sets | The Japanese set code (SV2a, OP-05) |
| None | version, language | regular, parallel-1, a finish; language is ja on every card, null on sealed |
| None | kind, sealedKind, listPrice | card or sealed; sealed adds its kind and its official list price |
| The per-marketplace price objects | price.jp, price.us, price.eu | One 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 finish | Separate records | Each finish is its own id (E3-088|1ed, URL-encoded %7C) |
| None | converted | Each 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… | None | Not in the API |
images, set.images | None | Not 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
- Japan weekly, US & Europe daily, every figure dated. The Japan figures are rebuilt every Sunday, the US and Europe figures every day. Ask
GET /meta(no key, no quota) and refetch only whenpublishedchanges. Answers carry anETag: sendIf-None-Matchfor a304(still counted). - Confidence. Many figures are
low(rounded,approx: true). Show them as estimates, or add?min_confidence=medium: a figure below it comes back with"value": null, its confidence and date kept. - Nulls. A market with no figure is
null. A Japanese print usually has a Japan figure and often no US or Europe one. - Limits. Free: 1,000 calls a day and 10 a minute, per account. Over the minute:
429 rate_limitedwithRetry-After. Over the day:429 quota_exceeded, reset at 00:00 UTC.X-RateLimit-Remainingis on every answer. - Keys stay out of URLs.
?key=is refused (400 key_in_url). Call the API from your server: a key in a public page can be read by its visitors. - Licence. Free is non-commercial and needs the linked "Prices from CardMochi". Commercial use needs Developer, Pro or Business; no plan allows reselling the data as a feed. API terms.
Checklist
- Create a free key in My Account → API & billing (a CardMochi account with a confirmed email).
- Map your cards once with
/searchand store the CardMochiidnext to yours. - Swap the base URL and header; read
data.price.jp(andus,eu) instead of the marketplace objects. - Handle
nullmarkets,approx, and429withRetry-After. - Cache, and refetch after
GET /metashows a newpublished. - On Free, add the linked "Prices from CardMochi".