raw.zhihu.commentsZhihu answer comments
https://api.qovia.ai/v1/raw/zhihu/commentsFirst-level comments of an answer, cursor-paginated, 10 a page: text, likes, reply count, IP location, time (Beijing time), whether it is a hot comment, and the commenter. Hottest first (the default) or newest first. Pass the previous page's cursor back to continue; stop when has_more is false. Replies come from raw.zhihu.comment_replies. An answer without comments, or one that does not exist, answers empty and is not charged.
Typical uses: Review and comment analysis and social listening, e.g. finding what users praise and complain about most.
- Price
- $0.001 / call$1 per 1k · fixed price
- Billing
- Charged only for successful, non-empty resultsthe charge is in meta.charged_usd
- Scope
raw:zhihuThe API key needs this scope- Rate limit
- NoneNo per-account or per-endpoint request limit
Parameters
Only these parameters are accepted; any other one returns 400.
answer_idAnswer ID
Pattern^[0-9]{1,20}$Example
2096190323630387908sortOrder: hot (the default) or latest (newest first)
DefaulthotOne ofhot · latestcursorThe cursor from the previous page's response; leave it out for the first page
Pattern^[0-9]{1,20}_[0-9]{1,20}_[0-9]{1,2}$
Response
A success is HTTP 200 with the shared envelope: request_id, data (this endpoint's data, see the example) and meta (the charge). An empty result is also 200, with meta.empty true, not charged, and data may be an empty structure or null.
Errors
| code | HTTP | Billing | Description |
|---|---|---|---|
scope_denied | 403 | Not charged | This API key lacks the scope the endpoint requires. |
endpoint_unavailable | 503 | Not charged | The endpoint is not available right now (no data source connected yet, or no price configured); nothing ran. |
invalid_params | 400 | Not charged | The parameters failed validation: a required one is missing, a type or format is wrong, an array has more items than allowed, an unknown one was sent, or the POST body is not a JSON object. An error in one parameter starts with its name (item_id: …); a missing or unknown parameter starts with params: …. |
insufficient_balance | 402 | Not charged | The balance cannot pay for this call; top up first. |
upstream_busyRetryable | 503 | Refunded | The data source is busy or cooling down; refunded. Retry after Retry-After. |
upstream_timeout | 504 | Refunded | The data source timed out; refunded. |
upstream_error | 502 / 503 | Refunded | The data source failed; refunded. |
upstream_rejected | 400 | Refunded | The data source rejected these parameters (well-formed, but not accepted); refunded. |
not_found | 404 | Refunded | The data source has no such item (deleted, or the ID does not exist); refunded. |
reservation_expired | 504 | Refunded | The call took too long and was refunded automatically; no data is returned. |
Any request can also fail authentication: 401 invalid_api_key, 403 account_disabled, 429 too_many_auth_failures.
Needs an account with a balance; playground calls are billed like API calls.