# Pokémon TCG API

> Find Pokémon Trading Card Game cards, sets, rarities and card types.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/pokemon-tcg

## Actions

### Get card

Look up a Pokémon TCG card by its ID.

**Inputs**

- Card ID (`card_id`, text, required): The card id to look up.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "base1-4",
      "images": {
        "large": "https://images.pokemontcg.io/base1/4_hires.png",
        "small": "https://images.pokemontcg.io/base1/4.png"
      },
      "name": "Charizard",
      "number": "4",
      "rarity": "Rare Holo",
      "set": {
        "id": "base1",
        "name": "Base"
      },
      "supertype": "Pok\u00e9mon",
      "types": [
        "Fire"
      ]
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get set

Look up a Pokémon TCG set by its ID.

**Inputs**

- Set (`set_id`, text, required): The set id to look up.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "base1",
      "name": "Base",
      "releaseDate": "1999/01/09",
      "series": "Base",
      "total": 102
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List rarities

Get the available Pokémon TCG rarities.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      "Rare Holo",
      "Common"
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### List subtypes

Get the available Pokémon TCG subtypes.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      "Basic",
      "Stage 2"
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### List supertypes

Get the available Pokémon TCG supertypes.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      "Pok\u00e9mon",
      "Trainer"
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### List types

Get the available Pokémon TCG types.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      "Fire",
      "Water"
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### Search cards

Search Pokémon TCG cards with the documented query syntax.

**Inputs**

- Search query (`query`, text): Use Pokémon TCG search syntax, such as name:charizard.
- Page (`page`, number): The page for this request. At least 1.
- Page size (`page_size`, number): The page size for this request. From 1 to 250.
- Sort fields (`sort`, text): A field name, optionally preceded by a minus for descending order.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "id": "base1-4",
        "images": {
          "large": "https://images.pokemontcg.io/base1/4_hires.png",
          "small": "https://images.pokemontcg.io/base1/4.png"
        },
        "name": "Charizard",
        "number": "4",
        "rarity": "Rare Holo",
        "set": {
          "id": "base1",
          "name": "Base"
        },
        "supertype": "Pok\u00e9mon",
        "types": [
          "Fire"
        ]
      }
    ],
    "page": 1,
    "pageSize": 1,
    "totalCount": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### Search sets

Search Pokémon TCG sets with the documented query syntax.

**Inputs**

- Search query (`query`, text): Use Pokémon TCG search syntax, such as name:charizard.
- Page (`page`, number): The page for this request. At least 1.
- Page size (`page_size`, number): The page size for this request. From 1 to 250.
- Sort fields (`sort`, text): A field name, optionally preceded by a minus for descending order.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "id": "base1",
        "name": "Base",
        "releaseDate": "1999/01/09",
        "series": "Base",
        "total": 102
      }
    ],
    "page": 1,
    "pageSize": 1,
    "totalCount": 1
  },
  "has_more": false,
  "next_cursor": null
}
```
