Zhihu Recommended Followees
https://api.sandbase.ai/v1/api/zhihu/web/recommend-followeesReturns a list of recommended users to follow on Zhihu. Access personalized author and contributor suggestions directly from Zhihu web.
- 价格
- $0.001美元 / 次调用
- 方法
- POST
- 响应
- JSON
- 参数
- 0 个必填 · 0 个可选
Playground
[
{
"data": {
"data": [
{
"actor": {
"avatar_url": "https://pic1.zhimg.com/v2-463c0e8b3df30c11bce9ac122ea661e8_l.jpg?source=a0c391dc",
"badge": [
{
"description": "优秀答主",
"topic_names": [
"装修",
"智能家居",
"家居",
"… 1 more items in the full response"
],
"topics": [],
"type": "best_answerer"
}
],
"badge_v2": {
"detail_badges": null,
"merged_badges": [
{
"badge_status": "passed",
"description": "新知答主",
"detail_type": "best",
"icon": "",
"night_icon": "",
"sources": null,
"title": "年度新知答主",
"type": "best",
"url": "https://www.zhihu.com/question/510340037"
}
],
"title": "新知答主"
},
"description": "人生是所有体验的总和|真正的英雄主义,是认清生活之后,依旧热爱生活。 商务联系jiajia9911_ 不接代发",
"gender": 0,
"headline": "养猫和养娃的去家务化研究砖家",
"id": "fe6fbcf711e87106974a047bcc645229",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "小原嘉-嘉嘉",
"type": "people",
"url": "https://www.zhihu.com/people/dachun_zh",
"url_token": "dachun_zh",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 40137,
"night_mode_url": "https://picx.zhimg.com/v2-eaaa8dcaa282ce1d8af720b574f0a055_r.jpg?source=a0c391dc",
"url": "https://pic1.zhimg.com/v2-262be75d1ba67017d56d505cb2bdd759_r.jpg?source=a0c391dc"
}
}
},
"attached_info": "",
"personal_desc": "新知答主",
"reason": "「家居生活」领域答主"
},
{
"actor": {
"avatar_url": "https://picx.zhimg.com/v2-1e3776027c3b8502ebdbe57462b62abc_l.jpg?source=a0c391dc",
"badge": [],
"badge_v2": {
"detail_badges": null,
"merged_badges": [],
"title": ""
},
"description": "",
"exposed_medal": {
"avatar_url": "https://pic1.zhimg.com/v2-031decfcd302afca5dd290ce2e7b7a84_720w.jpg?source=a0c391dc",
"medal_avatar_frame": "",
"medal_id": "972475023013875712"
},
"gender": 1,
"headline": "170m²平层装修完毕,家居家电测评!合作+WFR8235",
"id": "9bdd64da98595b85f387b4d886859997",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "墨十一",
"type": "people",
"url": "https://www.zhihu.com/people/chen-yu-hang-80",
"url_token": "chen-yu-hang-80",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 0,
"night_mode_url": "",
"url": ""
}
}
},
"attached_info": "",
"personal_desc": "170m²平层装修完毕,家居家电测评!合作+WFR8235",
"reason": "你可能感兴趣"
},
{
"actor": {
"avatar_url": "https://pica.zhimg.com/v2-64034071c33a755d8086b5308a39cd87_l.jpg?source=a0c391dc",
"badge": [],
"badge_v2": {
"detail_badges": null,
"merged_badges": [],
"title": ""
},
"description": "",
"exposed_medal": {
"avatar_url": "https://pic1.zhimg.com/v2-79e46f20205541a4c5aab1df99e39599_720w.jpg?source=a0c391dc",
"medal_avatar_frame": "",
"medal_id": "972477022068568064"
},
"gender": 1,
"headline": "擅长科技汽车、数码家电、商业分析,一个人懂互联网的资深职场人",
"id": "3226d80e6c308b28f0bcc9da87251a3a",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "韩老九",
"type": "people",
"url": "https://www.zhihu.com/people/a-feng-36-86",
"url_token": "a-feng-36-86",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 0,
"night_mode_url": "",
"url": ""
}
}
},
"attached_info": "",
"personal_desc": "擅长科技汽车、数码家电、商业分析,一个人懂互联网的资深职场人",
"reason": "「家居生活」领域答主"
},
"… 9 more items in the full response"
]
}
}
]示例
选择一个示例,将其输入和结果加载到 playground 中。
API README
Zhihu Recommended Followees API
Returns a list of Zhihu users that Zhihu recommends the current account to follow. It needs no input: send an empty JSON object {}.
Use cases
- Show a list of suggested Zhihu accounts in an onboarding or discovery screen.
- Collect creators tagged with a topic area, such as AI or technology, using the
reasontext. - Find verified and official accounts by reading the badge fields.
- Build a seed list of user IDs to look up in more detail.
Request
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/recommend-followees" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"actor": {
"avatar_url": "https://picx.zhimg.com/v2-e8a4e76a1420ca566c932936ad0f04d6_l.jpg?source=a0c391dc",
"badge": [],
"badge_v2": {
"detail_badges": null,
"merged_badges": [],
"title": ""
},
"description": "",
"exposed_medal": {
"avatar_url": "https://pic1.zhimg.com/v2-340c50d93c8821c172477e82f0f4e08e_720w.jpg?source=a0c39…",
"medal_avatar_frame": "",
"medal_id": "972473506181627904"
},
"gender": -1,
"headline": "靠谱科普 就看果壳",
"id": "486e2e8a3d77380f1607d6de0fd27c10"
},
"attached_info": "",
"personal_desc": "靠谱科普 就看果壳",
"reason": "「人工智能」领域答主"
}
]
}
Response fields
| Field | Meaning |
|---|---|
data[] | One recommended user. Each item holds the user details in actor and the reason for the suggestion. |
data[].actor.id | The user's ID, a 32-character hex string. Use it to look up the user in other Zhihu APIs. |
data[].actor.headline | The short tagline shown under the user's name. |
data[].actor.description | The user's profile description. It can be an empty string. |
data[].actor.avatar_url | Link to the user's avatar image. |
data[].reason | Why Zhihu suggests this user, for example a topic area the user answers in or 你可能感兴趣 (you may be interested). |
data[].personal_desc | A short description of the user. It often matches the headline or the badge text. |
data[].actor.badge[].description / data[].actor.badge_v2.title | The verified identity text of the user, such as an official account or a job title. Both are empty when the user has no badge. |
data[].actor.badge_v2.merged_badges[].badge_status | Verification status of the badge. The sample shows passed. |
data[].actor.is_followed | Whether the current account already follows this user. It does not appear on every item. |
Notes
- The request takes no parameters, so send
{}as the body. - The sample response has no pagination fields.
- Take
data[].actor.idand pass it to Zhihu Web User Profile for the full profile. - Use Zhihu User Answers to read what a recommended user has written.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
发送您的第一条请求
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/recommend-followees" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. 身份验证
将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
3. 参数
此 API 尚未发布参数 Schema。
4. 响应
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"data": [
{
"actor": {
"avatar_url": "https://pic1.zhimg.com/v2-463c0e8b3df30c11bce9ac122ea661e8_l.jpg?source=a0c391dc",
"badge": [
{
"description": "优秀答主",
"topic_names": [
"装修",
"智能家居",
"家居",
"… 1 more items in the full response"
],
"topics": [],
"type": "best_answerer"
}
],
"badge_v2": {
"detail_badges": null,
"merged_badges": [
{
"badge_status": "passed",
"description": "新知答主",
"detail_type": "best",
"icon": "",
"night_icon": "",
"sources": null,
"title": "年度新知答主",
"type": "best",
"url": "https://www.zhihu.com/question/510340037"
}
],
"title": "新知答主"
},
"description": "人生是所有体验的总和|真正的英雄主义,是认清生活之后,依旧热爱生活。 商务联系jiajia9911_ 不接代发",
"gender": 0,
"headline": "养猫和养娃的去家务化研究砖家",
"id": "fe6fbcf711e87106974a047bcc645229",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "小原嘉-嘉嘉",
"type": "people",
"url": "https://www.zhihu.com/people/dachun_zh",
"url_token": "dachun_zh",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 40137,
"night_mode_url": "https://picx.zhimg.com/v2-eaaa8dcaa282ce1d8af720b574f0a055_r.jpg?source=a0c391dc",
"url": "https://pic1.zhimg.com/v2-262be75d1ba67017d56d505cb2bdd759_r.jpg?source=a0c391dc"
}
}
},
"attached_info": "",
"personal_desc": "新知答主",
"reason": "「家居生活」领域答主"
},
{
"actor": {
"avatar_url": "https://picx.zhimg.com/v2-1e3776027c3b8502ebdbe57462b62abc_l.jpg?source=a0c391dc",
"badge": [],
"badge_v2": {
"detail_badges": null,
"merged_badges": [],
"title": ""
},
"description": "",
"exposed_medal": {
"avatar_url": "https://pic1.zhimg.com/v2-031decfcd302afca5dd290ce2e7b7a84_720w.jpg?source=a0c391dc",
"medal_avatar_frame": "",
"medal_id": "972475023013875712"
},
"gender": 1,
"headline": "170m²平层装修完毕,家居家电测评!合作+WFR8235",
"id": "9bdd64da98595b85f387b4d886859997",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "墨十一",
"type": "people",
"url": "https://www.zhihu.com/people/chen-yu-hang-80",
"url_token": "chen-yu-hang-80",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 0,
"night_mode_url": "",
"url": ""
}
}
},
"attached_info": "",
"personal_desc": "170m²平层装修完毕,家居家电测评!合作+WFR8235",
"reason": "你可能感兴趣"
},
{
"actor": {
"avatar_url": "https://pica.zhimg.com/v2-64034071c33a755d8086b5308a39cd87_l.jpg?source=a0c391dc",
"badge": [],
"badge_v2": {
"detail_badges": null,
"merged_badges": [],
"title": ""
},
"description": "",
"exposed_medal": {
"avatar_url": "https://pic1.zhimg.com/v2-79e46f20205541a4c5aab1df99e39599_720w.jpg?source=a0c391dc",
"medal_avatar_frame": "",
"medal_id": "972477022068568064"
},
"gender": 1,
"headline": "擅长科技汽车、数码家电、商业分析,一个人懂互联网的资深职场人",
"id": "3226d80e6c308b28f0bcc9da87251a3a",
"is_followed": false,
"is_following": false,
"is_org": false,
"name": "韩老九",
"type": "people",
"url": "https://www.zhihu.com/people/a-feng-36-86",
"url_token": "a-feng-36-86",
"user_status": null,
"user_type": "people",
"vip_info": {
"is_vip": false,
"vip_icon": {
"night_mode_url": "",
"url": ""
},
"widget": {
"id": 0,
"night_mode_url": "",
"url": ""
}
}
},
"attached_info": "",
"personal_desc": "擅长科技汽车、数码家电、商业分析,一个人懂互联网的资深职场人",
"reason": "「家居生活」领域答主"
},
"… 9 more items in the full response"
]
}
}
]探索更多
相关 APIs
| API | 价格 | 响应 |
|---|---|---|
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.005 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
问题
常见问题
如何使用 Zhihu Recommended Followees API?
向 https://api.sandbase.ai/v1/api/zhihu/web/recommend-followees 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
Zhihu Recommended Followees API 的价格是多少?
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
Zhihu Recommended Followees API 接受哪些参数?
Zhihu Recommended Followees 不接受输入参数;请发送空的 JSON 请求体。
Zhihu Recommended Followees API 返回什么?
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
我需要 Zhihu 开发者账户或 API key 吗?
不需要。Zhihu Recommended Followees 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Zhihu API 访问权限。
