Whether a TikTok creator is live right now and, if so, the live room title, viewers, entries and start time, by handle.
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.live" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"thejustalex"}'{
"output": {
"found": true,
"data": {
"handle": "<string>",
"title": "<string | null>",
"followers": "<integer | null>",
"isLive": "<boolean>", …
}
},
"credits": 2
}Input and output
1 field
thejustalex.18 fields
Good to know
Point-in-time status (cache ≤ 30 s).
An offline creator is a successful, billed answer (status offline).
An unknown handle is found: false. A miss is an answer, not an error.
The same key and credits work for every API.