# Radio Browser API

> Returns internet radio stations by search, country, tag or language, plus top voted and recently played stations.

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

Internet radio stations matching a name, tag, country, language or codec, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | no | Part of the station name. (e.g. bbc) |
| `tag` | string | no | Tag the station carries, such as jazz or news. |
| `country` | string | no | Country name, such as Germany. |
| `countryCode` | string | no | Two-letter country code, such as DE. |
| `languageName` | string | no | Language name, such as english. |
| `codec` | string | no | Audio codec, such as MP3, AAC or OGG. |
| `order` | string | no | Field the stations are sorted by. (one of name, url, homepage, tags, country, state, language, votes, codec, bitrate, lastchecktime, clickcount, clicktrend, random; default votes) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `hideBroken` | boolean | no | Leave out stations whose last check failed. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 3) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/search?name=bbc&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/byCountry

Internet radio stations of one country, by ISO code, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `countryCode` | string | yes | Two-letter country code, such as US or ID. (e.g. US) |
| `order` | string | no | Field the stations are sorted by. (one of name, url, homepage, tags, country, state, language, votes, codec, bitrate, lastchecktime, clickcount, clicktrend, random; default votes) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `hideBroken` | boolean | no | Leave out stations whose last check failed. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 3) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/byCountry?countryCode=US&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/byTag

Internet radio stations that carry one tag exactly, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Tag, exactly as the directory spells it, such as jazz. (e.g. jazz) |
| `order` | string | no | Field the stations are sorted by. (one of name, url, homepage, tags, country, state, language, votes, codec, bitrate, lastchecktime, clickcount, clicktrend, random; default votes) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `hideBroken` | boolean | no | Leave out stations whose last check failed. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 3) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/byTag?tag=jazz&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/byLanguage

Internet radio stations broadcasting in one language, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `languageName` | string | yes | Language name, exactly as the directory spells it, such as english. (e.g. english) |
| `order` | string | no | Field the stations are sorted by. (one of name, url, homepage, tags, country, state, language, votes, codec, bitrate, lastchecktime, clickcount, clicktrend, random; default votes) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `hideBroken` | boolean | no | Leave out stations whose last check failed. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 3) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/byLanguage?languageName=english&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/top

The most voted or most played internet radio stations of the directory.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `by` | string | no | Rank by votes or by plays counted. (one of votes, clicks; default clicks; e.g. clicks) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/top?by=clicks&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/recent

The internet radio stations played or changed most recently in the directory.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `by` | string | no | Latest played stations or latest changed stations. (one of played, changed; default played; e.g. played) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/recent?by=played&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/station

One internet radio station by its directory uuid.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Station uuid, as the station lists return it. (e.g. f7fd408e-02a5-49a1-8c03-078727e97e8f) |
| `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: `bitrate` (integer (int64)), `changedAt` (string), `checkedAt` (string), `clicks` (integer (int64)), `codec` (string), `country` (string), `countryCode` (string), `faviconUrl` (string), `hls` (boolean), `homepageUrl` (string), `id` (string), `language` (string), `lastCheckOk` (boolean), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `playedAt` (string), `state` (string), `streamUrl` (string), `tags` (Tag[]), `tags[].name` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/station?id=f7fd408e-02a5-49a1-8c03-078727e97e8f" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/countries

Every country of the directory with its ISO code and number of stations.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | no | Field the list is sorted by. (one of name, stationcount; default name) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default false) |
| `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), `stationCount` (integer (int64))

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

## GET /v1/radiobrowser/tags

The tags of the directory with the number of stations that carry each, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | no | Field the list is sorted by. (one of name, stationcount; default stationcount) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 50; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `stationCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/tags?limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/languages

The languages of the directory's stations with the number of stations in each, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | no | Field the list is sorted by. (one of name, stationcount; default stationcount) |
| `reverse` | boolean | no | Sort descending. Set false for ascending order. (default true) |
| `limit` | integer | no | Items per page, 1 to 100. (default 50; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `stationCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/radiobrowser/languages?limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/radiobrowser/stats

Totals of the directory: stations, broken stations, tags, languages, countries and recent plays.

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

| 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: `brokenStations` (integer (int64)), `clicksLastDay` (integer (int64)), `clicksLastHour` (integer (int64)), `countries` (integer (int64)), `languages` (integer (int64)), `stations` (integer (int64)), `tags` (integer (int64))

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