TikTok videos posted under a hashtag, as TikTok ranks them, with captions, authors and engagement 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.search_hashtag" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"cooking"}'{
"output": {
"found": true,
"data": {
"hasMore": "<boolean | null>",
"nextCursor": "<string | null>",
"videos": [
{
"durationSeconds": "<number | null>",
"likes": "<integer | null>",
"comments": "<integer | null>",
"authorVerified": "<boolean | null>", …
}
]
}
},
"credits": 3
}Input and output
2 fields
cooking.29 fields
Good to know
Flat price per page.
TikTok caps how deep a hashtag feed goes (thousands of posts at most). Reorders it constantly.
Pass nextCursor to continue.
Unknown or empty hashtags return found: false. A miss is an answer, not an error.
The same key and credits work for every API.