One public Zhihu question by id: title, description and answer, comment, follower and view counts.
2 credits/ call
Never more than 4 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/zhihu.question" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"questionId":"22467582"}'{
"output": {
"found": true,
"data": {
"title": "<string | null>",
"followers": "<integer | null>",
"answers": "<integer | null>",
"comments": "<integer | null>", …
}
},
"credits": 2
}Input and output
1 field
22467582.11 fields
Good to know
Unknown question ID? It comes back as not found, not as an error.
More from Zhihu. Same key, same credits.
The same key and credits work for every API.