SoundCloud track
Beta GET /v1/soundcloud/track
GET /v1/soundcloud/track
Title, artist, duration, play, like and comment counts, genre, license, ISRC and release date.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Track URL (soundcloud.com/<user>/<track>). Accepted hosts: soundcloud.com, on.soundcloud.com. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
curl -G "https://api.socialscrape.io/v1/soundcloud/track" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "url=https://soundcloud.com/flume/all-of-the-worlds"Python
import os
import requests
params = {
"url": "https://soundcloud.com/flume/all-of-the-worlds",
}
res = requests.get(
"https://api.socialscrape.io/v1/soundcloud/track",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
const url = new URL("https://api.socialscrape.io/v1/soundcloud/track");
url.search = new URLSearchParams({
"url": "https://soundcloud.com/flume/all-of-the-worlds"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}n8n
{
"nodes": [
{
"name": "SocialScrape SoundCloud track",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/soundcloud/track",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://soundcloud.com/flume/all-of-the-worlds"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_2ad9cbd9d843278076e5d687",
"data": {
"object": "song",
"platform": "soundcloud",
"id": "2119863225",
"url": "https://soundcloud.com/flume/all-of-the-worlds",
"title": "All Of The Worlds",
"artists": [
"Emma Louise, Flume"
],
"album": "DUMB",
"duration_seconds": 125.78,
"cover_url": "https://i1.sndcdn.com/artworks-bvBQ1BhZQSM2-0-t500x500.jpg",
"preview_url": null,
"released_at": "2025-08-22",
"isrc": "US38Y2548239",
"explicit": false,
"is_original": null,
"stats": {
"plays": 36627,
"uses": null,
"likes": 1090
},
"extra": {
"c_line": "© 2025 Flume",
"comment_count": 23,
"commentable": true,
"contains_music": true,
"created_at": "2025-06-26T13:01:21Z",
"display_date": "2025-08-22T00:00:00Z",
"download_count": 0,
"downloadable": false,
"genre": "Electronic",
"label_name": "Flume",
"last_modified": "2025-09-13T03:28:11Z",
"license": "all-rights-reserved",
"monetization_model": "AD_SUPPORTED",
"p_line": "℗ 2025 Flume",
"policy": "MONETIZE",
"public": true,
"release_title": "All Of The Worlds",
"reposts_count": 82,
"sharing": "public",
"state": "finished",
"streamable": true,
"upc": "5034644763842",
"urn": "soundcloud:tracks:2119863225",
"user": {
"handle": "flume",
"id": "2976616",
"name": "Flume",
"url": "https://soundcloud.com/flume",
"verified": true
},
"user_id": 2976616,
"waveform_url": "https://wave.sndcdn.com/0AX3G8zwAkiV_m.json",
"writer_composer": "Harley Streten, Emma Louise Lobb"
}
},
"cursor": null,
"has_more": null
}Response#
A Song object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "unsupported_url",
"message": "The URL is not one this endpoint accepts (wrong platform or form).",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_30902058b8f40488385657e1"
}Related endpoints#
- SoundCloud artist (
GET /v1/soundcloud/artist) - SoundCloud artist tracks (
GET /v1/soundcloud/artist/tracks)