Videos inside one public TikTok playlist (collection), in playlist order, with view, like and comment 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.playlist_videos" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258"}'{
"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
4 fields
https://www.tiktok.com/@kibblemaster808….29 fields
Good to know
Flat price per page.
Unknown or private playlists return found: false. A miss is an answer, not an error.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.