Call it
curl https://api.peume.com/v1/call/search-zhihu-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword",
"offset": 0,
"showAllTopics": "FALSE"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-zhihu-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword",
"offset": 0,
"showAllTopics": "FALSE"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-zhihu-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword",
"offset": 0,
"showAllTopics": "FALSE"
}
},
)
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-zhihu-by-keyword.
Parameters
keywordRequiredstringSearch keywords.
offsetintegerStart offset, begins with 0.
Example: 0
showAllTopicsstringWhether to show all topics. Available Values: - `FALSE`: Do not show topics. - `TRUE`: Show all topics. One of: FALSE, TRUE.
FALSE · TRUE
Example: FALSE
verticalstringResult type filter. Available Values: - `answer`: Answers only. - `article`: Articles only. - `zvideo`: Videos only. One of: answer, article, zvideo.
answer · article · zvideo
sortstringSorting criteria. Available Values: - `upvoted_count`: Most upvoted. - `created_time`: Latest published. One of: upvoted_count, created_time.
upvoted_count · created_time
timeIntervalstringPublish time interval filter. Available Values: - `a_day`: Within one day. - `a_week`: Within one week. - `a_month`: Within one month. - `three_months`: Within three months. - `half_a_year`: Within half a year. - `a_year`: Within one year. One of: a_day, a_week, a_month, three_months, half_a_year, a_year.
a_day · a_week · a_month · three_months · half_a_year · a_year
