A TikTok comments API that bills per comment
Send a TikTok video id and a limit, and SocialHolmes returns that video's public comments as structured JSON - text, time, likes, reply count and author. It costs $0.125 per 1,000 comments, and a run that returns nothing costs nothing.
What you get
Every row comes back as structured JSON. These are the fields on a row, taken from the endpoint's recorded example response in the reference. Every field we collect is in the row itself, including the extra fields the platform sends, so a live row can carry more than the recorded example.
TikTok comments — one comment per row
id text created_at like_count reply_count video_id language author
TikTok replies — one comment per row
id text created_at like_count reply_count video_id language author
TikTok video — one video per row
id url type caption taken_at duration region play_count like_count comment_count share_count save_count cover_url media_urls hashtags music is_ad author origin_cover play
Comments, then replies
The comments endpoint takes a video_id and returns top-level comments. To go one level down, the replies endpoint takes the video_id and the comment_id of a comment from a comments run and returns the replies to it. Both are paged, so both accept a limit.
The video endpoint returns a single video with its details, which is useful when you want the caption, counts and author alongside the comments you collected.
What people use it for
Brands and agencies pull comments after a campaign to see what viewers asked, praised or complained about. Researchers collect threads for discourse analysis and re-run the same pull later to see how a conversation changed. Newsrooms look at public reactions under a viral video.
Each comment row has a language field, so a multilingual thread can be split before analysis. The like_count and reply_count give you a way to rank comments without scraping anything else.
How billing works here
You are billed for rows delivered. A limit of 500 can bill at most 500 results, and a run that returns 340 comments bills 340. If a video has no public comments, the run returns nothing and costs nothing.
The run is read at the moment you ask. There is no cache and no stored copy served back to you, so a second call reflects the thread as it is then. The largest limit you can ask for in one run is 10,000.
Example request
The video_id is the numeric id from the video's URL. limit is how many comments you want and the most the run can bill.
The call returns a run id straight away; poll GET /api/public/v1/runs/:id until it succeeds, then read the rows from GET /api/public/v1/runs/:id/results. Reading results again does not cost anything more.
curl -X POST https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments \
-H "Authorization: Bearer $SOCIALHOLMES_KEY" \
-H "Content-Type: application/json" \
-d '{"parameters": {"video_id": "7212345678901234567"}, "limit": 25}'
import os
import requests
run = requests.post(
"https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments",
headers={"Authorization": f"Bearer {os.environ['SOCIALHOLMES_KEY']}"},
json={"parameters": {"video_id": "7212345678901234567"}, "limit": 25},
).json()
print(run["id"], run["status"])
const response = await fetch("https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHOLMES_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ parameters: { video_id: "7212345678901234567" }, limit: 25 }),
})
const run = await response.json()
console.log(run.id, run.status)
require "net/http"
require "json"
response = Net::HTTP.post(
URI("https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments"),
{ parameters: { video_id: "7212345678901234567" }, limit: 25 }.to_json,
"Authorization" => "Bearer #{ENV.fetch('SOCIALHOLMES_KEY')}",
"Content-Type" => "application/json"
)
run = JSON.parse(response.body)
puts run["id"], run["status"]
<?php
$ch = curl_init("https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SOCIALHOLMES_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["parameters" => ["video_id" => "7212345678901234567"], "limit" => 25]),
]);
$run = json_decode(curl_exec($ch), true);
echo $run["id"], " ", $run["status"];
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"parameters": map[string]string{"video_id": "7212345678901234567"},
"limit": 25,
})
req, _ := http.NewRequest("POST", "https://api.socialholmes.com/api/public/v1/scrape/tiktok/comments", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("SOCIALHOLMES_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
var run map[string]any
json.NewDecoder(res.Body).Decode(&run)
fmt.Println(run["id"], run["status"])
}
Use it from an AI assistant over MCP
The same account and API key work as an MCP server at https://api.socialholmes.com/mcp, over HTTP with no package to install. In Claude Code:
claude mcp add --transport http socialholmes https://api.socialholmes.com/mcp \
--header "Authorization: Bearer sh_<your key>"
Cursor, Codex and Claude Desktop connect the same way; the MCP setup guide has the config for each. Then ask in plain language:
Pull the replies under this viral TikTok and list the most-repeated claims. Use the comments endpoint first, with a limit of 300.
Pricing
$0.125 per 1,000 results, billed per row delivered. There is no subscription, and a run that returns nothing costs nothing. See the full pricing.
Questions people ask
How do I get a TikTok video id?
Can I get replies to a comment as well?
What fields come back for each comment?
Do I need a TikTok account or developer approval?
Why do I get a run id back instead of the comments?
What does it cost?
Reference and related pages
Try it on your own targets
Get an API key, run a small limit first, and pay only for the rows you get back.