# SoundCloud API

> Returns SoundCloud track, user and playlist details from their page addresses.

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

One public track of SoundCloud by its page address: title, artist, genre, tags, plays and likes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Track address, such as https://soundcloud.com/forss/flickermood. (e.g. https://soundcloud.com/forss/flickermood) |
| `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), `artistUrl` (string), `artwork` (string), `comments` (integer (int64)), `createdAt` (string), `description` (string), `downloadable` (boolean), `durationMs` (integer (int64)), `genre` (string), `id` (string), `likes` (integer (int64)), `plays` (integer (int64)), `reposts` (integer (int64)), `streamable` (boolean), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/soundcloud/track?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fflickermood" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/soundcloud/user

A public SoundCloud profile by its address: name, city, bio and follower and upload counts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Profile address, such as https://soundcloud.com/forss. (e.g. https://soundcloud.com/forss) |
| `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: `avatar` (string), `bio` (string), `city` (string), `country` (string), `createdAt` (string), `followers` (integer (int64)), `following` (integer (int64)), `handle` (string), `id` (string), `likes` (integer (int64)), `name` (string), `playlists` (integer (int64)), `tracks` (integer (int64)), `url` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/soundcloud/user?url=https%3A%2F%2Fsoundcloud.com%2Fforss" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/soundcloud/playlist

A public SoundCloud set or album by its address, with its tracks in order.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Set address, such as https://soundcloud.com/forss/sets/soulhack. (e.g. https://soundcloud.com/forss/sets/soulhack) |
| `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: `artwork` (string), `createdAt` (string), `description` (string), `durationMs` (integer (int64)), `genre` (string), `id` (string), `isAlbum` (boolean), `likes` (integer (int64)), `owner` (string), `ownerUrl` (string), `releaseDate` (string), `reposts` (integer (int64)), `tags` (Tag[]), `tags[].name` (string), `title` (string), `trackCount` (integer (int64)), `tracks` (Track[]), `tracks[].artist` (string), `tracks[].artistUrl` (string), `tracks[].artwork` (string), `tracks[].comments` (integer (int64)), `tracks[].createdAt` (string), `tracks[].description` (string), `tracks[].downloadable` (boolean), `tracks[].durationMs` (integer (int64)), `tracks[].genre` (string), `tracks[].id` (string), `tracks[].likes` (integer (int64)), `tracks[].plays` (integer (int64)), `tracks[].reposts` (integer (int64)), `tracks[].streamable` (boolean), `tracks[].tags` (Tag[]), `tracks[].title` (string), `tracks[].url` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/soundcloud/playlist?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fsets%2Fsoulhack" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
