| 状态码 | 说明 |
|---|---|
| -1 | failed |
| 0 | success |
| 400 | 参数错误 |
| 1001 | 账户余额不足 |
| 1002 | 邮箱/手机号或密码错误 |
| 1003 | 请求频率超过上限 |
| 1004 | 邮箱或手机号已注册 |
| 1005 | 无效的 API Key |
| 1006 | 用户不存在 |
| 1007 | 登录凭证无效 |
| 1008 | 缺少 API Key |
| 1009 | 手机或邮箱已存在 |
| 1010 | 需要管理员授权 |
| 1011 | 原密码错误 |
| 1012 | 新密码不能与原密码相同 |
| 1013 | 手机号和uid不能都为空 |
| 1014 | 请填写验证码 |
| 1015 | 验证码错误或已过期 |
| 1016 | 登录失败次数过多,请输入 验证码 |
| 1017 | 请填写手机号 |
| 1018 | 请填写邮箱 |
| 1019 | 接口不存在,请检查 |
| 5000 | 服务暂时不可用,请稍后重试 |
| 5003 | 网络连接失败,请稍后重试 |
| 6001 | 修改密码失败,请稍后重试 |
| 字段 | 说明 |
|---|---|
| data.paging.page | 当前页码 |
| data.paging['is_end'] | 是否是最后一页 |
| data.data[0]['target_type'] | 目标内容类型 |
| data.data[0].cursor | 游标值 |
| data.data[0].target.id | 回答ID |
| data.data[0].target.author.id | 用户ID |
| data.data[0].target.author.name | 用户名 |
| data.data[0].target.question.id | 问题ID |
| data.data[0].target.question.title | 问题标题 |
{
"questionId": "1965463603411947874", // 知乎问题 ID
"url": "https://www.zhihu.com/question/1965463603411947874/answer/2062589997853814986", // 知乎问题或回答 URL
"offset": 0, //翻页偏移量,默认 0
"cursor": "", // 翻页游标,第一页可不传
"order": "_updated", // 排序方式:_updated=按更新时间,_default=默认排序;默认 _updated
"sessionId": "" // 会话 ID,续翻页时按返回值传入
}curl --location 'https://api.yddm.com/zhihu/answer_list_v1' \
--header 'x-api-key: {{X-API-Key}}' \
--header 'Content-Type: application/json' \
--data '{
"questionId": "1965463603411947874", // 知乎问题 ID
"url": "https://www.zhihu.com/question/1965463603411947874/answer/2062589997853814986", // 知乎问题或回答 URL
"offset": 0, //翻页偏移量,默认 0
"cursor": "", // 翻页游标,第一页可不传
"order": "_updated", // 排序方式:_updated=按更新时间,_default=默认排序;默认 _updated
"sessionId": "" // 会话 ID,续翻页时按返回值传入
}'{"code":1008,"msg":"缺少 API Key","data":null}