Call it
curl https://api.peume.com/v1/call/search-a-weibo-user-s-posts-by-keyword-and \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"uid": "7277477906",
"page": 1,
"starttime": "1772294400",
"endtime": "1772294400",
"hasori": 1,
"hasret": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-a-weibo-user-s-posts-by-keyword-and", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"uid": "7277477906",
"page": 1,
"starttime": "1772294400",
"endtime": "1772294400",
"hasori": 1,
"hasret": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-a-weibo-user-s-posts-by-keyword-and",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"uid": "7277477906",
"page": 1,
"starttime": "1772294400",
"endtime": "1772294400",
"hasori": 1,
"hasret": 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: search-a-weibo-user-s-posts-by-keyword-and.
Parameters
uidRequiredstringUser ID
Example: 7277477906
qstringSearch keyword
pageintegerPage number
Example: 1
starttimestringStart timestamp
Example: 1772294400
endtimestringEnd timestamp
Example: 1772294400
hasoriintegerInclude original posts, 1=include, 0=exclude
Example: 1
hasretintegerInclude retweets, 1=include, 0=exclude
Example: 1
hastextintegerInclude text posts, 1=include, 0=exclude
Example: 1
haspicintegerInclude image posts, 1=include, 0=exclude
Example: 1
hasvideointegerInclude video posts, 1=include, 0=exclude
Example: 1
hasmusicintegerInclude music posts, 1=include, 0=exclude
Example: 1
Other ways to do it
Same job, other sources, cheapest first.
