Call it
curl https://api.peume.com/v1/call/search-weibo-users-by-keyword-and-filters \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "yu7",
"page": 1,
"region": "custom:11:1",
"auth": "org_vip",
"gender": "man",
"age": "22y"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-weibo-users-by-keyword-and-filters", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "yu7",
"page": 1,
"region": "custom:11:1",
"auth": "org_vip",
"gender": "man",
"age": "22y"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-weibo-users-by-keyword-and-filters",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "yu7",
"page": 1,
"region": "custom:11:1",
"auth": "org_vip",
"gender": "man",
"age": "22y"
}
},
)
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-weibo-users-by-keyword-and-filters.
Parameters
querystring搜索关键词/Query(提供则视为“全部”搜索;留空则仅应用高级筛选参数)
Example: yu7
pageintegerPage
Example: 1
regionstringRegion code from /city_list
Example: custom:11:1
authstringAuth type
Example: org_vip
genderstringwomen / Gender
Example: man
agestring22y/29y/39y/40y / Age bucket
Example: 22y
nicknamestringNickname filter
Example: 张三
tagstringTag filter
Example: 摄影
schoolstringSchool filter
Example: 清华大学
workstringCompany filter
Example: 字节跳动
