-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
知乎api整理 #89
Comments
#根据作者用户名获取答案列表,每次最多获取20个,sort_by参数为排序依据,include参数用于在基础返回值外添加扩展内容 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 |
#根据作者用户名获取用户创建的收藏夹列表,每次最多获取20个,sort_by参数为排序依据,include参数用于在基础返回值外添加扩展内容 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/people/89642c262b214ff178c612e2a6da25d0 |
可否把上面的几条帖子格式修正一下,谢谢啦 |
获取自身信息可以访问:https://www.zhihu.com/api/v4/me |
知乎话题 => https://www.zhihu.com/api/v4/topics/19555634 知乎话题精华 => 解码版=> |
知乎问题详情=> 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后, 即可获得问题描述数据
The text was updated successfully, but these errors were encountered: