响应格式
TCG Price Lookup API的JSON响应结构、分页和数据类型的完整参考。
基本响应结构
所有API响应都遵循一致的JSON结构:
{
"data": [...], // 卡牌对象数组
"total": 150, // 匹配结果的总数
"limit": 20, // 本次返回的结果数
"offset": 0, // 分页偏移量
"game": "pokemon" // 游戏上下文
}
卡牌对象
{
"id": "pokemon-sv4-charizard-ex-006",
"name": "Charizard ex",
"game": "pokemon",
"number": "006",
"rarity": "Special Illustration Rare",
"foil": false,
"set": {
"id": "sv4",
"name": "Obsidian Flames",
"code": "sv4",
"releaseDate": "2023-08-11",
"totalCards": 230
},
"images": {
"small": "https://cdn.tcgpricelookup.com/images/pokemon/sv4/006_small.jpg",
"large": "https://cdn.tcgpricelookup.com/images/pokemon/sv4/006_large.jpg"
},
"prices": {
"nearMint": {
"market": 285.00,
"tcgplayer": 280.00,
"ebay": 290.00,
"low": 250.00,
"high": 350.00
},
"lightlyPlayed": {
"market": 240.00,
"tcgplayer": 235.00,
"ebay": 245.00
},
"moderatelyPlayed": { "market": 200.00 },
"heavilyPlayed": { "market": 160.00 },
"damaged": { "market": 100.00 }
},
"updatedAt": "2026-04-10T14:32:00Z"
}
品相说明
| 品相 | 描述 |
|---|---|
nearMint | Near Mint(近全新)— 无明显瑕疵 |
lightlyPlayed | Lightly Played(轻度使用)— 轻微瑕疵 |
moderatelyPlayed | Moderately Played(中度使用)— 明显瑕疵 |
heavilyPlayed | Heavily Played(重度使用)— 较大损伤 |
damaged | Damaged(损坏)— 严重损伤 |
评级卡对象(需要Trader计划或更高级别)
{
"id": "pokemon-base1-4",
"graded": {
"psa": {
"10": { "market": 12000.00, "population": 128 },
"9": { "market": 3500.00, "population": 342 },
"8": { "market": 1200.00 }
},
"bgs": {
"10": { "market": 25000.00 },
"9.5": { "market": 8000.00 },
"9": { "market": 4000.00 }
},
"cgc": {
"10": { "market": 5000.00 },
"9.5": { "market": 2500.00 }
}
}
}
分页
对于大型结果集,请使用limit和offset参数:
// 第一页
const page1 = await tcg.search('charizard', { limit: 20, offset: 0 });
// 下一页
const page2 = await tcg.search('charizard', { limit: 20, offset: 20 });
// 计算总页数
const totalPages = Math.ceil(page1.total / 20);
价格单位
所有价格均为**美元(USD)**的浮点数:
"market": 285.00 // $285.00 USD