Call it
curl https://api.peume.com/v1/call/search-wechat-videos \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-wechat-videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-wechat-videos",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword"
}
},
)
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-wechat-videos.
Parameters
keywordRequiredstringSearch keyword (1-100 chars)
durationstringDuration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer
sortstringSort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
publish_timestringPublish time: all/0 / day/1 / week/2 / half_year/3; string key or integer
offsetintegerPass 0 for the first page; use cursor to paginate (offset alone does not work)
cursorstringPagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response
rawbooleanTrue=raw search response; False=simplified parsed structure
Other ways to do it
Same job, other sources, cheapest first.
