TikTok song details API

A sound by its clip id (the number at the end of a tiktok.com/music/... URL).

GETapi.socialscrape.io/v1/tiktok/song
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

You send one of id or url.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/tiktok/song" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'id=7016547803243022337'
Python
import os
import requests

params = {
    "id": "7016547803243022337",
}
res = requests.get(
    "https://api.socialscrape.io/v1/tiktok/song",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
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/tiktok/song");
url.search = new URLSearchParams({
  id: "7016547803243022337",
}).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 TikTok song details",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/tiktok/song",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "id",
              "value": "7016547803243022337"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
idstringone ofSound (music) id. Also accepted as clipId, music_id.
urlurlone ofSound URL (tiktok.com/music/...).

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_93185fa69b5182ad7cd7ac57",
  "data": {
    "object": "song",
    "platform": "tiktok",
    "id": "7016547803243022337",
    "url": "https://www.tiktok.com/music/Face-Off-Dwayne-Johnson-7016547803243022337",
    "title": "Face Off - Dwayne Johnson",
    "artists": [
      "Tech N9ne",
      "Joey Cool",
      "Lương Thị Ngọc Nhung"
    ],
    "album": "Face Off - Dwayne Johnson",
    "duration_seconds": 60,
    "cover_url": "https://p19-common.tiktokcdn-us.com/tos-alisg-v-2774/o8ea8AmF1GG4KxwI1fLl7IALGeAvIAFjfsAAhK~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9584&t=4d5b0474&ps=933b5b...",
    "preview_url": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oULlPria4KO2Gj7dInUfNmfFAvxeYwfL1gqAQG",
    "released_at": null,
    "isrc": null,
    "explicit": null,
    "is_original": false,
    "stats": {
      "plays": null,
      "uses": 727900,
      "likes": null
    },
    "extra": {
      "author_name": "Joey Cool & Lương Thị Ngọc Nhung & Tech N9ne",
      "is_commerce_music": false,
      "is_copyrighted": true,
      "is_private": false,
      "shoot_duration": 60
    }
  },
  "cursor": null,
  "has_more": null
}

Fields

One Song in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"song"
platformPlatformyes
idstringyes
urlstring or null
titlestring or null
artistsstring[] or null
albumstring or null
duration_secondsnumber or null
cover_urlstring or null
preview_urlstring or null
released_atstring (ISO 8601 date) or null
isrcstring or null
explicitboolean or null
is_originalboolean or nullTikTok "original sound"
Show the other 2 fields
FieldTypeAlwaysNotes
statsSongStats
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The preview Python client has client.tiktok.song(...) and the TypeScript client client.tiktok.song(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access