Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Zhihu User Info

Docs API
https://api.sandbase.ai/v1/api/zhihu/user-info

Get the public profile for a Zhihu user identified by URL token. Use it to inspect an account found through Zhihu content or relationship data.

Prix
$0.014286USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 0 facultatifs

Bac à sable

Entrée
Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

Zhihu User Info API

Returns the public profile of one Zhihu user, including name, follower count, answer and article counts, verification flags and IP location. It needs the user's userUrlToken, the last part of a zhihu.com/people/{userUrlToken} link.

Use cases

  • Check follower count and is_realname status of a Zhihu author before you work with them.
  • Resolve a url_token found in answer or follower lists into a name, avatar and profile summary.
  • Track how an account's answer_count and articles_count change by calling the API on a schedule.
  • Separate personal accounts from organization accounts using is_org and type.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/user-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userUrlToken": "excited-vczh"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
userUrlTokenstringYesZhihu user URL token, such as the value in zhihu.com/people/{userUrlToken}.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "ai_assistant_info": null,
  "allow_message": true,
  "answer_count": 7,
  "articles_count": 147,
  "available_medals_count": 0,
  "avatar_url": "https://picx.zhimg.com/v2-ada18a9354a3831171306f2c7ce20aaf_xl.jpg?source=32738c0…",
  "avatar_url_template": "https://picx.zhimg.com/v2-ada18a9354a3831171306f2c7ce20aaf_l.jpg?source=32738c0c…",
  "badge": [],
  "badge_v2": {
    "detail_badges": [],
    "icon": "",
    "merged_badges": [],
    "night_icon": "",
    "title": ""
  },
  "employments": [],
  "extra": null,
  "follower_count": 834484
}

Response fields

FieldMeaning
nameDisplay name of the user.
url_tokenThe user's URL token. It matches the userUrlToken you sent.
idZhihu's internal ID for the user, a 32-character hex string.
follower_countNumber of followers as an integer.
follower_count_textFollower count in a short display form, for example 83.4 万. Use follower_count when you need the exact number.
answer_count / articles_countNumber of answers and number of articles the user has published.
headlineShort profile tagline. It can be an empty string.
ip_infoIP location label shown on the profile, for example IP 属地美国.
is_realname / is_org / is_advertiserFlags for a real-name verified account, an organization account, and an advertiser account.
avatar_urlLink to the user's avatar image.
vip_info.is_vip / kvip_info.is_vipWhether the account has a VIP membership of each kind.

Notes

  • Take userUrlToken from a profile link, zhihu.com/people/{userUrlToken}, or from the url_token field in other Zhihu user results.
  • gender is -1 in this response. Do not assume other values from this one example.
  • Next, call Zhihu User Articles for this user's articles, or Zhihu User Followers to list who follows them.
  • Zhihu Web User Profile is a separate profile API in the same Zhihu family.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Zhihu$0.014286 par appelJSON
Zhihu$0.014286 par appelJSON
Zhihu$0.028571 par appelJSON
Zhihu$0.014286 par appelJSON
Zhihu$0.014286 par appelJSON
Zhihu$0.014286 par appelJSON

Guides :Best Zhihu API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Zhihu User Info ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/zhihu/user-info 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 User Info ?

$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Zhihu User Info accepte-t-elle ?

Obligatoire : userUrlToken (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Zhihu User Info ?

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 User Info 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.