Open YaoZeyuan opened 7 years ago
https://www.zhihu.com/api/v4/members/ying-ye-78/answers
?offset=5&limit=15&sort_by=created
&include=data[].is_normal,suggest_edit,comment_count,collapsed_counts,reviewing_comments_count,can_comment,content,voteup_count,reshipment_settings,comment_permission,mark_infos,created_time,updated_time,relationship.voting,is_author,is_thanked,is_nothelp,upvoted_followees;data[].author.badge[?(type=best_answerer)].topics
https://www.zhihu.com/api/v4/members/ying-ye-78/answers?
offset=5&limit=15&sort_by=created&
include=data[].is_normal,suggest_edit,comment_count,collapsed_counts,reviewing_comments_count,can_comment,content,voteup_count,reshipment_settings,comment_permission,mark_infos,created_time,updated_time,relationship.voting,is_author,is_thanked,is_nothelp,upvoted_followees;data[].author.badge[?(type=best_answerer)].topics
没看懂include参数怎么用,总是返回MalformRequestException... https://www.zhihu.com/api/v4/questions/21241873/answers?include=data[].voteup_count
方括号里差个,https://www.zhihu.com/api/v4/questions/21241873/answers?include=data[].voteup_count
像这种地址 https://www.zhihu.com/api/v4/people/89642c262b214ff178c612e2a6da25d0 后面的一串字符 89642c262b214ff178c612e2a6da25d0 是怎么转化为 ying-ye-78/answers 保存在本地呢?
可否把上面的几条帖子格式修正一下,谢谢啦
获取自身信息可以访问:https://www.zhihu.com/api/v4/me
知乎问题详情=>
data[*]后边对应于问题字段, 需要通过其他途径(例如: 其他接口/前端类名)猜测question数据结构中的字段内容.猜对即可看到对应数据
data[*].answer_count,articles_count,gender,follower_count,is_followed,is_following,badge[?(type=best_answerer)].topics
您好: 您的来信已收到,查阅后尽快与您取得联系。
@mazhongbin 什么机器人
用于集中记录一下目前发现的知乎v4版api
根据问题获取问题下答案,每次最多获取20个,sort_by参数为排序依据,include参数用于在基础返回值外添加扩展内容
https://www.zhihu.com/api/v4/questions/21241873/answers?
limit=20&offset=0
&sort_by=default
&include=data[].is_normal,is_sticky,collapsed_by,suggest_edit,comment_count,collapsed_counts,reviewing_comments_count,can_comment,content,editable_content,voteup_count,reshipment_settings,comment_permission,mark_infos,created_time,updated_time,relationship.is_author,voting,is_thanked,is_nothelp,upvoted_followees;data[].author.is_blocking,is_blocked,is_followed,voteup_count,message_thread_token,badge[?(type=best_answerer)].topics
update =>
https://www.zhihu.com/api/v4/questions/51196509/answers?include=data[*].is_normal,admin_closed_comment,reward_info,is_collapsed,annotation_action,annotation_detail,collapse_reason,is_sticky,collapsed_by,suggest_edit,comment_count,can_comment,content,editable_content,voteup_count,reshipment_settings,comment_permission,created_time,updated_time,review_info,relevant_info,question.detail,excerpt,relationship.is_authorized,is_author,voting,is_thanked,is_nothelp,is_labeled,is_recognized;data[*].mark_infos[*].url;data[*].author.follower_count,badge[*].topics&limit=5&offset=10&platform=desktop&sort_by=default
将question替换为question.detail后, 即可获得问题描述数据