Caption, author, sound, engagement counts and a playable media URL for one public TikTok video or photo post.
1 credit/ 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.video" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@scout2015/video/6718335390845095173"}'{
"output": {
"found": true,
"data": {
"durationSeconds": "<number | null>",
"likes": "<integer | null>",
"comments": "<integer | null>",
"authorVerified": "<boolean | null>", …
}
},
"credits": 1
}Input and output
2 fields
https://www.tiktok.com/@scout2015/video….24 fields
Good to know
A deleted, private or region-blocked post returns not_found (never "deleted"). A miss is an answer, not an error.
Media URLs expire. Media URLs are signed, expire within hours and may be IP-bound. Save the file if you need to keep it.
The same key and credits work for every API.