Cyberpunk API
Documentation
REST reference for the Cyberpunk API: sets, cards, search and images, with prices from TCGPlayer and CardMarket. Same API key as the Pokémon and One Piece APIs.
| Base path | https://api.pokewallet.io/cpk |
|---|---|
| Sets | 15 Cyberpunk sets |
| Card IDs | cpk_ + hex for cards on TCGPlayer; 64 hex characters for CardMarket-only cards |
| Prices | TCGPlayer (USD) for every finish and CardMarket (EUR) for normal and foil, refreshed daily |
| Free on every plan | Sets, set cards, card details, search and images |
| Ultra plan or 7-day trial | Prices by set, set statistics, completion value, trending sets and top cards |
| API key | The same key as the Pokémon and One Piece APIs, with shared rate limits |
https://api.pokewallet.io/cards, /sets…, One Piece at /op/…, the other games at /mtg/…, /ygo/…, /lor/… and so on. Quick Start
Get started with PokéWallet API in 4 simple steps:
Create an Account
Sign up for free to start using the API. Upgrade anytime from your dashboard.
Sign Up NowGenerate an API Key
Create your first API key from the dashboard.
Make Your First Request
Start querying the API with your key.
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/sets"Join the Discord Community
Stay up to date with new features, ask for help, and connect with other developers.
Join DiscordAuthentication
All API requests (except /health) require authentication using an API key.
API Key Format
API keys follow this format:
- Production keys:
pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - Development keys:
pk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authentication Methods
You can authenticate using either the X-API-Key header or Authorization header:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/search?q=pikachu"curl -H "Authorization: Bearer pk_live_your_key_here" \
"https://api.pokewallet.io/search?q=pikachu"Rate Limits
Rate limits vary depending on your subscription plan:
| Plan | Hourly Limit | Daily Limit | Price |
|---|---|---|---|
| Free | 100 requests | 1,000 requests | $0/month |
| Early Access ⭐ | 1,000 requests | 10,000 requests | No longer available |
| Coffee ☕ | 1,000+ requests | 10,000+ requests | Buy a coffee on Ko-fi |
| Pro | 5,000 requests | 50,000 requests | €20/month |
| Ultra | 7,000 requests | 70,000 requests | €29/month |
| Business | Custom | Custom | Contact us |
Early Access was our initial launch tier and is no longer available for new users.
Rate Limit Headers
Every API response includes rate limit information:
X-RateLimit-Limit-Hour: 100
X-RateLimit-Remaining-Hour: 95
X-RateLimit-Limit-Day: 1000
X-RateLimit-Remaining-Day: 823Rate Limit Exceeded (429)
When you exceed your rate limit, you'll receive a 429 Too Many Requests response:
{
"error": "Rate limit exceeded",
"message": "Hourly limit exceeded",
"limits": {
"hourly": {
"limit": 100,
"used": 100,
"remaining": 0
},
"daily": {
"limit": 1000,
"used": 523,
"remaining": 477
}
}
}Public Endpoints
/healthNo Auth RequiredCheck API status, database, cache, and storage health with response times.
Example Request:
curl "https://api.pokewallet.io/health"Response Example (Healthy):
{
"status": "healthy",
"timestamp": "2025-12-16T10:30:00.000Z",
"version": "1.1.0",
"checks": {
"database": {
"status": "healthy",
"responseTime": 45
},
"cache": {
"status": "healthy",
"responseTime": 3
},
"storage": {
"status": "healthy",
"responseTime": 12
}
},
"responseTime": 60,
"region": "FRA"
}Response Example (Unhealthy):
{
"status": "unhealthy",
"timestamp": "2025-12-16T10:30:00.000Z",
"version": "1.1.0",
"message": "Critical services unavailable - API may not function correctly",
"checks": {
"database": {
"status": "unhealthy",
"responseTime": null,
"message": "Connection failed"
},
"cache": {
"status": "healthy",
"responseTime": 3
},
"storage": {
"status": "healthy",
"responseTime": 12
}
},
"responseTime": 1050,
"region": "FRA"
}/No Auth RequiredGet API information, version, and available endpoints.
Example Request:
curl "https://api.pokewallet.io/"Response Example:
{
"name": "PokeWallet API",
"version": "1.1.0",
"status": "production",
"authentication": {
"required": true,
"method": "API Key",
"header": "X-API-Key",
"format": "pk_live_xxxxxxxxxxxxx"
},
"endpoints": {
"health": { "path": "/health", "auth_required": false },
"search": { "path": "/search?q=charizard&limit=20", "auth_required": true },
"cardDetail": { "path": "/cards/:id", "auth_required": true },
"sets": { "path": "/sets", "auth_required": true },
"setDetails": { "path": "/sets/:setCode?page=1&limit=50", "auth_required": true },
"images": { "path": "/images/:id?size=high", "auth_required": true }
},
"rate_limits": {
"per_hour": 100,
"per_day": 1000,
"plan": "free"
}
}/gamesNo Auth RequiredLists the games available under their own prefix (/mtg, /ygo, …) with their routes. Pokémon and One Piece are not in this list: they use /cards, /sets… and /op/….
Example Request:
curl "https://api.pokewallet.io/games"Response Example (first of ten games):
{
"success": true,
"data": [
{
"code": "mtg",
"name": "Magic: the Gathering",
"endpoints": {
"sets": "/mtg/sets",
"set": "/mtg/sets/:set",
"card": "/mtg/cards/:id",
"search": "/mtg/search?q=",
"image": "/mtg/images/:id"
}
}
]
}The Pro plan does not include them: Pro covers Pokémon and One Piece only. Ultra (€29/month) includes everything in Pro plus the paid endpoints of all 12 games. Free endpoints (sets, cards, search, images) work on every plan.
Compare plans →Cyberpunk
All Cyberpunk endpoints live under /cpk. Same API key, same rate limits and the same response format as the Pokémon endpoints.
Card IDs
| Format | Example | Used for |
|---|---|---|
cpk_ + hex | cpk_972fd08a1e74f249bb01… | Every card with a TCGPlayer product, even if it also has CardMarket data |
| 64 hex characters, no prefix | e26f12b8b1fabf19… | Cards that exist only on CardMarket |
cpk_… ID only works under /cpk/. Finishes of the same product (Normal, Foil, …) are one card with one ID; each finish has its own TCGPlayer price. If you request a card by its CardMarket ID and it is linked to a TCGPlayer product, the response uses the canonical cpk_… ID. Response Format
Same shape as the Pokémon API: card_info, images, tcgplayer.prices and cardmarket.prices as arrays, pagination, errors as { "error", "message" }. Differences:
| Field | Cyberpunk |
|---|---|
Game fields in card_info | Instead of Pokémon's hp, stage, attacks…, the game's own fields in snake_case (present when the card has them): color, eddies, tags, ram, cost, power |
card_type, card_text | Filled from the game's card type and rules text. card_text may contain HTML (<strong>, <em>…) as provided by TCGPlayer. |
card_info.variants, card_info.set_id | Always present, on every endpoint |
product_type | "card", "sealed" or null when unknown — see Data Notes |
release_date | ISO format, e.g. "2025-03-07T00:00:00" (Pokémon uses "16th June, 2023") |
images.languages | ["en"], or [] when there is no image |
Cyberpunk Endpoints
/cpk/setsAll Cyberpunk sets.
Response Fields:
| Field | Type | Description |
|---|---|---|
name | string | Set name |
set_code | string | null | Short code. Not unique: several sets can share it. |
set_id | string | Unique set identifier. Negative for sets that exist only on CardMarket. |
card_count | integer | Cards in the set (sealed products excluded). Omitted, not 0, if temporarily unavailable. |
sealed_count | integer | Sealed products in the set (booster boxes, displays, decks). Omitted, not 0, if temporarily unavailable. |
language | string | null | Set language |
release_date | string | null | ISO date |
Example Request:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/sets"Response Example (first two sets):
{
"success": true,
"data": [
{
"name": "Alpha Edition",
"set_code": "alpha",
"set_id": "-2",
"card_count": 34,
"sealed_count": 0,
"language": "eng",
"release_date": null
},
{
"name": "Alpha Kit",
"set_code": "AK",
"set_id": "24881",
"card_count": 0,
"sealed_count": 1,
"language": "eng",
"release_date": "2026-09-04T00:00:00"
}
],
"total": 15
}/cpk/sets/:setCards of one set, paginated. Prices are empty in set listings, as on the Pokémon API: use /cpk/cards/:id for prices.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
set | string | Required | set_id (recommended, always unique) or set_code (exact match, case-insensitive) |
page | number | Optional | Page number (default: 1) |
limit | number | Optional | Results per page (default: 50, max: 200) |
Example Request:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/sets/24846?limit=1"Response Example:
{
"success": true,
"set": {
"name": "Embracing Power - Beta Starter Deck",
"set_code": null,
"set_id": "24846",
"total_cards": 22,
"language": "eng",
"release_date": "2026-09-10T00:00:00"
},
"cards": [
{
"id": "cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223",
"card_info": {
"name": "Yorinobu Arasaka - Embracing Destruction",
"clean_name": "Yorinobu Arasaka Embracing Destruction",
"set_name": "Embracing Power - Beta Starter Deck",
"set_code": null,
"set_id": "24846",
"card_number": "B001",
"rarity": "Epic",
"card_type": "Legend",
"product_type": "card",
"variants": [
"Foil"
],
"card_text": "The first time a friendly ARASAKA Unit attacks each turn, draw 1. Then, if you have less than 20 Street Cred <em>(Street Cred)</em>, discard 1.",
"ram": "x2",
"cost": "0",
"tags": "Arasaka;Corpo",
"color": "Red",
"power": "0",
"eddies": "true"
},
"images": {
"languages": [
"en"
]
},
"tcgplayer": {
"prices": [],
"url": "https://www.tcgplayer.com/product/714119/cyberpunk-tcg-embracing-power-beta-starter-deck-yorinobu-arasaka-embracing-destruction"
},
"cardmarket": {
"product_name": "Yorinobu Arasaka - Embracing Destruction",
"prices": [],
"product_url": "https://www.cardmarket.com/en/Cyberpunk/Products/Singles/Embracing-Power-Beta-Starter-Deck/Yorinobu-Arasaka-Embracing-Destruction"
}
}
],
"pagination": {
"page": 1,
"limit": 1,
"total": 22,
"total_pages": 22
}
}/cpk/cards/:idFull card with prices. id is a cpk_… ID or a 64-character CardMarket ID.
Example Request:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/cards/cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223"Response Example:
{
"id": "cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223",
"card_info": {
"name": "Yorinobu Arasaka - Embracing Destruction",
"clean_name": "Yorinobu Arasaka Embracing Destruction",
"set_name": "Embracing Power - Beta Starter Deck",
"set_code": null,
"set_id": "24846",
"card_number": "B001",
"rarity": "Epic",
"card_type": "Legend",
"product_type": "card",
"variants": [
"Foil"
],
"card_text": "The first time a friendly ARASAKA Unit attacks each turn, draw 1. Then, if you have less than 20 Street Cred <em>(Street Cred)</em>, discard 1.",
"ram": "x2",
"cost": "0",
"tags": "Arasaka;Corpo",
"color": "Red",
"power": "0",
"eddies": "true"
},
"images": {
"languages": [
"en"
]
},
"tcgplayer": {
"prices": [
{
"low_price": 5.27,
"mid_price": 7,
"high_price": 9.99,
"market_price": 6.74,
"direct_low_price": null,
"updated_at": "2026-09-30T20:41:25.14679+00:00",
"sub_type_name": "Foil"
}
],
"url": "https://www.tcgplayer.com/product/714119/cyberpunk-tcg-embracing-power-beta-starter-deck-yorinobu-arasaka-embracing-destruction"
},
"cardmarket": {
"product_name": "Yorinobu Arasaka - Embracing Destruction",
"prices": [
{
"variant_type": "normal",
"avg": null,
"low": 4.45,
"trend": null,
"avg1": null,
"avg7": null,
"avg30": null,
"updated_at": "2026-09-30T14:48:05.607944+00:00"
},
{
"variant_type": "foil",
"avg": 8,
"low": 4.45,
"trend": 5.12,
"avg1": null,
"avg7": null,
"avg30": null,
"updated_at": "2026-09-30T14:48:05.607944+00:00"
}
],
"product_url": "https://www.cardmarket.com/en/Cyberpunk/Products/Singles/Embracing-Power-Beta-Starter-Deck/Yorinobu-Arasaka-Embracing-Destruction"
}
}tcgplayer.prices per finish, identified by sub_type_name, and one entry in cardmarket.prices per finish, identified by variant_type (normal, foil). updated_at is when that price last changed, not when it was last checked. A CardMarket-only card has tcgplayer: null and empty variants. /cpk/searchSearch cards by name or card number. Results have the same shape as /cpk/cards/:id, prices included.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Required | 2–100 characters. Card name (all words, any order) or card number |
page | number | Optional | Page number (default: 1) |
limit | number | Optional | Results per page (default: 20, max: 100) |
Example Request:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/search?q=Destruction&limit=2"Response Example (results omitted):
{
"query": "Destruction",
"results": [
{
"id": "cpk_0442b2bfc746fe1da0285a61e7c438ec3fdcad45d262ca0d5fc174033a522b0c10d8941233b12f2cb3da",
"card_info": {
"name": "Yorinobu Arasaka - Embracing Destruction",
"clean_name": "Yorinobu Arasaka Embracing Destruction",
"set_name": "Embracing Power - Retail Starter Deck",
"set_code": null,
"set_id": "24858",
"card_number": "001",
"rarity": "Epic",
"card_type": "Legend",
"product_type": "card",
"variants": [
"Normal"
],
"card_text": "The first time a friendly ARASAKA Unit attacks each turn, draw 1. Then, if you have less than 20 Street Cred <em>(Street Cred)</em>, discard 1.",
"ram": "x2",
"cost": "0",
"tags": "Arasaka;Corpo",
"color": "Red",
"power": "0",
"eddies": "TRUE"
},
"images": {
"languages": [
"en"
]
},
"tcgplayer": {
"prices": [],
"url": "https://www.tcgplayer.com/product/715219/cyberpunk-tcg-embracing-power-retail-starter-deck-yorinobu-arasaka-embracing-destruction"
},
"cardmarket": null
}
],
"pagination": {
"page": 1,
"limit": 2,
"total": 9,
"total_pages": 5
},
"metadata": {
"total_count": 9,
"tcg": 7,
"cardmarket": 5,
"tcg_only": 4,
"cardmarket_only": 2,
"both_sources": 3,
"truncated": false
}
}metadata.truncated: true means more cards match than the search returns: add words to narrow it down. Words match anywhere in the name; a query shorter than 3 characters matches names and card numbers that start with it (27 finds 27, 027/264, 0027). Quotes are ignored; *, % and _ are plain text, not wildcards. /cpk/images/:idThe card image, one resolution (X-Image-Size: unsized): the size parameter of the Pokémon image endpoint does not apply. Cached for 24 hours.
Example Request:
curl -H "X-API-Key: pk_live_your_key_here" \
"https://api.pokewallet.io/cpk/images/cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223" \
--output cardUltra endpoints
Available on Ultra and Business plans, or during the 7-day trial. The Pro plan covers Pokémon and One Piece only: with Pro these endpoints answer 403 with an upgrade_url. Ultra includes everything in Pro. Same parameters and response format as the Pokémon endpoints of the same name.
| Endpoint | What it returns |
|---|---|
GET /cpk/prices/:set | TCGPlayer and CardMarket prices for every card of a set, one row per finish. ?source=tcg|cm |
GET /cpk/sets/:set/statistics | Price statistics and rarity breakdown. Sealed products excluded. ?variant=normal|foil |
GET /cpk/sets/:set/completion-value | Cost of one copy of every card in the set. Sealed products excluded. |
GET /cpk/sets/trending | Sets whose CardMarket prices moved most: 7-day average against 30-day average, cards from 1 € up. ?period=7d ?limit= |
GET /cpk/analytics/top-cards | Most expensive cards, or fastest-growing on CardMarket (7-day average against 30-day average, cards from 1 € up; current_price is the 7-day average). ?metric=price|growth ?source=tcg|cm ?limit= |
/cards/:id/price-history. Current prices are in the card detail and in /cpk/prices/:set; metric=growth works with source=cm only, and trending supports period=7d only. GET /cpk/prices/:set (first rows)
{
"success": true,
"source": "both",
"set_code": null,
"set_id": "24846",
"data": [
{
"id": "cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223",
"card_number": "B001",
"name": "Yorinobu Arasaka - Embracing Destruction",
"product_type": "card",
"variant": "Foil",
"tcgplayer": {
"low_price": 5.27,
"mid_price": 7,
"high_price": 9.99,
"market_price": 6.74,
"direct_low_price": null,
"updated_at": "2026-09-30T20:41:25.14679+00:00"
},
"cardmarket": {
"avg": 8,
"low": 4.45,
"trend": 5.12,
"avg1": null,
"avg7": null,
"avg30": null,
"updated_at": "2026-09-30T14:48:05.607944+00:00"
}
},
{
"id": "cpk_654472bb1112e08f84f34c9bdccf835f740866abeceecd44d496c97ffedc4ce2a935bf2655fe6d48ae94c4c6ac",
"card_number": "B002",
"name": "Chrome Fang",
"product_type": "card",
"variant": "Normal",
"tcgplayer": {
"low_price": 0.1,
"mid_price": 0.25,
"high_price": 0.97,
"market_price": 0.2,
"direct_low_price": null,
"updated_at": "2026-09-30T20:41:25.14679+00:00"
},
"cardmarket": {
"avg": null,
"low": 0.02,
"trend": 0.08,
"avg1": null,
"avg7": null,
"avg30": null,
"updated_at": "2026-09-30T14:48:05.607944+00:00"
}
},
{
"id": "cpk_d32fca4c8bd4a1218c159f9f56242bab95d31937c62ea9627cb5d585b8e07683e8ef7a30cca81a94f69f4f6ad4",
"card_number": "B003",
"name": "Minotaur",
"product_type": "card",
"variant": "Normal",
"tcgplayer": {
"low_price": 6.03,
"mid_price": 8.38,
"high_price": 15.99,
"market_price": 7.1,
"direct_low_price": null,
"updated_at": "2026-09-30T20:41:25.14679+00:00"
},
"cardmarket": {
"avg": 3,
"low": 5.85,
"trend": 7.84,
"avg1": null,
"avg7": null,
"avg30": null,
"updated_at": "2026-09-30T14:48:05.607944+00:00"
}
}
],
"total": 22
}GET /cpk/sets/:set/statistics
{
"set_info": {
"name": "Embracing Power - Beta Starter Deck",
"set_code": null,
"set_id": "24846",
"total_cards": 20
},
"price_statistics": {
"tcgplayer": {
"avg_market_price": "2.33",
"min_price": 0.17,
"max_price": 9.44,
"most_expensive": {
"id": "cpk_cb657d798d1530230aa273a8dcb52a2d8a82fbfbd329a92ab9c0e6cc0afb8bdc2d0e07b2bc04d13cbc9d8e29b5",
"name": "Goro Takemura - Losing His Way",
"price": 9.44
}
},
"cardmarket": {
"avg_price": "2.11",
"min_price": 0.07,
"max_price": 8,
"most_expensive": {
"id": "cpk_972fd08a1e74f249bb019ef3707ff747377e4edf51df50f4d5c13956e33f050d7fe4525a3af2a94984b4b80223",
"name": "Yorinobu Arasaka - Embracing Destruction",
"price": 8
},
"trend_direction": null
}
},
"rarity_breakdown": {
"Epic": 3,
"Common": 9,
"Uncommon": 7,
"Rare": 1
}
}GET /cpk/sets/:set/completion-value
{
"set_info": {
"name": "Embracing Power - Beta Starter Deck",
"set_code": null,
"set_id": "24846",
"total_cards": 20
},
"completion_cost": {
"tcgplayer": {
"currency": "USD",
"low_estimate": 33.94,
"market_estimate": 46.51,
"high_estimate": 88.77
},
"cardmarket": {
"currency": "EUR",
"low_estimate": 25.46,
"avg_estimate": 18.3,
"trend_estimate": 18.25
},
"note": "One copy per card (base finish). TCGPlayer prices in USD, CardMarket prices in EUR. Cross-currency comparison not available."
},
"breakdown_by_rarity": {
"Epic": {
"count": 3,
"total_cost": 22.67
},
"Common": {
"count": 9,
"total_cost": 2.41
},
"Uncommon": {
"count": 7,
"total_cost": 19.86
},
"Rare": {
"count": 1,
"total_cost": 1.57
}
}
}GET /cpk/analytics/top-cards
{
"metric": "price",
"source": "tcg",
"top_cards": [
{
"id": "cpk_8cf2b65cee51b0ae38c2e8cc450312a2858fde6d0542e4896096ce8e09bd778bab990acbae3bf90a0b376d82e6",
"card_info": {
"name": "Johnny Silverhand - Rocking Renegade (ISecret)",
"clean_name": "Johnny Silverhand Rocking Renegade ISecret",
"set_name": "Welcome to Night City - Beta",
"set_code": null,
"set_id": "24845",
"card_number": "B168",
"rarity": "Iconic Secret",
"card_type": "Legend",
"product_type": "card",
"variants": [
"Foil"
],
"card_text": "2 Eddies [Spend Icon:] A friendly Unit can attack spent rival Units the turn it's played. If it's a ROCKER Unit, also give it +2 power this turn. This effect costs -1 Eddies for each friendly Gig with 8+ value.",
"ram": "x2",
"cost": "0",
"tags": "Merc;Rocker;Samurai",
"color": "Red",
"power": "0",
"eddies": "TRUE"
},
"current_price": 885.87
},
{
"id": "cpk_0fb3213e45a23b40f3d7a3299ca38d9ad80167b184ab3eb8b1ec258f6e576f84f2e35919f0fa22000563c3941a",
"card_info": {
"name": "Sasha Yakovleva - Won't Let You Down (ISecret)",
"clean_name": "Sasha Yakovleva Wont Let You Down ISecret",
"set_name": "Welcome to Night City - Beta",
"set_code": null,
"set_id": "24845",
"card_number": "B169",
"rarity": "Iconic Secret",
"card_type": "Legend",
"product_type": "card",
"variants": [
"Foil"
],
"card_text": "[GO SOLO]<br>[ATTACK] Reveal the top card of your deck and add it to your hand. This Unit gains power equal to that card's cost this turn.<br>[DEFEATED] A Rival discards 1.",
"ram": "x2",
"cost": "5",
"tags": "Maine's Crew;Merc;Netrunner",
"color": "Blue",
"power": "0",
"eddies": "TRUE"
},
"current_price": 797.14
},
{
"id": "cpk_49d358a9c71a9ac4e50371f944a248c8b59af9e21e88657b1077622c5f0b5a9842aae0fe65b0a981a92d7b93e4",
"card_info": {
"name": "Judy Alvarez - Nothing to Doubt (ISecret)",
"clean_name": "Judy Alvarez Nothing to Doubt ISecret",
"set_name": "Welcome to Night City - Beta",
"set_code": null,
"set_id": "24845",
"card_number": "B171",
"rarity": "Iconic Secret",
"card_type": "Unit",
"product_type": "card",
"variants": [
"Foil"
],
"card_text": "1 Eddies [Spend Icon:] Reveal the top card of your deck. You may play it for free. Otherwise, add it to your hand.",
"ram": "x5",
"cost": "6",
"tags": "Ganger;Mox;Techie",
"color": "Blue",
"power": "6",
"eddies": "FALSE"
},
"current_price": 719.35
}
]
}GET /cpk/analytics/top-cards?metric=growth&source=cm
{
"metric": "growth",
"source": "cm",
"top_cards": []
}GET /cpk/sets/trending
{
"period": "7d",
"trending_sets": []
}Data Notes
normal, foil); a finish CardMarket does not price is left out, so cardmarket.prices can be empty. updated_at is when that price last changed, not when it was last checked: a stable price keeps an older date. product_type. Cards and sealed products are told apart using TCGPlayer data, then CardTrader. Tokens, emblems and oversized cards count as "card". For the very few products whose type cannot be determined, product_type is null, not "card". set_id exist only on CardMarket: their cards have 64-character IDs and tcgplayer: null. cardmarket.product_url is absent for some cards; the card data is still valid. Sets with no cards are not listed: they appear as soon as cards are added. Error Handling
The API uses standard HTTP status codes to indicate success or failure:
Request successful
Invalid parameters or malformed request
Missing or invalid API key
Paid endpoint without the required plan or an active trial: Pro for Pokémon and One Piece, Ultra for the other games. The body includes redeem_url (trial not activated yet) or upgrade_url (trial expired).
Card, set or image does not exist
The API only accepts GET requests.
/sets/:setCode/image: the set code matches several sets. Retry with ?language= or the numeric set_id.
Rate limit exceeded
Something went wrong on our side
An image could not be fetched from its source. Temporary: retry later.
Errors on game endpoints (/mtg, /ygo, …)
| Status | error | When |
|---|---|---|
| 400 | Invalid or corrupted card ID | ID is neither <game>_… nor 64 hex, or belongs to another game |
| 400 | Query parameter required | q missing, shorter than 2 or longer than 100 characters |
| 400 | Search query rejected | q contains SQL-like text: rephrase it |
| 400 | Invalid or corrupted card ID + did_you_mean | The ID belongs to another game (e.g. a lor_… ID on /mtg/cards): did_you_mean has the right path |
| 404 | Set not found + suggestions | No set with that set_id/set_code. If you wrote the set name, suggestions lists the matching sets with their set_id |
| 404 | Card not found, Image not found | Card or image does not exist |
| 502 | Image not available | Image source temporarily unreachable |
| 503 | Search temporarily unavailable | The search took too long under load. Retry after the seconds in the Retry-After header, or use more specific words |
Error Response Format
Every error has error (short, stable) and message (what to fix). When the API can tell what you meant, did_you_mean contains the corrected path:
// GET /magic/sets
{
"error": "Endpoint not found",
"message": "Did you mean /mtg/sets?",
"did_you_mean": "/mtg/sets",
"docs": "https://pokewallet.io/api-docs"
}Authentication errors (401) also include an example request. A trailing slash is ignored: /sets/ and /sets are the same endpoint.
Best Practices
Use Environment Variables
Never hardcode API keys. Always use environment variables or secure secret management.
Handle Rate Limits Gracefully
Implement exponential backoff when you receive a 429 response. Check rate limit headers to avoid hitting limits.
Cache Results
Cache API responses when appropriate to reduce requests and improve performance.
Use Search Endpoint
Always use /search for the most complete and accurate data.
Monitor Your Usage
Check your dashboard regularly to track API usage and avoid unexpected rate limit hits.
Error Handling
Always implement proper error handling for network failures, rate limits, and invalid responses.
Need Help?
If you have questions or run into issues, we're here to help!