Social media5 min readBy Purrkey teamUpdated

How to fetch TikTok song details by clip ID

Get a TikTok sound's title, author, duration, cover art, and video count from its clip ID

On this page

You have 25 TikTok sound clip IDs from campaign videos and need to compare which sounds are original, how long they run, and how many videos use them. Run each ID through anyapi.tiktok.song and turn the responses into a shortlist for the next creator brief. The worksheet below is the deliverable: one row per clip ID, with found, reason, songId, title, author, album, duration, isOriginal, videoCount, coverUrl and shareUrl. No run has been executed for this guide. Values here are placeholders showing the shape

Keep the raw response next to each worksheet row so a reviewer can see the record behind a shortlist decision. The table is the working document for the next creator brief

For creator context, the companion guide on researching TikTok creators covers that side of the campaign

Example input and deliverable table

Example input (invented): clipId: 7423456789012345678. The contract lists clipId as required. It is the clip identifier for the song, found in TikTok music URLs. The reader replaces the example value with a campaign ID

The table design has one row per clip ID. Values here are placeholders showing the shape

foundreasonsongIdtitleauthoralbumdurationisOriginalvideoCountcoverUrlshareUrl
truesongId valuetitle valueauthor valuealbum valueduration valuetrue or falsevideoCount valuecoverUrl valueshareUrl value
falsenot_found

When found is false, data is null and reason is not_found. The row stays in the worksheet, but it cannot add a sound to the shortlist

Fetch the sound record

Use anyapi.tiktok.song for each clip ID. Agents call it through POST /v1/runs with toolId anyapi.tiktok.song. For 25 IDs, call the tool 25 times, once per clip ID. Keep the response order aligned with the campaign list so the worksheet is easy to check

clipId is required. Copy the numeric identifier from a TikTok music URL. The field is a string in the contract, even though the value looks numeric. Do not guess a missing ID

The tool returns one record for one clip ID. If a campaign video uses a sound you cannot identify, leave that row out of the first call list and resolve the clip ID before you add it to the 25. A row without clipId cannot be processed by this tool

For a campaign with 25 IDs, the sheet has 25 rows before any filtering. A row with found: true carries the sound record; a row with found: false carries the reason

Read the fields that drive the shortlist

Start with found. When it is true, read the data object. data.songId is the identifier. data.title, data.author and data.album label the sound for the creator brief. data.duration is an integer, data.isOriginal is a boolean, and data.videoCount is an integer. data.coverUrl and data.shareUrl give the artwork and share link

Use data.isOriginal as a filter for original sounds. Compare data.duration and data.videoCount as columns in the shortlist. data.videoCount is the count of videos that use the sound, which is the reuse signal in the table. Keep data.duration as a number so the shortlist can be sorted by length. The output gives the sound record, not a campaign fit score. Your shortlist rule sets the thresholds

Then read reason. It is present only when found is false, and the value is not_found. The contract says not_found means the source states the target does not exist, or returned nothing for it. A found: false answer is a successful call, not an error, and costUsd is what it actually cost. Record the row and leave the data columns empty

Agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch TikTok song details for the 25 sound clip IDs in my campaign list. Check the current inputs and price of anyapi.tiktok.song before running. Call the tool once per clipId. Return a table with found, reason, songId, title, author, album, duration, isOriginal, videoCount, coverUrl and shareUrl. Keep a row for each clip ID. When found is false, put not_found in reason and leave the data fields empty. Do not guess missing values.

Example input shape (invented, replace with your 25 IDs): clipId 7423456789012345678

Replace the example clip ID with your campaign list. Keep the first run to a few rows if you want to check the table shape before the full 25

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
One sound lookup1 call x max_call$0.0012 per call1$0.0012
25-song sound review25 calls x max_call$0.0012 per call25$0.03

The 25-song review is at most $0.03. A single lookup is at most $0.0012. The one-call and 25-call rows use the same unit price. Model fees for the agent are not counted

Next action

Open the TikTok song tool to run the first lookup

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with TikTok.
Explore TikTok tools and pricing

FAQ

How do I fetch TikTok song details by clip ID?

Call anyapi.tiktok.song with the song clipId. The response gives found, an optional reason, and a data object with the song fields used in the shortlist table.

What input does anyapi.tiktok.song take?

The contract lists clipId as required. It is the clip identifier for the song, found in TikTok music URLs.

What fields does the TikTok song result include?

The data object includes songId, title, author, album, duration, isOriginal, videoCount, coverUrl and shareUrl.

What does a found false response mean for a TikTok song lookup?

A found false response is a successful call, not an error. The reason field is present with not_found when the source states the target does not exist or returned nothing for it.

How much does a 25 song TikTok sound review cost?

At the listed max_call price of $0.0012 per call, 25 lookups are at most $0.03. Successful runs settle at the actual AnyAPI charge.

Can I compare original sounds with anyapi.tiktok.song?

The data object includes isOriginal as a boolean, plus duration and videoCount. Use isOriginal as a filter and duration and videoCount as comparison columns.

Where do I find the clipId for a TikTok song?

Copy the numeric identifier from a TikTok music URL. Example input uses the invented value 7423456789012345678.

Next step

Try this with TikTok

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See TikTok tools

Share this article