# kworb API

> Returns Spotify daily and weekly charts by country, all-time chart totals, top monthly listeners and most streamed artists.

Category: Music & Audio. Region: global. 11 endpoints at `https://api.hoshime.com/v1/kworb/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/kworb
## GET /v1/kworb/countries

The countries and the global chart that kworb's Spotify charts cover, with the code each chart page uses.

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), `name` (string)

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

## GET /v1/kworb/daily

The Spotify daily chart of a country or the global chart: rank, moves, artist and title, streams, seven-day and total streams.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | no | Chart code: global or a two-letter country code, such as us or id. The countries endpoint lists them. (default global; e.g. global) |
| `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: `country` (string), `items` (ChartEntry[]), `items[].artist` (string), `items[].artistId` (string), `items[].new` (boolean), `items[].peak` (integer (int64)), `items[].periods` (integer (int64)), `items[].rank` (integer (int64)), `items[].rankChange` (integer (int64)), `items[].streams` (integer (int64)), `items[].streams7Day` (integer (int64)), `items[].streams7DayChange` (integer (int64)), `items[].streamsChange` (integer (int64)), `items[].title` (string), `items[].total` (integer (int64)), `items[].trackId` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/kworb/daily?country=global" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/weekly

The Spotify weekly chart of a country or the global chart: rank, moves, artist and title, weeks, peak, streams and total streams.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | no | Chart code: global or a two-letter country code, such as us or id. The countries endpoint lists them. (default global; e.g. global) |
| `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: `country` (string), `items` (ChartEntry[]), `items[].artist` (string), `items[].artistId` (string), `items[].new` (boolean), `items[].peak` (integer (int64)), `items[].periods` (integer (int64)), `items[].rank` (integer (int64)), `items[].rankChange` (integer (int64)), `items[].streams` (integer (int64)), `items[].streams7Day` (integer (int64)), `items[].streams7DayChange` (integer (int64)), `items[].streamsChange` (integer (int64)), `items[].title` (string), `items[].total` (integer (int64)), `items[].trackId` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/kworb/weekly?country=global" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/totals

The all-time totals of a Spotify chart: tracks by days on the chart, top-10 days, peak and total streams.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | no | Chart code: global or a two-letter country code, such as us. (default global; e.g. us) |
| `period` | string | no | Totals of the daily or the weekly chart. (one of daily, weekly; default daily; e.g. daily) |
| `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: `country` (string), `items` (TotalEntry[]), `items[].artist` (string), `items[].artistId` (string), `items[].peak` (integer (int64)), `items[].peakStreams` (integer (int64)), `items[].periods` (integer (int64)), `items[].rank` (integer (int64)), `items[].title` (string), `items[].top10` (integer (int64)), `items[].total` (integer (int64)), `items[].trackId` (string), `period` (string)

```bash
curl "https://api.hoshime.com/v1/kworb/totals?country=us&period=daily" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/listeners

The artists with the most Spotify monthly listeners, with the daily change and the peak.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `artist` (string), `artistId` (string), `dailyChange` (integer (int64)), `listeners` (integer (int64)), `peak` (integer (int64)), `peakListeners` (integer (int64)), `rank` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/kworb/listeners?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/artists

The most streamed artists on Spotify of all time, with their streams in millions, as lead, solo and as feature.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `artist` (string), `artistId` (string), `asFeatureMillions` (number (double)), `asLeadMillions` (number (double)), `dailyMillions` (number (double)), `rank` (integer (int64)), `soloMillions` (number (double)), `streamsMillions` (number (double))

```bash
curl "https://api.hoshime.com/v1/kworb/artists?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/artistSongs

The songs of one artist on Spotify, most streamed first, with their streams and the latest daily count.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Spotify artist id, such as 3TVXtAsR1Inumwj472S9r4 for Drake. (e.g. 3TVXtAsR1Inumwj472S9r4) |
| `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: `artistId` (string), `items` (SongEntry[]), `items[].daily` (integer (int64)), `items[].rank` (integer (int64)), `items[].streams` (integer (int64)), `items[].title` (string), `items[].trackId` (string)

```bash
curl "https://api.hoshime.com/v1/kworb/artistSongs?id=3TVXtAsR1Inumwj472S9r4" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/youtube

The music videos on YouTube with the most views right now, with their likes and the change in rank.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `likes` (integer (int64)), `rank` (integer (int64)), `rankChange` (integer (int64)), `title` (string), `videoId` (string), `views` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/kworb/youtube?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/youtubeArtists

The artists with the most YouTube views of all time, with their total views in millions and their videos that passed 100 million views.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `artist` (string), `hundredMillionVideoCount` (integer (int64)), `rank` (integer (int64)), `viewsMillions` (number (double))

```bash
curl "https://api.hoshime.com/v1/kworb/youtubeArtists?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/youtubeTrending

Music videos that are trending on YouTube worldwide right now, with their rank, its change and the countries they rank in.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `highlights` (string), `new` (boolean), `rank` (integer (int64)), `rankChange` (integer (int64)), `title` (string), `videoId` (string)

```bash
curl "https://api.hoshime.com/v1/kworb/youtubeTrending?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kworb/ranking

kworb's global digital artist ranking: points for each artist from Apple Music, Spotify, iTunes, YouTube, Shazam and Deezer.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 3) |
| `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: `appleMusic` (integer (int64)), `artist` (string), `artistSlug` (string), `deezer` (integer (int64)), `itunes` (integer (int64)), `points` (integer (int64)), `rank` (integer (int64)), `rankChange` (integer (int64)), `shazam` (integer (int64)), `spotify` (integer (int64)), `youtube` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/kworb/ranking?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
