One public Zhihu answer by id: full text, excerpt, author, parent question and timestamps.
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.answer" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"answerId":"21504075"}'{
"output": {
"found": true,
"data": {
"text": "<string | null>",
"excerpt": "<string | null>",
"createdUtc": "<integer | null>",
"updatedUtc": "<integer | null>", …
}
},
"credits": 2
}Input and output
1 field
21504075.14 fields
Good to know
Answers are personal data of PRC users.
Unknown answer 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.