# Data Dragon (League of Legends) API

> Returns League of Legends patch versions, champions, items, summoner spells and profile icons from Riot's Data Dragon.

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

The League of Legends patch versions, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/versions" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/champions

All League of Legends champions of a patch, sorted by id. Omit version for the newest patch.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `items` (Champion[]), `items[].id` (string), `items[].key` (string), `items[].name` (string), `items[].tags` (string[]), `items[].title` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/champions" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/champion

One champion by id, such as Ahri, with its lore blurb and tags. Omit version for the newest patch.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Champion id, such as Ahri or MissFortune. (e.g. Ahri) |
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `blurb` (string), `id` (string), `key` (string), `name` (string), `resource` (string), `tags` (string[]), `title` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/champion?id=Ahri" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/items

Every League of Legends item of a patch, with its gold cost, tags and the items it builds into.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `items` (Item[]), `items[].from` (string[]), `items[].gold` (integer (int64)), `items[].goldBase` (integer (int64)), `items[].goldSell` (integer (int64)), `items[].id` (string), `items[].into` (string[]), `items[].maps` (string[]), `items[].name` (string), `items[].plaintext` (string), `items[].purchasable` (boolean), `items[].tags` (string[]), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/items" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/summonerSpells

Every summoner spell of a patch, with its cooldown, unlock level and game modes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `items` (SummonerSpell[]), `items[].cooldownSeconds` (string), `items[].id` (string), `items[].level` (integer (int64)), `items[].modes` (string[]), `items[].name` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/summonerSpells" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/profileIcons

Every summoner profile icon of a patch, with the image URL of each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `items` (ProfileIcon[]), `items[].id` (string), `items[].image` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/profileIcons" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/maps

The League of Legends maps of a patch, such as Summoner's Rift, with their image.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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), `image` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/maps" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/languages

The locales Data Dragon publishes its data in, such as en_US or ja_JP.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `code` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/languages" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ddragon/runes

The League of Legends rune trees (Domination, Precision and so on) of a patch, with each rune's keystone or minor slot and icon.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `version` | string | no | Patch version, such as 16.1.1. Omit it for the newest. |
| `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: `icon` (string), `id` (string), `key` (string), `name` (string), `slots` (RuneSlot[]), `slots[].runes` (Rune[]), `version` (string)

```bash
curl "https://api.hoshime.com/v1/ddragon/runes" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
