Recent TikTok videos posted under a hashtag, with caption, creator, sound and view, like, comment and share counts.
3 credits/ call
Never more than 8 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.hashtag_videos" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag":"cooking","limit":20}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"items": [
{
"durationSeconds": "<number | null>",
"likeCount": "<integer | null>",
"commentCount": "<integer | null>",
"authorVerified": "<boolean | null>", …
}
]
}
},
"credits": 3
}Input and output
3 fields
cooking.20.23 fields
Good to know
TikTok caps hashtag feeds (a few thousand posts). May repeat videos across pages.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.