TikTok Comments API
Get comments on public TikTok videos or slideshows. Pages with comments cost 1 credit; empty pages cost 0. An empty page does not prove the post has no comments globally.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/tiktok/video/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7708867568920038669' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/tiktok/video/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7708867568920038669", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v1/tiktok/video/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7708867568920038669",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/tiktok/video/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7708867568920038669", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v1/tiktok/video/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7708867568920038669");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"alias_comment_deleted": false,
"comments": [
{
"author_pin": false,
"aweme_id": "7708867568920038669",
"cid": "7708869768674460438",
"collect_stat": 0,
"comment_language": "un",
"comment_post_item_ids": null,
"create_time": 1794861136,
"digg_count": 87,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": false,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_comment_total": 5,
"reply_id": "0",
"reply_to_reply_id": "0",
"share_info": {
"acl": {
"code": 0,
"extra": "{}"
},
"desc": "Junaid Ameer’s comment: but what if i'am a alien 👽",
"title": "Could you be a NASA astronaut? 👀 Our astronaut candidates clear up a few myths about who can apply. Applications are open through Dec. 3. Link in bio. 🚀",
"url": "https://m.tiktok.com/v/7708867568920038669.html?_d=f6hhfh08g2eiee&comment_author_id=7526542214299550742&preview_pb=0&share_comment_id=7708869768674460438&share_item_id=7708867568920038669&sharer_language=en&source=h5_m&u_code=0"
},
"sort_extra_score": {
"reply_score": 0.00074,
"show_more_score": 0.089234
},
"sort_tags": "{\"fine_sort_search_queue\":1,\"rough_sort_main_queue\":1,\"top_list\":1}",
"status": 1,
"stick_position": 0,
"text": "but what if i'am a alien 👽",
"text_extra": [],
"trans_btn_style": 0,
"user": {
"account_labels": null,
"ad_cover_url": null,
"advance_feature_item_order": null,
"advanced_feature_info": null,
"avatar_thumb": {
"uri": "tos-maliva-avt-0068/f451b3965f9e23e6392bab06b136da0f",
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/f451b3965f9e23e6392bab06b136da0f~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/f451b3965f9e23e6392bab06b136da0f~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/f451b3965f9e23e6392bab06b136da0f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8"
],
"url_prefix": null
},
"bold_fields": null,
"can_message_follow_status_list": null,
"can_set_geofencing": null,
"cha_list": null,
"cover_url": null,
"custom_verify": "",
"enterprise_verify_reason": "",
"events": null,
"followers_detail": null,
"geofencing": null,
"homepage_bottom_toast": null,
"item_list": null,
"mutual_relation_avatars": null,
"need_points": null,
"nickname": "Junaid Ameer",
"platform_sync_info": null,
"relative_users": null,
"search_highlight": null,
"sec_uid": "MS4wLjABAAAAdtwPR3La62Ne4LL_CXC1fzKes5A5aKTCBnSnvhYXIh1vW70Z-VwkifkO4dUrjyKN",
"shield_edit_field_info": null,
"type_label": null,
"uid": "7526542214299550742",
"unique_id": "thejunaidameer",
"user_profile_guide": null,
"user_tags": null,
"white_cover_url": null
},
"user_buried": false,
"user_digged": 0
},
{
"author_pin": false,
"aweme_id": "7708867568920038669",
"cid": "7708957566193976085",
"collect_stat": 0,
"comment_language": "un",
"comment_post_item_ids": null,
"create_time": 1794881574,
"digg_count": 2,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": false,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_comment_total": 0,
"reply_id": "0",
"reply_to_reply_id": "0",
"share_info": {
"acl": {
"code": 0,
"extra": "{}"
},
"desc": "based.australian’s comment: nasa wants more applicants lol. Just send me to mars forever.",
"title": "Could you be a NASA astronaut? 👀 Our astronaut candidates clear up a few myths about who can apply. Applications are open through Dec. 3. Link in bio. 🚀",
"url": "https://m.tiktok.com/v/7708867568920038669.html?_d=f6hhfh08g2eiee&comment_author_id=7022071025337992193&preview_pb=0&share_comment_id=7708957566193976085&share_item_id=7708867568920038669&sharer_language=en&source=h5_m&u_code=0"
},
"sort_extra_score": {
"reply_score": 0.001113,
"show_more_score": 0.001826
},
"sort_tags": "{\"cold_start\":1,\"fine_sort_search_queue\":1,\"rough_sort_cold_queue\":1,\"top_list\":1}",
"status": 1,
"stick_position": 0,
"text": "nasa wants more applicants lol. Just send me to mars forever.",
"text_extra": [],
"trans_btn_style": 0,
"user": {
"account_labels": null,
"ad_cover_url": null,
"advance_feature_item_order": null,
"advanced_feature_info": null,
"avatar_thumb": {
"uri": "tos-alisg-avt-0068/0278ee5f4ad2adab8a04663a82a397af",
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/0278ee5f4ad2adab8a04663a82a397af~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/0278ee5f4ad2adab8a04663a82a397af~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/0278ee5f4ad2adab8a04663a82a397af~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8"
],
"url_prefix": null
},
"bold_fields": null,
"can_message_follow_status_list": null,
"can_set_geofencing": null,
"cha_list": null,
"cover_url": null,
"custom_verify": "",
"enterprise_verify_reason": "",
"events": null,
"followers_detail": null,
"geofencing": null,
"homepage_bottom_toast": null,
"item_list": null,
"mutual_relation_avatars": null,
"need_points": null,
"nickname": "based.australian",
"platform_sync_info": null,
"relative_users": null,
"search_highlight": null,
"sec_uid": "MS4wLjABAAAAsAn-8zMToT79FS927JcfHIgIA_NsrmhavLLAZscrgB9fyyxhKfTmkR9uB_QCsZve",
"shield_edit_field_info": null,
"type_label": null,
"uid": "7022071025337992193",
"unique_id": "based.australian06",
"user_profile_guide": null,
"user_tags": null,
"white_cover_url": null
},
"user_buried": false,
"user_digged": 0
},
{
"author_pin": false,
"aweme_id": "7708867568920038669",
"cid": "7708957783375233822",
"collect_stat": 0,
"comment_language": "un",
"comment_post_item_ids": null,
"create_time": 1794881629,
"digg_count": 3,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": false,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_comment_total": 0,
"reply_id": "0",
"reply_to_reply_id": "0",
"share_info": {
"acl": {
"code": 0,
"extra": "{}"
},
"desc": "hayhay |-/’s comment: once i finish my degrees its gonna be me in these videos trust, im not stopping until i am.",
"title": "Could you be a NASA astronaut? 👀 Our astronaut candidates clear up a few myths about who can apply. Applications are open through Dec. 3. Link in bio. 🚀",
"url": "https://m.tiktok.com/v/7708867568920038669.html?_d=f6hhfh08g2eiee&comment_author_id=7203213782935405611&preview_pb=0&share_comment_id=7708957783375233822&share_item_id=7708867568920038669&sharer_language=en&source=h5_m&u_code=0"
},
"sort_extra_score": {
"reply_score": 0.000949,
"show_more_score": 0.00075
},
"sort_tags": "{\"cold_start\":1,\"fine_sort_cold_queue\":1,\"rough_sort_cold_queue\":1,\"top_list\":1}",
"status": 1,
"stick_position": 0,
"text": "once i finish my degrees its gonna be me in these videos trust, im not stopping until i am.",
"text_extra": [],
"trans_btn_style": 0,
"user": {
"account_labels": null,
"ad_cover_url": null,
"advance_feature_item_order": null,
"advanced_feature_info": null,
"avatar_thumb": {
"uri": "tos-useast8-avt-0068-tx2/5094953121319f17f0fdebf6c9731773",
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/5094953121319f17f0fdebf6c9731773~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/5094953121319f17f0fdebf6c9731773~tplv-tiktokx-cropcenter:100:100.jpg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8",
"https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/5094953121319f17f0fdebf6c9731773~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=useast8"
],
"url_prefix": null
},
"bold_fields": null,
"can_message_follow_status_list": null,
"can_set_geofencing": null,
"cha_list": null,
"cover_url": null,
"custom_verify": "",
"enterprise_verify_reason": "",
"events": null,
"followers_detail": null,
"geofencing": null,
"homepage_bottom_toast": null,
"item_list": null,
"mutual_relation_avatars": null,
"need_points": null,
"nickname": "hayhay |-/",
"platform_sync_info": null,
"relative_users": null,
"search_highlight": null,
"sec_uid": "MS4wLjABAAAAtqDPeybnKyMiwPzcYneDbFWwukJqQns1oIfXIFMh726S4iGETTHdgV3ElMPRW1DR",
"shield_edit_field_info": null,
"type_label": null,
"uid": "7203213782935405611",
"unique_id": "galaxycvm",
"user_profile_guide": null,
"user_tags": null,
"white_cover_url": null
},
"user_buried": false,
"user_digged": 0
}
],
"cursor": 20,
"extra": {
"api_debug_info": null,
"fatal_item_ids": null,
"now": 1794882948000
},
"has_filtered_comments": 0,
"has_more": 1,
"log_pb": {
"impr_id": "20261117023548296DD721A170712E9911"
},
"reply_style": 2,
"status_code": 0,
"status_msg": "",
"top_gifts": null,
"total": 165,
"credits_charged": 1
} What it returns
- success boolean
- credits_remaining integer
- alias_comment_deleted boolean
- comments array
- cursor integer
- extra object
- has_filtered_comments integer
- has_more See schema
- log_pb object
- reply_style integer
Parameters
TikTok video URL
Set to true to get a trimmed response
Cursor to get more comments. Get 'cursor' from previous response.
Use cases
- Read what viewers said about a sponsored video
- Collect comments on a launch video for sentiment review
- Page through a video's comments to find common questions
- Spot top-liked comments to quote in a campaign recap
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit when no rule matches.
- 0 credits when response field comments is empty or absent.
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Guides
Related TikTok endpoints
FAQ
How much does the TikTok Comments API cost?
A call costs 1 credit by default. A response whose comments comes back empty costs 0 credits. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header, plus url. You don't need a TikTok account or developer app.
What does it return?
Typed JSON. Top-level fields include alias_comment_deleted, comments, cursor, extra, has_filtered_comments and has_more. The full schema and a real sample response are on this page and in the API reference.
Is this an official TikTok API?
No. Fetchproof is an unofficial API that returns public TikTok data only.