# 微信视频号 主页或对象详情 API (wechat_channels.profile)

- Canonical page: https://everyinfra.com/wechat-channels-api/profile
- Endpoint: POST /api/v1/social with {"platform": "wechat_channels", "action": "profile", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed 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=wechat_channels&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | 账号 ID，形如 v2_…@finder，取自 user_posts 或 video 返回行的 author_username；也可以传视频号主页上 sph 开头的视频号 ID（例如 sphi9BjV8GK0Zsl）；不是昵称，搜索结果里没有。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | 视频号账号 ID，形如 v2_…@finder（profile），和请求的一致；可作为 user_posts 的 username。 |
| display_name | 显示名，可能与 username 不同。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| region | 账号资料上显示的地区（profile），按平台原文（如 Beijing）。 |
| follower_count | 粉丝数（profile）。视频号主页一般不公开粉丝数，拿不到时没有这个字段（不是 0）。 |
| post_count | 账号发布的作品数（profile）。 |
| collection_count | 账号建的合集数（profile）；没建合集时没有。 |
| live_duration_hours | 账号资料里的直播时长，单位小时（profile），按平台给的原值。 |
| verified_reason | 认证说明（profile）；没认证时没有这个字段。 |
| linked_accounts | 和这个视频号关联的其他微信账号（profile），每项 name 名称、type 类型（如 公众号）；没有关联账号时没有。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "wechat_channels",
  "action": "profile",
  "params": {
    "username": "v2_060000231003b20faec8c7ea8d11c3d4c907e83db0775f87c9449acd6a89298e462485cc23a8@finder"
  }
}'
```

```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": "wechat_channels",
        "action": "profile",
        "params": {
            "username": "v2_060000231003b20faec8c7ea8d11c3d4c907e83db0775f87c9449acd6a89298e462485cc23a8@finder",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "wechat_channels",
  "action": "profile",
  "results": {
    "username": …,
    "display_name": …,
    "bio": …,
    "avatar_url": …,
    "region": …,
    "follower_count": …,
    "post_count": …,
    "collection_count": …,
    "live_duration_hours": …,
    "verified_reason": …,
    "linked_accounts": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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