Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Zhihu User Info

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.

價格
$0.014286美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

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.

探索更多

相關 APIs

所有 APIs
API價格回應
Zhihu每次呼叫 $0.014286JSON
Zhihu每次呼叫 $0.014286JSON
Zhihu每次呼叫 $0.028571JSON
Zhihu每次呼叫 $0.014286JSON
Zhihu每次呼叫 $0.014286JSON
Zhihu每次呼叫 $0.014286JSON

指南:Best Zhihu API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Zhihu User Info API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/zhihu/user-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Zhihu User Info API 的費用是多少?

每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Zhihu User Info API 接受哪些參數?

必要:userUrlToken (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Zhihu User Info API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Zhihu 開發者帳號或 API 金鑰嗎?

不需要。Zhihu User Info 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Zhihu API 存取權。