Call it
curl https://api.peume.com/v1/call/search-wechat-content \
-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-content", {
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-content",
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-content.
Parameters
keywordRequiredstringSearch keyword (1-100 chars)
business_typestringVertical key: all / account / article / video / live_stream / moments / news / book / listen / image / encyclopedia / weixin_index, other values are rejected
sortstringSort (result page 'sort' dropdown, common to all verticals): default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
publish_timestringPublish time (result page 'time' dropdown, common): 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 — it returns the first page every time)
cursorstringPagination cursor: leave empty for the first page; for the next page pass back the cursor returned in the previous response
rawbooleanTrue=raw search response; False=simplified parsed structure
