# Honkai: Star Rail Data API

> Returns Honkai: Star Rail characters, light cones and relic sets with rarity, path, element and bonuses.

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

Every Honkai: Star Rail playable character in the game data, with rarity, element and path.

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), `maxSp` (integer (int64)), `name` (string), `path` (string), `rarity` (integer (int64)), `tag` (string)

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

## GET /v1/hsrdata/character

One Honkai: Star Rail character: name, path, element, rarity and max skill points.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Character numeric id, such as 1102 for Seele. (e.g. 1102) |
| `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), `maxSp` (integer (int64)), `name` (string), `path` (string), `rarity` (integer (int64)), `tag` (string)

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

## GET /v1/hsrdata/characterSkills

The skills of one Honkai: Star Rail character (basic attack, skill, ultimate, talent and technique), with their type and short description.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Character numeric id, such as 1001 for March 7th. (e.g. 1001) |
| `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), `element` (string), `id` (string), `maxLevel` (integer (int64)), `name` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/hsrdata/characterSkills?id=1001" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hsrdata/characterRanks

The ranks (eidolons) of one Honkai: Star Rail character, each with its name and the effect it adds, in rank order.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Character numeric id, such as 1001 for March 7th. (e.g. 1001) |
| `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), `rank` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/hsrdata/characterRanks?id=1001" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hsrdata/lightCones

Every Honkai: Star Rail light cone (weapon) in the English data, with rarity, path and description.

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

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

## GET /v1/hsrdata/lightCone

One Honkai: Star Rail light cone by numeric id, such as 20000 for Arrows.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Light cone numeric id, such as 20000. (e.g. 20000) |
| `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), `path` (string), `rarity` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/hsrdata/lightCone?id=20000" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hsrdata/relicSets

Every Honkai: Star Rail relic set in the English data, with the bonus of each piece count.

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: `bonuses` (string[]), `id` (string), `name` (string), `pieces` (Relic[]), `pieces[].id` (string), `pieces[].maxLevel` (integer (int64)), `pieces[].name` (string), `pieces[].rarity` (integer (int64)), `pieces[].setId` (string), `pieces[].slot` (string)

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

## GET /v1/hsrdata/relicSet

One Honkai: Star Rail relic set by numeric id, with its bonuses and the pieces it has.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Relic set numeric id, such as 101 for Passerby of Wandering Cloud. (e.g. 101) |
| `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: `bonuses` (string[]), `id` (string), `name` (string), `pieces` (Relic[]), `pieces[].id` (string), `pieces[].maxLevel` (integer (int64)), `pieces[].name` (string), `pieces[].rarity` (integer (int64)), `pieces[].setId` (string), `pieces[].slot` (string)

```bash
curl "https://api.hoshime.com/v1/hsrdata/relicSet?id=101" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hsrdata/relics

The Honkai: Star Rail relic pieces, optionally of one relic set, with their slot and rarity.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `setId` | string | no | Relic set numeric id, such as 101. Omit it for every piece. (e.g. 101) |
| `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), `maxLevel` (integer (int64)), `name` (string), `rarity` (integer (int64)), `setId` (string), `slot` (string)

```bash
curl "https://api.hoshime.com/v1/hsrdata/relics?setId=101" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
