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.
- Prix
- $0.001USD / appel
- Méthode
- POST
- Réponse
- JSON
- Paramètres
- 0 obligatoires · 0 facultatifs
Bac à sable
[
{
"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"
]
}
}
]Exemples
Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
README de l'API
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.
Commencer à construire
Envoyez votre première requête
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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. Authentification
Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
3. Paramètres
Aucun schéma de paramètres n'a été publié pour cette API.
4. Réponse
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"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"
]
}
}
]Explorer plus
APIs associées
| API | Prix | Réponse |
|---|---|---|
Zhihu Recommended FolloweesCette API Zhihu | $0.001 par appel | JSON |
Zhihu | $0.005 par appel | JSON |
Zhihu | $0.001 par appel | JSON |
Zhihu | $0.001 par appel | JSON |
Zhihu | $0.001 par appel | JSON |
Zhihu | $0.001 par appel | JSON |
Questions
FAQ
Comment utiliser l’API Zhihu Recommended Followees ?
Envoyez une requête POST à https://api.sandbase.ai/v1/api/zhihu/web/recommend-followees avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
Combien coûte l’API Zhihu Recommended Followees ?
$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Quels paramètres l’API Zhihu Recommended Followees accepte-t-elle ?
Zhihu Recommended Followees n’accepte aucun paramètre d’entrée ; envoyez un corps JSON vide.
Que renvoie l’API Zhihu Recommended Followees ?
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Ai-je besoin d’un compte développeur ou d’une clé API Zhihu ?
Non. Zhihu Recommended Followees fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Zhihu séparément.
