Last active
January 3, 2025 09:20
-
-
Save frosit/170b790e43e8d33f58ebf96e36e4cf30 to your computer and use it in GitHub Desktop.
Pokemon TCG postman / openapi (unofficial)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: Pokémon TCG API (Unofficial Spec) | |
version: 2.0.0 | |
description: > | |
**Unofficial** OpenAPI spec for the Pokémon TCG v2 API. This spec was | |
partially generated based on the sources below and may not be 100% accurate. | |
- [pokemon-tcg-data](https://github.com/PokemonTCG/pokemon-tcg-data) | |
- [pokemon-tcg-api-docs](https://github.com/PokemonTCG/pokemon-tcg-api-docs) | |
For access to this API, request a key at [https://dev.pokemontcg.io/](https://dev.pokemontcg.io/). | |
This document extends the original minimal spec by adding tags, operationIds, | |
best-practice responses (like 429), and example parameters. | |
termsOfService: https://dev.pokemontcg.io/terms | |
servers: | |
- url: https://api.pokemontcg.io | |
tags: | |
- name: Cards | |
description: Endpoints for searching and retrieving card information. | |
- name: Sets | |
description: Endpoints for listing and retrieving set information. | |
- name: Metadata | |
description: Endpoints for listing types, subtypes, supertypes, rarities. | |
paths: | |
/v2/cards: | |
get: | |
tags: [ Cards ] | |
operationId: searchCards | |
summary: Search Cards | |
description: > | |
Returns a list of cards with optional filters. | |
Use `q` to specify complex queries (e.g., `q=name:gardevoir set.id:base1`). | |
Supports pagination via `page` and `pageSize`. | |
**Best practice**: always check the `count` and `totalCount` fields to manage pagination responsibly. | |
parameters: | |
- name: q | |
in: query | |
description: > | |
A query parameter for advanced searching; e.g. `q=name:Gardevoir types:Grass`. | |
For more examples, see [pokemontcg.io docs](https://docs.pokemontcg.io/). | |
required: false | |
schema: | |
type: string | |
examples: | |
SimpleExample: | |
summary: Simple name filter | |
value: name:Pikachu | |
AdvancedExample: | |
summary: Multiple field filter | |
value: name:Charizard supertype:Pokémon hp:[80 TO *] | |
- name: orderBy | |
in: query | |
description: > | |
Sort the cards by a field (e.g. `name`, `set.releaseDate`). | |
Use `orderBy=-name` to sort descending. | |
required: false | |
schema: | |
type: string | |
examples: | |
AscName: | |
summary: Sort ascending by name | |
value: name | |
DescRelease: | |
summary: Sort descending by release date | |
value: -set.releaseDate | |
- name: page | |
in: query | |
description: Which page of results to fetch (starting at 1). | |
required: false | |
schema: | |
type: integer | |
default: 1 | |
- name: pageSize | |
in: query | |
description: Number of results per page (max 250). | |
required: false | |
schema: | |
type: integer | |
default: 50 | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Your Pokémon TCG API key. | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A paginated list of cards | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/CardListResponse' | |
'400': | |
description: Bad request (invalid query, etc.) | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests (rate limit exceeded) | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/cards/{id}: | |
get: | |
tags: [ Cards ] | |
operationId: getCardById | |
summary: Get a single Card by ID | |
description: > | |
Returns detailed information about a specific card. | |
Example card ID might look like `"xy7-54"`. | |
parameters: | |
- name: id | |
in: path | |
required: true | |
description: The card ID (e.g., `xy7-54`). | |
schema: | |
type: string | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: Card data | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/CardByIdResponse' | |
'404': | |
description: Card not found | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests (rate limit exceeded) | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/sets: | |
get: | |
tags: [ Sets ] | |
operationId: listSets | |
summary: List Sets | |
description: > | |
Returns a list of all sets, supporting optional search queries and pagination. | |
parameters: | |
- name: q | |
in: query | |
required: false | |
description: Example `q=name:base` or `q=series:Sun & Moon` | |
schema: | |
type: string | |
- name: orderBy | |
in: query | |
required: false | |
schema: | |
type: string | |
examples: | |
AscName: | |
summary: Sort ascending by name | |
value: name | |
DescRelease: | |
summary: Sort descending by releaseDate | |
value: -releaseDate | |
- name: page | |
in: query | |
required: false | |
schema: | |
type: integer | |
default: 1 | |
- name: pageSize | |
in: query | |
required: false | |
schema: | |
type: integer | |
default: 50 | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A paginated list of sets | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SetListResponse' | |
'400': | |
description: Bad request | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/sets/{id}: | |
get: | |
tags: [ Sets ] | |
operationId: getSetById | |
summary: Get a single Set by ID | |
description: Retrieve detailed information about a specific set (e.g. `base1`). | |
parameters: | |
- name: id | |
in: path | |
required: true | |
description: The set ID (e.g., `base1`). | |
schema: | |
type: string | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: Set data | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SetByIdResponse' | |
'404': | |
description: Not found | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/types: | |
get: | |
tags: [ Metadata ] | |
operationId: listTypes | |
summary: List all card types | |
description: > | |
Returns all possible Pokémon TCG card types (e.g. Grass, Fire, Water, etc.). | |
parameters: | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A list of card types | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
type: string | |
'400': | |
description: Bad request | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/subtypes: | |
get: | |
tags: [ Metadata ] | |
operationId: listSubtypes | |
summary: List all card subtypes | |
description: > | |
Returns all possible Pokémon TCG card subtypes (e.g. Basic, Stage 1, etc.). | |
parameters: | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A list of card subtypes | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
type: string | |
'400': | |
description: Bad request | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/supertypes: | |
get: | |
tags: [ Metadata ] | |
operationId: listSupertypes | |
summary: List all card supertypes | |
description: > | |
Returns all possible Pokémon TCG card supertypes (e.g. Pokémon, Trainer, Energy). | |
parameters: | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A list of card supertypes | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
type: string | |
'400': | |
description: Bad request | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
/v2/rarities: | |
get: | |
tags: [ Metadata ] | |
operationId: listRarities | |
summary: List all card rarities | |
description: > | |
Returns all possible Pokémon TCG card rarities (e.g. Rare Holo, Rare Ultra, etc.). | |
parameters: | |
- name: X-Api-Key | |
in: header | |
required: false | |
description: Pokémon TCG API key | |
schema: | |
type: string | |
responses: | |
'200': | |
description: A list of card rarities | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
type: string | |
'400': | |
description: Bad request | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
'429': | |
description: Too many requests | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorResponse' | |
components: | |
securitySchemes: | |
ApiKeyAuth: | |
type: apiKey | |
in: header | |
name: X-Api-Key | |
schemas: | |
ErrorResponse: | |
type: object | |
properties: | |
error: | |
type: string | |
description: Error message | |
code: | |
type: integer | |
description: HTTP status code | |
CardListResponse: | |
type: object | |
description: > | |
Response containing an array of cards, plus pagination details. | |
properties: | |
data: | |
type: array | |
items: | |
$ref: '#/components/schemas/Card' | |
page: | |
type: integer | |
description: Current page number | |
pageSize: | |
type: integer | |
description: Number of items per page | |
count: | |
type: integer | |
description: Number of cards in the current page | |
totalCount: | |
type: integer | |
description: Total number of matching cards | |
CardByIdResponse: | |
type: object | |
description: Response containing a single card | |
properties: | |
data: | |
$ref: '#/components/schemas/Card' | |
Card: | |
type: object | |
description: Pokémon TCG card data | |
properties: | |
id: | |
type: string | |
example: swsh1-1 | |
name: | |
type: string | |
example: Bulbasaur | |
supertype: | |
type: string | |
example: Pokémon | |
subtypes: | |
type: array | |
items: | |
type: string | |
example: | |
- Stage 2 | |
level: | |
type: string | |
nullable: true | |
hp: | |
type: string | |
example: '160' | |
types: | |
type: array | |
items: | |
type: string | |
example: | |
- Grass | |
evolvesFrom: | |
type: string | |
nullable: true | |
example: Ivysaur | |
rules: | |
type: array | |
items: | |
type: string | |
example: | |
- "This Pokémon does 30 more damage for each Grass energy..." | |
abilities: | |
type: array | |
items: | |
type: object | |
properties: | |
name: | |
type: string | |
text: | |
type: string | |
type: | |
type: string | |
example: | |
- name: Overgrow | |
text: "If this Pokémon is your Active Pokémon..." | |
type: Ability | |
attacks: | |
type: array | |
items: | |
type: object | |
properties: | |
name: | |
type: string | |
cost: | |
type: array | |
items: | |
type: string | |
convertedEnergyCost: | |
type: integer | |
damage: | |
type: string | |
text: | |
type: string | |
example: | |
- name: "Razor Leaf" | |
cost: [ "Grass","Colorless" ] | |
convertedEnergyCost: 2 | |
damage: "30" | |
text: "Flip a coin. If heads, your opponent is now Poisoned." | |
weaknesses: | |
type: array | |
items: | |
type: object | |
properties: | |
type: | |
type: string | |
value: | |
type: string | |
example: | |
- type: Fire | |
value: "x2" | |
retreatCost: | |
type: array | |
items: | |
type: string | |
example: [ "Colorless","Colorless" ] | |
convertedRetreatCost: | |
type: integer | |
example: 2 | |
set: | |
$ref: '#/components/schemas/Set' | |
number: | |
type: string | |
example: '1' | |
artist: | |
type: string | |
example: Ken Sugimori | |
rarity: | |
type: string | |
example: Rare Holo | |
nationalPokedexNumbers: | |
type: array | |
items: | |
type: integer | |
example: [ 1, 2, 3 ] | |
legalities: | |
type: object | |
properties: | |
unlimited: | |
type: string | |
standard: | |
type: string | |
expanded: | |
type: string | |
example: | |
unlimited: Legal | |
standard: Banned | |
expanded: Legal | |
images: | |
type: object | |
properties: | |
small: | |
type: string | |
format: uri | |
large: | |
type: string | |
format: uri | |
example: | |
small: https://images.pokemontcg.io/base1/1.png | |
large: https://images.pokemontcg.io/base1/1_hires.png | |
tcgplayer: | |
type: object | |
properties: | |
url: | |
type: string | |
format: uri | |
updatedAt: | |
type: string | |
format: date-time | |
prices: | |
type: object | |
additionalProperties: true | |
example: | |
url: https://prices.tcgplayer.com/... | |
updatedAt: "2023-06-23T00:00:00Z" | |
prices: | |
normal: | |
low: 1.00 | |
mid: 2.00 | |
high: 5.00 | |
cardmarket: | |
type: object | |
properties: | |
url: | |
type: string | |
format: uri | |
updatedAt: | |
type: string | |
format: date-time | |
prices: | |
type: object | |
additionalProperties: true | |
example: | |
url: https://www.cardmarket.com/en/Pokemon/ | |
updatedAt: "2023-07-01T00:00:00Z" | |
prices: | |
averageSellPrice: 1.50 | |
trendPrice: 1.70 | |
SetListResponse: | |
type: object | |
description: Paginated list of sets | |
properties: | |
data: | |
type: array | |
items: | |
$ref: '#/components/schemas/Set' | |
page: | |
type: integer | |
pageSize: | |
type: integer | |
count: | |
type: integer | |
totalCount: | |
type: integer | |
SetByIdResponse: | |
type: object | |
description: Single set response | |
properties: | |
data: | |
$ref: '#/components/schemas/Set' | |
Set: | |
type: object | |
description: Pokémon TCG set data | |
properties: | |
id: | |
type: string | |
example: base1 | |
name: | |
type: string | |
example: Base | |
series: | |
type: string | |
example: Base | |
printedTotal: | |
type: integer | |
example: 102 | |
total: | |
type: integer | |
example: 102 | |
legalities: | |
type: object | |
properties: | |
unlimited: | |
type: string | |
example: Legal | |
standard: | |
type: string | |
example: Banned | |
expanded: | |
type: string | |
example: Legal | |
ptcgoCode: | |
type: string | |
example: BS | |
releaseDate: | |
type: string | |
example: 1999/01/09 | |
updatedAt: | |
type: string | |
format: date-time | |
example: 2021/04/01 | |
images: | |
type: object | |
properties: | |
symbol: | |
type: string | |
format: uri | |
logo: | |
type: string | |
format: uri | |
example: | |
symbol: https://images.pokemontcg.io/base1/symbol.png | |
logo: https://images.pokemontcg.io/base1/logo.png | |
externalDocs: | |
url: https://docs.pokemontcg.io/ | |
description: The original docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "88f11ceb-1bb3-4b3e-97a0-1e87e4e1685f", | |
"name": "Pokémon TCG API (Unofficial Spec) Copy", | |
"description": "**Unofficial** OpenAPI spec for the Pokémon TCG v2 API. This spec was partially generated based on the sources below and may not be 100% accurate.\n- [pokemon-tcg-data](https://github.com/PokemonTCG/pokemon-tcg-data)\n- [pokemon-tcg-api-docs](https://github.com/PokemonTCG/pokemon-tcg-api-docs)\n\nFor access to this API, request a key at [https://dev.pokemontcg.io/](https://dev.pokemontcg.io/).\n\nThis document extends the original minimal spec by adding tags, operationIds, best-practice responses (like 429), and example parameters.\n", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "2334199", | |
"_collection_link": "https://interstellar-spaceship-385597.postman.co/workspace/TCG-Card-Scanning~b7511307-eb69-401d-8ef8-a75382bbe8e4/collection/2334199-88f11ceb-1bb3-4b3e-97a0-1e87e4e1685f?action=share&source=collection_link&creator=2334199" | |
}, | |
"item": [ | |
{ | |
"name": "v2", | |
"item": [ | |
{ | |
"name": "cards", | |
"item": [ | |
{ | |
"name": "{id}", | |
"item": [ | |
{ | |
"name": "Get a single Card by ID", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "<string>", | |
"description": "(Required) The card ID (e.g., `xy7-54`)." | |
} | |
] | |
}, | |
"description": "Returns detailed information about a specific card. Example card ID might look like `\"xy7-54\"`.\n" | |
}, | |
"response": [ | |
{ | |
"name": "Card data", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"supertype\": \"<string>\",\n \"subtypes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"level\": \"<string>\",\n \"hp\": \"<string>\",\n \"types\": [\n \"<string>\",\n \"<string>\"\n ],\n \"evolvesFrom\": \"<string>\",\n \"rules\": [\n \"<string>\",\n \"<string>\"\n ],\n \"abilities\": [\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"attacks\": [\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"weaknesses\": [\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"retreatCost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedRetreatCost\": \"<integer>\",\n \"set\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n },\n \"number\": \"<string>\",\n \"artist\": \"<string>\",\n \"rarity\": \"<string>\",\n \"nationalPokedexNumbers\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"images\": {\n \"small\": \"<uri>\",\n \"large\": \"<uri>\"\n },\n \"tcgplayer\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"fugiat40\": \"in anim Excepteur\"\n }\n },\n \"cardmarket\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"exercitation5bd\": true,\n \"aliquipb3\": -30574869.58871664,\n \"ut__f1\": true\n }\n }\n }\n}" | |
}, | |
{ | |
"name": "Card not found", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "Not Found", | |
"code": 404, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests (rate limit exceeded)", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Search Cards", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Your Pokémon TCG API key." | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards?page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "A query parameter for advanced searching; e.g. `q=name:Gardevoir types:Grass`. For more examples, see [pokemontcg.io docs](https://docs.pokemontcg.io/).\n", | |
"disabled": true | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>", | |
"description": "Sort the cards by a field (e.g. `name`, `set.releaseDate`). Use `orderBy=-name` to sort descending.\n", | |
"disabled": true | |
}, | |
{ | |
"key": "page", | |
"value": "1", | |
"description": "Which page of results to fetch (starting at 1)." | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50", | |
"description": "Number of results per page (max 250)." | |
} | |
] | |
}, | |
"description": "Returns a list of cards with optional filters. Use `q` to specify complex queries (e.g., `q=name:gardevoir set.id:base1`). Supports pagination via `page` and `pageSize`. **Best practice**: always check the `count` and `totalCount` fields to manage pagination responsibly.\n" | |
}, | |
"response": [ | |
{ | |
"name": "A paginated list of cards", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Your Pokémon TCG API key." | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "A query parameter for advanced searching; e.g. `q=name:Gardevoir types:Grass`. For more examples, see [pokemontcg.io docs](https://docs.pokemontcg.io/).\n" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>", | |
"description": "Sort the cards by a field (e.g. `name`, `set.releaseDate`). Use `orderBy=-name` to sort descending.\n" | |
}, | |
{ | |
"key": "page", | |
"value": "1", | |
"description": "Which page of results to fetch (starting at 1)." | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50", | |
"description": "Number of results per page (max 250)." | |
} | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"supertype\": \"<string>\",\n \"subtypes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"level\": \"<string>\",\n \"hp\": \"<string>\",\n \"types\": [\n \"<string>\",\n \"<string>\"\n ],\n \"evolvesFrom\": \"<string>\",\n \"rules\": [\n \"<string>\",\n \"<string>\"\n ],\n \"abilities\": [\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"attacks\": [\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"weaknesses\": [\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"retreatCost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedRetreatCost\": \"<integer>\",\n \"set\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n },\n \"number\": \"<string>\",\n \"artist\": \"<string>\",\n \"rarity\": \"<string>\",\n \"nationalPokedexNumbers\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"images\": {\n \"small\": \"<uri>\",\n \"large\": \"<uri>\"\n },\n \"tcgplayer\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"ipsum_3\": 42458018.522542715\n }\n },\n \"cardmarket\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"dolore_b0\": -28771296,\n \"magna__\": true\n }\n }\n },\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"supertype\": \"<string>\",\n \"subtypes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"level\": \"<string>\",\n \"hp\": \"<string>\",\n \"types\": [\n \"<string>\",\n \"<string>\"\n ],\n \"evolvesFrom\": \"<string>\",\n \"rules\": [\n \"<string>\",\n \"<string>\"\n ],\n \"abilities\": [\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"text\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"attacks\": [\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"cost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedEnergyCost\": \"<integer>\",\n \"damage\": \"<string>\",\n \"text\": \"<string>\"\n }\n ],\n \"weaknesses\": [\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"retreatCost\": [\n \"<string>\",\n \"<string>\"\n ],\n \"convertedRetreatCost\": \"<integer>\",\n \"set\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n },\n \"number\": \"<string>\",\n \"artist\": \"<string>\",\n \"rarity\": \"<string>\",\n \"nationalPokedexNumbers\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"images\": {\n \"small\": \"<uri>\",\n \"large\": \"<uri>\"\n },\n \"tcgplayer\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"occaecatb66\": true\n }\n },\n \"cardmarket\": {\n \"url\": \"<uri>\",\n \"updatedAt\": \"<dateTime>\",\n \"prices\": {\n \"adfd6\": \"cupidatat magna non adipisicing mollit\",\n \"dolor9\": -84302115.52276537\n }\n }\n }\n ],\n \"page\": \"<integer>\",\n \"pageSize\": \"<integer>\",\n \"count\": \"<integer>\",\n \"totalCount\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Bad request (invalid query, etc.)", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Your Pokémon TCG API key." | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "A query parameter for advanced searching; e.g. `q=name:Gardevoir types:Grass`. For more examples, see [pokemontcg.io docs](https://docs.pokemontcg.io/).\n" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>", | |
"description": "Sort the cards by a field (e.g. `name`, `set.releaseDate`). Use `orderBy=-name` to sort descending.\n" | |
}, | |
{ | |
"key": "page", | |
"value": "1", | |
"description": "Which page of results to fetch (starting at 1)." | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50", | |
"description": "Number of results per page (max 250)." | |
} | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests (rate limit exceeded)", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Your Pokémon TCG API key." | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/cards?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"cards" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "A query parameter for advanced searching; e.g. `q=name:Gardevoir types:Grass`. For more examples, see [pokemontcg.io docs](https://docs.pokemontcg.io/).\n" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>", | |
"description": "Sort the cards by a field (e.g. `name`, `set.releaseDate`). Use `orderBy=-name` to sort descending.\n" | |
}, | |
{ | |
"key": "page", | |
"value": "1", | |
"description": "Which page of results to fetch (starting at 1)." | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50", | |
"description": "Number of results per page (max 250)." | |
} | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "sets", | |
"item": [ | |
{ | |
"name": "{id}", | |
"item": [ | |
{ | |
"name": "Get a single Set by ID", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id", | |
"value": "<string>", | |
"description": "(Required) The set ID (e.g., `base1`)." | |
} | |
] | |
}, | |
"description": "Retrieve detailed information about a specific set (e.g. `base1`)." | |
}, | |
"response": [ | |
{ | |
"name": "Set data", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n }\n}" | |
}, | |
{ | |
"name": "Not found", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "Not Found", | |
"code": 404, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets/:id", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets", | |
":id" | |
], | |
"variable": [ | |
{ | |
"key": "id" | |
} | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "List Sets", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "Example `q=name:base` or `q=series:Sun & Moon`" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>" | |
}, | |
{ | |
"key": "page", | |
"value": "1" | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50" | |
} | |
] | |
}, | |
"description": "Returns a list of all sets, supporting optional search queries and pagination.\n" | |
}, | |
"response": [ | |
{ | |
"name": "A paginated list of sets", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "Example `q=name:base` or `q=series:Sun & Moon`" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>" | |
}, | |
{ | |
"key": "page", | |
"value": "1" | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50" | |
} | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n },\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"series\": \"<string>\",\n \"printedTotal\": \"<integer>\",\n \"total\": \"<integer>\",\n \"legalities\": {\n \"unlimited\": \"<string>\",\n \"standard\": \"<string>\",\n \"expanded\": \"<string>\"\n },\n \"ptcgoCode\": \"<string>\",\n \"releaseDate\": \"<string>\",\n \"updatedAt\": \"<dateTime>\",\n \"images\": {\n \"symbol\": \"<uri>\",\n \"logo\": \"<uri>\"\n }\n }\n ],\n \"page\": \"<integer>\",\n \"pageSize\": \"<integer>\",\n \"count\": \"<integer>\",\n \"totalCount\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Bad request", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "Example `q=name:base` or `q=series:Sun & Moon`" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>" | |
}, | |
{ | |
"key": "page", | |
"value": "1" | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50" | |
} | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/sets?q=<string>&orderBy=<string>&page=1&pageSize=50", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"sets" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "<string>", | |
"description": "Example `q=name:base` or `q=series:Sun & Moon`" | |
}, | |
{ | |
"key": "orderBy", | |
"value": "<string>" | |
}, | |
{ | |
"key": "page", | |
"value": "1" | |
}, | |
{ | |
"key": "pageSize", | |
"value": "50" | |
} | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "types", | |
"item": [ | |
{ | |
"name": "List all card types", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/types", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"types" | |
] | |
}, | |
"description": "Returns all possible Pokémon TCG card types (e.g. Grass, Fire, Water, etc.).\n" | |
}, | |
"response": [ | |
{ | |
"name": "A list of card types", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/types", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"types" | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n \"<string>\",\n \"<string>\"\n ]\n}" | |
}, | |
{ | |
"name": "Bad request", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/types", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"types" | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/types", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"types" | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "subtypes", | |
"item": [ | |
{ | |
"name": "List all card subtypes", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/subtypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"subtypes" | |
] | |
}, | |
"description": "Returns all possible Pokémon TCG card subtypes (e.g. Basic, Stage 1, etc.).\n" | |
}, | |
"response": [ | |
{ | |
"name": "A list of card subtypes", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/subtypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"subtypes" | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n \"<string>\",\n \"<string>\"\n ]\n}" | |
}, | |
{ | |
"name": "Bad request", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/subtypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"subtypes" | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/subtypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"subtypes" | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "supertypes", | |
"item": [ | |
{ | |
"name": "List all card supertypes", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/supertypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"supertypes" | |
] | |
}, | |
"description": "Returns all possible Pokémon TCG card supertypes (e.g. Pokémon, Trainer, Energy).\n" | |
}, | |
"response": [ | |
{ | |
"name": "A list of card supertypes", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/supertypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"supertypes" | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n \"<string>\",\n \"<string>\"\n ]\n}" | |
}, | |
{ | |
"name": "Bad request", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/supertypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"supertypes" | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/supertypes", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"supertypes" | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "rarities", | |
"item": [ | |
{ | |
"name": "List all card rarities", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/rarities", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"rarities" | |
] | |
}, | |
"description": "Returns all possible Pokémon TCG card rarities (e.g. Rare Holo, Rare Ultra, etc.).\n" | |
}, | |
"response": [ | |
{ | |
"name": "A list of card rarities", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/rarities", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"rarities" | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"data\": [\n \"<string>\",\n \"<string>\"\n ]\n}" | |
}, | |
{ | |
"name": "Bad request", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/rarities", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"rarities" | |
] | |
} | |
}, | |
"status": "Bad Request", | |
"code": 400, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
}, | |
{ | |
"name": "Too many requests", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Api-Key", | |
"value": "<string>", | |
"description": "Pokémon TCG API key" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/json" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/v2/rarities", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"v2", | |
"rarities" | |
] | |
} | |
}, | |
"status": "Too Many Requests", | |
"code": 429, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"error\": \"<string>\",\n \"code\": \"<integer>\"\n}" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
], | |
"auth": { | |
"type": "apikey", | |
"apikey": [ | |
{ | |
"key": "value", | |
"value": "5cfae923-39f2-47da-8731-160a50baa709", | |
"type": "string" | |
}, | |
{ | |
"key": "key", | |
"value": "X-Api-Key", | |
"type": "string" | |
} | |
] | |
}, | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"type": "text/javascript", | |
"packages": {}, | |
"exec": [ | |
"" | |
] | |
} | |
}, | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"packages": {}, | |
"exec": [ | |
"" | |
] | |
} | |
} | |
], | |
"variable": [ | |
{ | |
"key": "baseUrl", | |
"value": "https://api.pokemontcg.io" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment