A TikTok search API for videos, creators and hashtags
SocialHolmes has three TikTok search endpoints: one returns videos matching a phrase, one returns creators matching a name or handle fragment, and one returns hashtags with their view counts. Each bills at $0.125 per 1,000 results.
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 search — one video per row
id url type caption taken_at duration region play_count like_count comment_count share_count save_count download_count cover_url media_urls hashtags music is_pinned is_ad author origin_cover play
TikTok search users — one profile per row
id username url full_name biography is_verified is_private follower_count following_count media_count like_count digg_count profile_pic_url sec_uid region
TikTok search hashtags — one hashtag per row
id name url description cover_url view_count post_count is_commerce cover
Which search to use
{"Use search when you want videos about a topic" => "it matches hashtags and phrases and returns video rows with counts, caption, hashtags, music and author. Use search_users when you know part of a name or handle and want matching creator profiles with follower counts. Use search_hashtags when you have a keyword and want the tags around it with view counts."}
All three are paged and take a limit, so you choose how many rows you buy.
Limits to know about
The user search matches names and handles, not topics. It does not rank creators by engagement or filter by followers; the returned profiles carry a follower count you can filter on yourself. For ranked creator discovery by topic, SocialHolmes offers find_creators on Instagram and YouTube only.
Results are public data, read at the moment you ask. A run that returns nothing costs nothing, and the largest limit in a single run is 10,000.
From search to analysis
{"A common chain" => "run search_hashtags to find tags around a keyword, run hashtag on the best ones, then call comments on the most active videos. Each step is its own run with its own limit, so you can stop as soon as you have enough. An AI assistant on the MCP server can run that chain for you and show the rows."}
Example request
The query can be a phrase or a hashtag. limit is how many videos 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/search \
-H "Authorization: Bearer $SOCIALHOLMES_KEY" \
-H "Content-Type: application/json" \
-d '{"parameters": {"query": "mars landing"}, "limit": 25}'
import os
import requests
run = requests.post(
"https://api.socialholmes.com/api/public/v1/scrape/tiktok/search",
headers={"Authorization": f"Bearer {os.environ['SOCIALHOLMES_KEY']}"},
json={"parameters": {"query": "mars landing"}, "limit": 25},
).json()
print(run["id"], run["status"])
const response = await fetch("https://api.socialholmes.com/api/public/v1/scrape/tiktok/search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHOLMES_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ parameters: { query: "mars landing" }, 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/search"),
{ parameters: { query: "mars landing" }, 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/search");
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" => ["query" => "mars landing"], "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{"query": "mars landing"},
"limit": 25,
})
req, _ := http.NewRequest("POST", "https://api.socialholmes.com/api/public/v1/scrape/tiktok/search", 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:
Search TikTok for "mars landing", take the 50 top videos, and tell me which creators appear more than once.
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
What can I search for?
Does it return follower counts?
Can I search creators by topic?
Do I need a TikTok account or developer app?
Can an AI assistant run searches?
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.