Call it
curl https://api.peume.com/v1/call/tiktok-douyin-trending-content-search-with-engagement-filters \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"contentType": "ALL",
"videoType": "ALL",
"sortType": "COMPREHENSIVE",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-douyin-trending-content-search-with-engagement-filters", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"contentType": "ALL",
"videoType": "ALL",
"sortType": "COMPREHENSIVE",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-douyin-trending-content-search-with-engagement-filters",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"contentType": "ALL",
"videoType": "ALL",
"sortType": "COMPREHENSIVE",
"page": 1
}
},
)
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: tiktok-douyin-trending-content-search-with-engagement-filters.
Parameters
keywordstringOptional search keyword.
contentTypestringTop-level content type. Only one content type can be selected. Available Values: - `ALL`: All content types. - `FASHION`: Fashion. - `TECHNOLOGY`: Technology. - `SCIENCE`: Science. - `PHOTOGRAPHY`: Photography and videography. - `FOOD`: Food. - `MOTHER_BABY`: Mother and baby. - `PARENTING`: Parentin One of: ALL, FASHION, TECHNOLOGY, SCIENCE, PHOTOGRAPHY, FOOD, MOTHER_BABY, PARENTING, DRAMA, GAME, AUTOMOTIVE, ANIMAL.
ALL · FASHION · TECHNOLOGY · SCIENCE · PHOTOGRAPHY · FOOD · MOTHER_BABY · PARENTING · DRAMA · GAME · AUTOMOTIVE · ANIMAL …
Example: ALL
videoTypestringVideo type filter. Available Values: - `ALL`: All video types. - `XINGTU_VIDEO`: Xingtu commercial videos. - `NATURAL_VIDEO`: Natural videos. One of: ALL, XINGTU_VIDEO, NATURAL_VIDEO.
ALL · XINGTU_VIDEO · NATURAL_VIDEO
Example: ALL
sortTypestringSorting criteria for hot content results. Available Values: - `COMPREHENSIVE`: Comprehensive ranking. - `HIGH_INTERACTION`: Highest interaction count. - `HIGH_LIKE`: Highest like count. - `HIGH_COMMENT`: Highest comment count. - `HIGH_SHARE`: Highest share count. One of: COMPREHENSIVE, HIGH_INTERACTION, HIGH_LIKE, HIGH_COMMENT, HIGH_SHARE.
COMPREHENSIVE · HIGH_INTERACTION · HIGH_LIKE · HIGH_COMMENT · HIGH_SHARE
Example: COMPREHENSIVE
pageintegerPage number (starting from 1). Page size is fixed at 10.
Example: 1
likeCountMinintegerMinimum raw like count.
likeCountMaxintegerMaximum raw like count.
commentCountMinintegerMinimum raw comment count.
commentCountMaxintegerMaximum raw comment count.
shareCountMinintegerMinimum raw share count.
shareCountMaxintegerMaximum raw share count.
interactionCountMinintegerMinimum raw interaction count.
interactionCountMaxintegerMaximum raw interaction count.
followerCountMinintegerMinimum raw creator follower count.
followerCountMaxintegerMaximum raw creator follower count.
Other ways to do it
Same job, other sources, cheapest first.
