TikTok post comments
/v1/tiktok/commentsGet one page of the comments on a TikTok video, as TikTok publishes them.
The page arrives in comments, with cursor for the next one and total for the
whole thread. TikTok's page size is its own; cursor is an offset rather than X's
opaque token, so pass back the cursor the previous response returned.
This returns personal data about people in bulk. Every comment carries its author's handle, nickname and avatar. See our terms for what you may do with it.
A video with comments disabled, or one that does not exist, answers
502 extraction_empty and is not charged.
curl "https://api.socialpipe.dev/v1/tiktok/comments?aweme_id=$AWEME_ID" \ -H "Authorization: Bearer $SOCIALPIPE_KEY"Query Parameters
The long number at the end of a TikTok video URL, as a string. TikTok calls it an aweme_id. It is wider than a 32-bit integer, so a language that parses JSON numbers as floats will round it.
The cursor from a previous response. Omit it for the first page. Unlike X's opaque string cursor, this one is an offset.
Max acceptable age of a cached result, in seconds. A lower value demands fresher data; it does not shorten what is stored.
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/tiktok/comments?aweme_id=string"{ "cache_age": 0, "cached": false, "credits_remaining": 0, "credits_used": 0, "data": {}, "schema_version": "2", "success": true, "took_ms": 0}