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?
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/zhihu/web/recommend-followees。您也可以直接在本頁的 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 金鑰嗎?
不需要。Zhihu Recommended Followees 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Zhihu API 存取權。
