# Zhihu Details API (zhihu.profile)

- Canonical page: https://everyinfra.com/en/zhihu-api/profile
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "zhihu", "action": "profile", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=zhihu&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | Author avatar URL; on comment results, the commenter's avatar. |
| author_bio | Author bio as written on Zhihu. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_verified | Whether the author is verified. |
| author_verification_label | Verification description of the author, such as a profession or institution. |
| answer_count | Answer count: on profile, the answers the author has written; on hot_list, the answers under the question. |
| article_count | platform-native meaning |
| received_upvote_count | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "zhihu",
  "action": "profile",
  "params": {
    "url": "https://www.zhihu.com/people/zhihuadmin"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "zhihu",
        "action": "profile",
        "params": {
            "url": "https://www.zhihu.com/people/zhihuadmin",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "zhihu",
  "action": "profile",
  "results": {
    "answer_count": 86,
    "article_count": 832,
    "platform": "zhihu"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=zhihu
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
