> For the complete documentation index, see [llms.txt](https://pokedevs.gitbook.io/pokedex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pokedevs.gitbook.io/pokedex/resources/pokemon.md).

# Pokémon

## Get Pokémon

<mark style="color:blue;">`GET`</mark> `https://ex.traction.one/pokedex/pokemon/:slug`

This endpoint returns an array of Pokémon objects containing all the forms of the Pokémon specified by the Pokémon name or number.

#### Path Parameters

| Name                                   | Type   | Description                                                   |
| -------------------------------------- | ------ | ------------------------------------------------------------- |
| slug<mark style="color:red;">\*</mark> | string | Either the name or the national Pokédex number of the Pokémon |

#### Headers

| Name       | Type   | Description                        |
| ---------- | ------ | ---------------------------------- |
| User-Agent | string | The User-Agent of your application |

{% tabs %}
{% tab title="200 " %}

```json
[
  {
    "number": 658,
    "name": "Greninja",
    "gen": 6,
    "species": "Ninja Pokémon",
    "types": [
      "Water",
      "Dark"
    ],
    "abilities": [
      {
        "name": "Torrent",
        "description": "Powers up Water-type moves in a pinch.",
        "hidden": false
      },
      {
        "name": "Protean",
        "description": "Changes the Pokémon's type to its last used move.",
        "hidden": true
      }
    ],
    "height": "1.5 m (4′11″)",
    "weight": "40.0 kg (88.2 lbs)",
    "mega": false,
    "baseStats": {
      "hp": 72,
      "attack": 95,
      "defense": 67,
      "spAtk": 103,
      "spDef": 71,
      "speed": 122
    },
    "training": {
      "evYield": "3 Speed",
      "catchRate": "45 (5.9% with PokéBall, full HP)",
      "baseFriendship": "50 (normal)",
      "baseExp": "265",
      "growthRate": "Medium Slow"
    },
    "breeding": {
      "gender": "87.5% male, 12.5% female",
      "eggGroups": [
        "Water 1"
      ],
      "eggCycles": "20 (4,884–5,140 steps)"
    },
    "sprite": "https://img.pokemondb.net/sprites/home/normal/greninja.png"
  },
  {
    "number": 658,
    "name": "Ash-Greninja",
    "gen": 6,
    "species": "Ninja Pokémon",
    "types": [
      "Water",
      "Dark"
    ],
    "abilities": [
      {
        "name": "Battle Bond",
        "description": "Transform into Ash-Greninja after causing opponent to faint.",
        "hidden": false
      }
    ],
    "height": "1.5 m (4′11″)",
    "weight": "40.0 kg (88.2 lbs)",
    "mega": false,
    "baseStats": {
      "hp": 72,
      "attack": 145,
      "defense": 67,
      "spAtk": 153,
      "spDef": 71,
      "speed": 132
    },
    "training": {
      "evYield": "3 Speed",
      "catchRate": "45 (5.9% with PokéBall, full HP)",
      "baseFriendship": "50 (normal)",
      "baseExp": "265",
      "growthRate": "Medium Slow"
    },
    "breeding": {
      "gender": "100% male, 0% female",
      "eggGroups": [
        "Undiscovered"
      ],
      "eggCycles": "20 (4,884–5,140 steps)"
    },
    "sprite": "https://img.pokemondb.net/sprites/home/normal/greninja-ash.png"
  }
]
```

{% endtab %}
{% endtabs %}

**Example Request**

```bash
curl -i -X GET \
  -H "User-Agent: BastionDiscordBot (https://bastion.traction.one, v10.13.0)" \
  https://ex.traction.one/pokedex/pokemon/greninja
```

```bash
curl -i -X GET \
  -H "User-Agent: BastionDiscordBot (https://bastion.traction.one, v10.13.0)" \
  https://ex.traction.one/pokedex/pokemon/658
```

## List Pokémon

<mark style="color:blue;">`GET`</mark> `https://ex.traction.one/pokedex/pokemon`

This endpoint returns an object with all the national Pokédex number mapped to the name of the Pokémon.

#### Headers

| Name       | Type   | Description                        |
| ---------- | ------ | ---------------------------------- |
| User-Agent | string | The User-Agent of your application |

{% tabs %}
{% tab title="200 " %}

```json
{
  "1": "Bulbasaur",
  "2": "Ivysaur",
  "3":"Venusaur",
  ...
  "1008": "Miraidon",
  "1009": "Walking Wake",
  "1010": "Iron Leaves"
}
```

{% endtab %}
{% endtabs %}

**Example Request**

```bash
curl -i -X GET \
  -H "User-Agent: BastionDiscordBot (https://bastion.traction.one, v10.13.0)" \
  https://ex.traction.one/pokedex/pokemon
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://pokedevs.gitbook.io/pokedex/resources/pokemon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
