Call it
curl https://api.peume.com/v1/call/list-a-weibo-post-s-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxItems": 50,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"mode": "comments",
"post_ids": [
"https://weibo.com/2803301701/Rjuwfpy8d"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/list-a-weibo-post-s-comments", {
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": "comments",
"post_ids": [
"https://weibo.com/2803301701/Rjuwfpy8d"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-a-weibo-post-s-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxItems": 50,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"mode": "comments",
"post_ids": [
"https://weibo.com/2803301701/Rjuwfpy8d"
]
}
},
)
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-post-s-comments.
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 `comments` for this entry — it selects the mode
Example: comments
post_idsRequiredarrayone per entry: numeric mid, mblogid short code, or post URL
Example: ["https://weibo.com/2803301701/Rjuwfpy8d"]
max_itemsintegercomments per post, 1-10000, replies included; default 50
Example: 50
comment_sortstringhot (default, most-liked first) | time (newest first)
Example: hot
include_repliesbooleanalso walk each comment's reply thread; replies come back as rows with is_reply true and root_id linking them to their comment, and bill as comments. Default false
Example: false
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.
