# PokéAPI API

> Returns Pokémon, types, moves, abilities, species details and evolution chains from PokéAPI.

Category: Sports & Gaming. Region: global. 12 endpoints at `https://api.hoshime.com/v1/pokeapi/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/pokeapi
## GET /v1/pokeapi/pokemon

One Pokémon by name or National Dex id: types, abilities, base stats.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Name such as pikachu, or National Dex id such as 25. (e.g. pikachu) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `abilities` (string[]), `heightMetres` (number (double)), `id` (string), `name` (string), `sprite` (string), `stats` (Stat[]), `stats[].base` (integer (int64)), `stats[].name` (string), `types` (string[]), `weightKilograms` (number (double))

```bash
curl "https://api.hoshime.com/v1/pokeapi/pokemon?name=pikachu" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/type

One Pokémon type with its damage relations.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Type name, such as electric. (e.g. electric) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `damageRelations` (Damage), `damageRelations.doubleDamageFrom` (string[]), `damageRelations.doubleDamageTo` (string[]), `damageRelations.halfDamageFrom` (string[]), `damageRelations.halfDamageTo` (string[]), `damageRelations.noDamageFrom` (string[]), `damageRelations.noDamageTo` (string[]), `generation` (string), `id` (string), `name` (string), `pokemonCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pokeapi/type?name=electric" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/move

One move: type, power, accuracy, PP and its English effect.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Move name, such as thunderbolt. (e.g. thunderbolt) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accuracy` (integer (int64)), `damageClass` (string), `effect` (string), `id` (string), `name` (string), `power` (integer (int64)), `pp` (integer (int64)), `target` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/move?name=thunderbolt" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/ability

One ability: its English effect and how many Pokémon have it.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Ability name, such as static. (e.g. static) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `effect` (string), `id` (string), `name` (string), `pokemonCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pokeapi/ability?name=static" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/species

A Pokémon species by name or National Dex id: its genus, flavour text, habitat, breeding and rarity.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Species name such as pikachu, or National Dex id such as 25. (e.g. pikachu) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `baseHappiness` (integer (int64)), `captureRate` (integer (int64)), `color` (string), `eggGroups` (string[]), `evolutionChainId` (string), `evolvesFrom` (string), `flavorText` (string), `generation` (string), `genus` (string), `growthRate` (string), `habitat` (string), `id` (string), `legendary` (boolean), `mythical` (boolean), `name` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/species?name=pikachu" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/evolutionChain

An evolution chain by id: every evolution step with its trigger and the level it happens at.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Evolution chain id, such as 10 for Pichu, Pikachu and Raichu. (e.g. 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `id` (string), `steps` (EvolutionStep[]), `steps[].from` (string), `steps[].minLevel` (integer (int64)), `steps[].to` (string), `steps[].trigger` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/evolutionChain?id=10" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/berry

A berry by name or id: its growth time, harvest size, firmness and flavour profile.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Berry name such as cheri, or id such as 1. (e.g. cheri) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `firmness` (string), `growthHours` (integer (int64)), `id` (string), `item` (string), `maxHarvest` (integer (int64)), `name` (string), `sizeMm` (integer (int64)), `smoothness` (integer (int64)), `soilDryness` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pokeapi/berry?name=cheri" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/item

An item by name or id: its category, cost, what it does in English and its sprite.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Item name such as master-ball, or id such as 1. (e.g. master-ball) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `cost` (integer (int64)), `effect` (string), `id` (string), `name` (string), `sprite` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/item?name=master-ball" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/nature

A nature by name or id: the stat it raises and the stat it lowers, and the berry flavours it likes.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Nature name such as adamant, or id such as 1. (e.g. adamant) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `decreasedStat` (string), `hatesFlavor` (string), `id` (string), `increasedStat` (string), `likesFlavor` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/nature?name=adamant" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/generation

A Pokémon generation by name or id: its main region and the species it introduced.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Generation name such as generation-i, or id such as 1. (e.g. generation-i) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `mainRegion` (string), `name` (string), `species` (string[])

```bash
curl "https://api.hoshime.com/v1/pokeapi/generation?name=generation-i" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/pokemonEncounters

The places a Pokémon can be found in, per game version, with the chance and level range of each encounter.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Pokémon name such as pikachu, or National Dex id such as 25. (e.g. pikachu) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `locationArea` (string), `maxChance` (integer (int64)), `maxLevel` (integer (int64)), `minLevel` (integer (int64)), `version` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/pokemonEncounters?name=pikachu" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pokeapi/location

A location by name or id, such as a city or route: its region and the areas inside it.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Location name such as canalave-city, or id such as 1. (e.g. canalave-city) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `areas` (string[]), `id` (string), `name` (string), `region` (string)

```bash
curl "https://api.hoshime.com/v1/pokeapi/location?name=canalave-city" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
