Zhihu User Info API (V1)
Retrieve the public profile for a Zhihu user identified by URL token. Supply a user URL token. Sample fields include follower counts and headlines. Use it for account discovery and creator research. The GET request schema also lists userUrlToken.
- Selected price
- $0.015385 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Zhihu User Info API (V1)
Prepare your request, then continue with your agent.
Selected price
$0.015385 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
codeintegerdataobjectai_assistant_infonullallow_messagebooleananswer_countintegerarticles_countintegeravailable_medals_countintegeravatar_urlstringavatar_url_templatestringbadgeunknown[]badge_v2objectdetail_badgesunknown[]iconstringmerged_badgesunknown[]night_iconstringtitlestring
employmentsunknown[]extranullfollower_countintegerfollower_count_numstringfollower_count_textstringfollower_count_unitstringgenderintegerhas_agent_contentbooleanhas_applying_columnbooleanheadlinestringheadline_renderstringidstringip_infostringis_advertiserbooleanis_blockingbooleanis_followedbooleanis_followingbooleanis_new_renamebooleanis_orgbooleanis_realnamebooleankvip_infoobjectis_vipboolean
namestringorg_verify_statusnullproject_countintegertypestringurlstringurl_tokenstringuse_default_avatarbooleanuser_typestringvip_infoobjectentrance_v2nullis_vipbooleanrename_await_daysintegerrename_daysstringrename_frequencyintegervip_typeinteger
messagenullrecordTimenull
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
code?: number;
data?: {
ai_assistant_info?: null;
allow_message?: boolean;
answer_count?: number;
articles_count?: number;
available_medals_count?: number;
avatar_url?: string;
avatar_url_template?: string;
badge?: Array<unknown>;
badge_v2?: {
detail_badges?: Array<unknown>;
icon?: string;
merged_badges?: Array<unknown>;
night_icon?: string;
title?: string;
};
employments?: Array<unknown>;
extra?: null;
follower_count?: number;
follower_count_num?: string;
follower_count_text?: string;
follower_count_unit?: string;
gender?: number;
has_agent_content?: boolean;
has_applying_column?: boolean;
headline?: string;
headline_render?: string;
id?: string;
ip_info?: string;
is_advertiser?: boolean;
is_blocking?: boolean;
is_followed?: boolean;
is_following?: boolean;
is_new_rename?: boolean;
is_org?: boolean;
is_realname?: boolean;
kvip_info?: {
is_vip?: boolean;
};
name?: string;
org_verify_status?: null;
project_count?: number;
type?: string;
url?: string;
url_token?: string;
use_default_avatar?: boolean;
user_type?: string;
vip_info?: {
entrance_v2?: null;
is_vip?: boolean;
rename_await_days?: number;
rename_days?: string;
rename_frequency?: number;
vip_type?: number;
};
};
message?: null;
recordTime?: null;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
justoneapiCurrent Zhihu User Info API (V1) · GET · View API reference | $0.015385 / call | — | —successP50— |
- Unit price
- $0.015385
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $1.5385
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1?userUrlToken=%3CREPLACE_USERURLTOKEN%3E' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
userUrlToken | URL query parametersquery | string | Yes | Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"code": 0,
"data": {
"ai_assistant_info": null,
"allow_message": true,
"answer_count": 9,
"articles_count": 87,
"available_medals_count": 0,
"avatar_url": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_xl.jpg?source=32738c0c&needBackground=1",
"avatar_url_template": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_l.jpg?source=32738c0c&needBackground=1",
"badge": [],
"badge_v2": {
"detail_badges": [],
"icon": "",
"merged_badges": [],
"night_icon": "",
"title": ""
},
"employments": [],
"extra": null,
"follower_count": 2830,
"follower_count_num": "2830",
"follower_count_text": "2830",
"follower_count_unit": "",
"gender": 1,
"has_agent_content": false,
"has_applying_column": false,
"headline": "IT工程师",
"headline_render": "IT工程师",
"id": "bd76ac15154a7024a8adbcc2997efc8d",
"ip_info": "IP 属地未知",
"is_advertiser": false,
"is_blocking": false,
"is_followed": false,
"is_following": false,
"is_new_rename": false,
"is_org": false,
"is_realname": true,
"kvip_info": {
"is_vip": false
},
"name": "洺河",
"org_verify_status": null,
"project_count": 0,
"type": "people",
"url": "https://www.zhihu.com/api/v4/people/ming-he-43-93",
"url_token": "ming-he-43-93",
"use_default_avatar": false,
"user_type": "people",
"vip_info": {
"entrance_v2": null,
"is_vip": false,
"rename_await_days": 0,
"rename_days": "0",
"rename_frequency": 0,
"vip_type": 0
}
},
"message": null,
"recordTime": null
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Zhihu User Info API (V1)
Retrieve the public profile for a Zhihu user identified by URL token. Supply a user URL token. Sample fields include follower counts and headlines. Use it for account discovery and creator research. The GET request schema also lists userUrlToken.
## Available implementations
justoneapi · Zhihu User Info API (V1): https://openany.si/markets/apis/capabilities/zhihu-user-info-api-v1?offering=592e79b2-7cf3-4ee5-afe3-665fd27e0d40 · $0.015385 / call
## Selected API contract
Documentation: https://openany.si/apis/592e79b2-7cf3-4ee5-afe3-665fd27e0d40
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1
Price: $0.015385 / call
Provider: justoneapi
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1?userUrlToken=%3CREPLACE_USERURLTOKEN%3E' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Zhihu User Info API (V1)",
"endpoint": "https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.",
"location": "query",
"name": "userUrlToken",
"nullable": false,
"required": true,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "15385",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Historical response; independent request temp",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"userUrlToken": "<REPLACE_USERURLTOKEN>"
}
},
"response_body": {
"code": 0,
"data": {
"ai_assistant_info": null,
"allow_message": true,
"answer_count": 9,
"articles_count": 87,
"available_medals_count": 0,
"avatar_url": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_xl.jpg?source=32738c0c&needBackground=1",
"avatar_url_template": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_l.jpg?source=32738c0c&needBackground=1",
"badge": [],
"badge_v2": {
"detail_badges": [],
"icon": "",
"merged_badges": [],
"night_icon": "",
"title": ""
},
"employments": [],
"extra": null,
"follower_count": 2830,
"follower_count_num": "2830",
"follower_count_text": "2830",
"follower_count_unit": "",
"gender": 1,
"has_agent_content": false,
"has_applying_column": false,
"headline": "IT工程师",
"headline_render": "IT工程师",
"id": "bd76ac15154a7024a8adbcc2997efc8d",
"ip_info": "IP 属地未知",
"is_advertiser": false,
"is_blocking": false,
"is_followed": false,
"is_following": false,
"is_new_rename": false,
"is_org": false,
"is_realname": true,
"kvip_info": {
"is_vip": false
},
"name": "洺河",
"org_verify_status": null,
"project_count": 0,
"type": "people",
"url": "https://www.zhihu.com/api/v4/people/ming-he-43-93",
"url_token": "ming-he-43-93",
"use_default_avatar": false,
"user_type": "people",
"vip_info": {
"entrance_v2": null,
"is_vip": false,
"rename_await_days": 0,
"rename_days": "0",
"rename_frequency": 0,
"vip_type": 0
}
},
"message": null,
"recordTime": null
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Historical response; independent request temp
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
userUrlToken- Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/justoneapi/api/zhihu/get-user-info/v1?userUrlToken=%3CREPLACE_USERURLTOKEN%3E' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "code": 0, "data": { "ai_assistant_info": null, "allow_message": true, "answer_count": 9, "articles_count": 87, "available_medals_count": 0, "avatar_url": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_xl.jpg?source=32738c0c&needBackground=1", "avatar_url_template": "https://pic1.zhimg.com/v2-60386d319ef90da6904da4fe604bc48f_l.jpg?source=32738c0c&needBackground=1", "badge": [], "badge_v2": { "detail_badges": [], "icon": "", "merged_badges": [], "night_icon": "", "title": "" }, "employments": [], "extra": null, "follower_count": 2830, "follower_count_num": "2830", "follower_count_text": "2830", "follower_count_unit": "", "gender": 1, "has_agent_content": false, "has_applying_column": false, "headline": "IT工程师", "headline_render": "IT工程师", "id": "bd76ac15154a7024a8adbcc2997efc8d", "ip_info": "IP 属地未知", "is_advertiser": false, "is_blocking": false, "is_followed": false, "is_following": false, "is_new_rename": false, "is_org": false, "is_realname": true, "kvip_info": { "is_vip": false }, "name": "洺河", "org_verify_status": null, "project_count": 0, "type": "people", "url": "https://www.zhihu.com/api/v4/people/ming-he-43-93", "url_token": "ming-he-43-93", "use_default_avatar": false, "user_type": "people", "vip_info": { "entrance_v2": null, "is_vip": false, "rename_await_days": 0, "rename_days": "0", "rename_frequency": 0, "vip_type": 0 } }, "message": null, "recordTime": null }