# Genshin Impact Data API

> Returns Genshin Impact characters, weapons, foods and monsters with attributes such as rarity, element and weapon type.

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

Every Genshin Impact playable character in the database, with rarity, element and weapon type.

Scope: `social:read` · Units: 1 · Cached: 360 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: `element` (string), `id` (string), `name` (string), `rarity` (integer (int64)), `region` (string), `weaponType` (string)

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

## GET /v1/genshindata/character

One Genshin Impact character: element, weapon, rarity, base stats, birthday and story title.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Avatar numeric id, such as 10000002 for Kamisato Ayaka. (e.g. 10000002) |
| `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: `baseStats` (map), `birthday` (string), `constellation` (string), `description` (string), `element` (string), `id` (string), `name` (string), `native` (string), `rarity` (integer (int64)), `region` (string), `releasedAt` (string), `title` (string), `weaponType` (string)

```bash
curl "https://api.hoshime.com/v1/genshindata/character?id=10000002" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/genshindata/weapons

Every Genshin Impact weapon in the database: its rarity, weapon type and id.

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: `id` (string), `kind` (string), `name` (string), `rarity` (integer (int64))

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

## GET /v1/genshindata/weapon

One Genshin Impact weapon by numeric id: its rarity, type, description and special stat.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Weapon numeric id, such as 11501 for Aquila Favonia. (e.g. 11501) |
| `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: `description` (string), `id` (string), `name` (string), `rarity` (integer (int64)), `specialProp` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/genshindata/weapon?id=11501" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/genshindata/foods

Every Genshin Impact food in the database, with its rarity and whether it has a recipe.

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: `id` (string), `kind` (string), `name` (string), `rarity` (integer (int64))

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

## GET /v1/genshindata/monsters

Every Genshin Impact monster in the database, with its element or category.

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: `id` (string), `kind` (string), `name` (string), `rarity` (integer (int64))

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

## GET /v1/genshindata/material

One Genshin Impact material by numeric id: its description, rarity and where it comes from.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Material numeric id, such as 104301. (e.g. 104301) |
| `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: `description` (string), `id` (string), `name` (string), `rarity` (integer (int64)), `sources` (Source[]), `sources[].name` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/genshindata/material?id=104301" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/genshindata/nameCards

Every Genshin Impact name card in the database, with its rarity and how it is earned.

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: `id` (string), `kind` (string), `name` (string), `rarity` (integer (int64))

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

## GET /v1/genshindata/books

Every Genshin Impact in-game book in the database, with its rarity.

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: `id` (string), `kind` (string), `name` (string), `rarity` (integer (int64))

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