One page of TikTok videos that use a given sound, with captions, authors and engagement counts.
2 credits/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.song_videos" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"clipId":"7439295283975702544"}'{
"output": {
"found": true,
"data": {
"hasMore": "<boolean | null>",
"nextCursor": "<string | null>",
"videos": [
{
"durationSeconds": "<number | null>",
"likes": "<integer | null>",
"comments": "<integer | null>",
"authorVerified": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
2 fields
7439295283975702544.37 fields
Good to know
Flat price per page.
Pass nextCursor to continue.
Unknown sounds or sounds without public videos return found: false. A miss is an answer, not an error.
The same key and credits work for every API.