userUrlTokenstringzorunlu
Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
https://api.sandbase.ai/v1/api/zhihu/user-infoGet the public profile for a Zhihu user identified by URL token. Use it to inspect an account found through Zhihu content or relationship data.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
is_realname status of a Zhihu author before you work with them.url_token found in answer or follower lists into a name, avatar and profile summary.answer_count and articles_count change by calling the API on a schedule.is_org and type.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.
| Name | Type | Required | Description |
|---|---|---|---|
userUrlToken | string | Yes | Zhihu user URL token, such as the value in zhihu.com/people/{userUrlToken}. |
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
}
| Field | Meaning |
|---|---|
name | Display name of the user. |
url_token | The user's URL token. It matches the userUrlToken you sent. |
id | Zhihu's internal ID for the user, a 32-character hex string. |
follower_count | Number of followers as an integer. |
follower_count_text | Follower count in a short display form, for example 83.4 万. Use follower_count when you need the exact number. |
answer_count / articles_count | Number of answers and number of articles the user has published. |
headline | Short profile tagline. It can be an empty string. |
ip_info | IP location label shown on the profile, for example IP 属地美国. |
is_realname / is_org / is_advertiser | Flags for a real-name verified account, an organization account, and an advertiser account. |
avatar_url | Link to the user's avatar image. |
vip_info.is_vip / kvip_info.is_vip | Whether the account has a VIP membership of each kind. |
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.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
userUrlTokenstringzorunluZhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Zhihu User InfoBu API Zhihu | $0.014286 çağrı başına | JSON |
Zhihu | $0.014286 çağrı başına | JSON |
Zhihu | $0.028571 çağrı başına | JSON |
Zhihu | $0.014286 çağrı başına | JSON |
Zhihu | $0.014286 çağrı başına | JSON |
Zhihu | $0.014286 çağrı başına | JSON |
Kılavuzlar:Best Zhihu API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/zhihu/user-info adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.014286, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: userUrlToken (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Zhihu User Info, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Zhihu API erişimi için ayrıca başvuru yapmanız gerekmez.