S

SocialFetch · Tiktok Songs

by SocialFetch

GETBase

$0.014

per call · USD Coin on Base

Get details for a TikTok song or sound by id.

Endpoint

GET https://api.socialfetch.dev/v1/tiktok/songs

1

Calls / 30d

1

Unique payers / 30d

Aug 26

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.socialfetch.dev/v1/tiktok/songs", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.socialfetch.dev/v1/tiktok/songs?id=6717159721276540930" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "lookupStatus": "found",
    "song": {
      "album": "Different",
      "author": "Micah Tyler",
      "coverUrl": "https://p16-sg.tiktokcdn.com/aweme/200x200/tos-alisg-v-2774/okeuMAAZnBBv88JZBjFEgjDOtWCZQ4AEEwfoQb.jpeg",
      "durationSec": 60,
      "id": "6717159721276540930",
      "isArtist": true,
      "isOriginal": false,
      "playUrl": "https://sf77-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-2774/oIBIZNfxOX2Nzi1WRH4ABroDirMAuIjwsGVov9",
      "shareUrl": "https://www.tiktok.com/music/Different-Acoustic-6717159721276540930",
      "title": "Different (Acoustic)",
      "videoCount": 358
    }
  },
  "meta": {
    "creditsCharged": 1,
    "requestId": "req_01example_tiktok_song",
    "version": "v1"
  }
}

Payment details

Pay to0x02c2fcafce36b4aadb39625866bc6b1699d83043
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from SocialFetch & similar services