Call it
curl https://api.peume.com/v1/call/search-tiktok-across-all-content-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "中华娘",
"offset": 0,
"count": 20,
"sort_type": 0,
"publish_time": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/search-tiktok-across-all-content-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "中华娘",
"offset": 0,
"count": 20,
"sort_type": 0,
"publish_time": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-tiktok-across-all-content-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "中华娘",
"offset": 0,
"count": 20,
"sort_type": 0,
"publish_time": 0
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-tiktok-across-all-content-by-keyword.
Parameters
keywordRequiredstringKeyword
Example: 中华娘
offsetintegerOffset
Example: 0
countintegerNumber
Example: 20
sort_typeintegerSort type
Example: 0
publish_timeintegerPublish time
Example: 0
Other ways to do it
Same job, other sources.
Search TikTok across all content by keywordGet general search listSearch TikTok top results by keyword — videos, photosSearches TikTok's 'Top' results by query — returns both videos and photo carousels, unlike keyword search which only returns videos.TikTok Top SearchSearch TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.
