curl --request POST \
--url https://api.scrapeunblocker.com/social/tiktok-comments \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/tiktok-comments"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/tiktok-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape the comments of a TikTok video
Opens a TikTok post in a real browser session, scrolls its comment panel and returns the comments as JSON: videoId, url, totalComments, comments - each with text, createdAt, likes, replyCount, language, author (username, nickname, userId, avatar, profileUrl), isCreator, likedByCreator, nested replies TikTok preloads - plus commentsCollected and hasMore. No login or cookies. Takes 10-30 s because the panel is scrolled for each batch.
curl --request POST \
--url https://api.scrapeunblocker.com/social/tiktok-comments \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/tiktok-comments"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/tiktok-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
A TikTok video / photo-post URL, bare id or short link (same forms as /social/tiktok-video).
How many top-level comments to return (1-500). 20 arrive per scroll; replies TikTok preloads are nested under each comment's replies.
1 <= x <= 500Exit-IP country (ISO-2, e.g. 'US', 'DE'). Optional - TikTok's public pages are the same worldwide; set it only for region-restricted items.
Response
JSON object with a comments array.

