Docs / API reference
Games and sets
Every game and set we cover, so you can filter searches by the exact names.
Request
GET
https://tcgpriceapi.com/v1/sets| Name | Type | Description |
|---|---|---|
game | string | Only sets in this game, such as One Piece Card Game. |
Counts as one request.
curl "https://tcgpriceapi.com/v1/sets?game=One%20Piece%20Card%20Game" \
-H "X-API-Key: YOUR_API_KEY"import requests
response = requests.get(
"https://tcgpriceapi.com/v1/sets?game=One%20Piece%20Card%20Game",
headers={"X-API-Key": "YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://tcgpriceapi.com/v1/sets?game=One%20Piece%20Card%20Game", {
headers: { "X-API-Key": process.env.TCGPRICEAPI_KEY },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Response
A list of game and set pairs. The first three are shown here.
[
{
"game": "One Piece Card Game",
"set": "500 Years in the Future"
},
{
"game": "One Piece Card Game",
"set": "500 Years in the Future Pre-Release Cards"
},
{
"game": "One Piece Card Game",
"set": "Adventure on Kami's Island"
}
]| Field | Type | Description |
|---|---|---|
game | string | The game. |
set | string | A set in that game. |