Skip to main content
POST
/
api
/
tiktok
/
videos
/
comments
/tiktok/videos/comments
curl --request POST \
  --url https://api.anysite.io/api/tiktok/videos/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "video": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@tik_tok_comment",
    "text": "<string>",
    "like_count": 123,
    "reply_count": 123,
    "created_at": 123,
    "is_author_liked": false,
    "is_pinned": false,
    "user": {
      "id": "<string>",
      "alias": "<string>",
      "@type": "@tik_tok_user",
      "nickname": "<string>",
      "sec_uid": "<string>",
      "image": "<string>",
      "signature": "<string>",
      "bio_link": "<string>",
      "created_at": 123,
      "language": "<string>",
      "is_verified": false,
      "is_private": false,
      "is_organization": false,
      "is_seller": false,
      "is_commerce_user": false,
      "profile_url": "<string>",
      "follower_count": 123,
      "following_count": 123,
      "heart_count": 123,
      "video_count": 123,
      "digg_count": 123,
      "friend_count": 123
    }
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.anysite.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
video
string
required

TikTok video ID ('7644214443265625375') or full video URL.

Minimum string length: 1
Pattern: ^(?:https?://[^\s]+|\d{5,30})$
Examples:

"7644214443265625375"

"https://www.tiktok.com/@khaby.lame/video/7644214443265625375"

count
integer
required

Max number of comments to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@tik_tok_comment
text
string | null
like_count
integer | null
reply_count
integer | null
created_at
integer | null
is_author_liked
boolean
default:false
is_pinned
boolean
default:false
user
TikTokUser · object