Call it
curl https://api.peume.com/v1/call/list-a-weibo-user-s-recent-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxItems": 50,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"mode": "timeline",
"users": [
"2803301701"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/list-a-weibo-user-s-recent-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"maxItems": 50,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"mode": "timeline",
"users": [
"2803301701"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-a-weibo-user-s-recent-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxItems": 50,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"mode": "timeline",
"users": [
"2803301701"
]
}
},
)
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: list-a-weibo-user-s-recent-posts.
Parameters
maxItemsintegeroptional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit
Example: 50
maxTotalChargeUsdnumberthe spend cap enforces on every event this run bills, in dollars. 's key requires it, above 0 and at most 1, and holds it for the call
Example: 0.5
memoryintegerMB of run memory. 's key requires 1024, which fixes the actor-start charge; your own key may set any size
Example: 1024
timeoutintegerrun timeout in seconds. 's key requires 90 so the run and its rows arrive before any wait gives up; a larger pull should use your own key and the async web.scrape.job.* pair above
Example: 90
modeRequiredstringmust be `timeline` for this entry — it selects the mode
Example: timeline
usersRequiredarrayone per entry: numeric uid (2803301701), screen name (人民日报), custom domain (rmrb) or a weibo.com / m.weibo.cn profile URL; the same user given twice is scraped once
Example: ["2803301701"]
max_itemsintegerposts per user, 1-10000; default 50
Example: 50
proxyUrlsarrayleave empty to use the residential proxy included in the run price; or pass your own gateway URLs
Other ways to do it
Same job, other sources, cheapest first.
