# Audius API

> Returns Audius trending tracks, track and user search results, and track and user profiles.

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

The trending tracks of Audius for a time window, optionally one genre, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `time` | string | no | Window the trending score counts: week, month, year or allTime. (one of allTime, week, month, year; default week; e.g. week) |
| `genre` | string | no | Genre name, such as Electronic or Hip-Hop/Rap. Omit it for every genre. |
| `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: `artworkUrl` (string), `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `comments` (integer (int64)), `createdAt` (string), `durationSec` (integer (int64)), `favorites` (integer (int64)), `genre` (string), `id` (string), `isStreamable` (boolean), `mood` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/trendingTracks?time=week&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/searchTracks

Tracks whose title, artist or tags match a query, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search text, such as lofi. (e.g. lofi) |
| `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: `artworkUrl` (string), `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `comments` (integer (int64)), `createdAt` (string), `durationSec` (integer (int64)), `favorites` (integer (int64)), `genre` (string), `id` (string), `isStreamable` (boolean), `mood` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/searchTracks?query=lofi&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/track

One track of Audius by its id: title, artist, genre, mood, tags and play counts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius track id, such as AK3w5q0, as the track lists return it. (e.g. AK3w5q0) |
| `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: `artworkUrl` (string), `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `comments` (integer (int64)), `createdAt` (string), `durationSec` (integer (int64)), `favorites` (integer (int64)), `genre` (string), `id` (string), `isStreamable` (boolean), `mood` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/track?id=AK3w5q0" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/searchUsers

Artists and listeners whose name or handle match a query, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search text, such as deadmau5. (e.g. deadmau5) |
| `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: `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `location` (string), `name` (string), `playlistCount` (integer (int64)), `postCount` (integer (int64)), `repostCount` (integer (int64)), `trackCount` (integer (int64)), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/audius/searchUsers?query=deadmau5&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/user

One Audius user by id: name, handle, bio, follower and upload counts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius user id, such as O5lQz. (e.g. O5lQz) |
| `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: `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `location` (string), `name` (string), `playlistCount` (integer (int64)), `postCount` (integer (int64)), `repostCount` (integer (int64)), `trackCount` (integer (int64)), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/audius/user?id=O5lQz" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/userByHandle

One Audius user by handle, the name in the profile URL, such as illpetill.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `handle` | string | yes | Handle without the @, such as illpetill. (e.g. illpetill) |
| `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: `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `location` (string), `name` (string), `playlistCount` (integer (int64)), `postCount` (integer (int64)), `repostCount` (integer (int64)), `trackCount` (integer (int64)), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/audius/userByHandle?handle=illpetill" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/userTracks

The tracks one Audius user uploaded, newest or most played first, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius user id, such as O5lQz. The userByHandle endpoint finds it from a handle. (e.g. O5lQz) |
| `sort` | string | no | Newest first or most played first. (one of date, plays; default date) |
| `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: `artworkUrl` (string), `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `comments` (integer (int64)), `createdAt` (string), `durationSec` (integer (int64)), `favorites` (integer (int64)), `genre` (string), `id` (string), `isStreamable` (boolean), `mood` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/userTracks?id=O5lQz&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/searchPlaylists

Playlists and albums whose name or owner match a query, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search text, such as workout. (e.g. workout) |
| `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: `artworkUrl` (string), `createdAt` (string), `description` (string), `favorites` (integer (int64)), `id` (string), `isAlbum` (boolean), `name` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tracks` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/searchPlaylists?query=workout&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/trendingPlaylists

The trending playlists and albums of Audius for a time window, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `time` | string | no | Window the trending score counts: week, month, year or allTime. (one of allTime, week, month, year; default week; e.g. week) |
| `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: `artworkUrl` (string), `createdAt` (string), `description` (string), `favorites` (integer (int64)), `id` (string), `isAlbum` (boolean), `name` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tracks` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/trendingPlaylists?time=week&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/playlist

One playlist or album of Audius by id: name, owner, track count and play counts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius playlist id, such as DOPRl, as the playlist lists return it. (e.g. DOPRl) |
| `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: `artworkUrl` (string), `createdAt` (string), `description` (string), `favorites` (integer (int64)), `id` (string), `isAlbum` (boolean), `name` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tracks` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/playlist?id=DOPRl" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/playlistTracks

The tracks of one Audius playlist or album, in playlist order, with offset paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius playlist id, such as DOPRl. (e.g. DOPRl) |
| `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: `artworkUrl` (string), `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `comments` (integer (int64)), `createdAt` (string), `durationSec` (integer (int64)), `favorites` (integer (int64)), `genre` (string), `id` (string), `isStreamable` (boolean), `mood` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/playlistTracks?id=DOPRl&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/userPlaylists

The public playlists and albums one Audius user created, with cursor paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius user id, such as OJXwz. The userByHandle endpoint finds it from a handle. (e.g. OJXwz) |
| `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: `artworkUrl` (string), `createdAt` (string), `description` (string), `favorites` (integer (int64)), `id` (string), `isAlbum` (boolean), `name` (string), `owner` (Author), `owner.avatarUrl` (string), `owner.id` (string), `owner.name` (string), `owner.url` (string), `owner.username` (string), `plays` (integer (int64)), `releasedAt` (string), `reposts` (integer (int64)), `tracks` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/audius/userPlaylists?id=OJXwz&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/audius/trackComments

The comments on one Audius track, newest first, with offset paging.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Audius track id, such as AK3w5q0. (e.g. AK3w5q0) |
| `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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string)

```bash
curl "https://api.hoshime.com/v1/audius/trackComments?id=AK3w5q0&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
