# WeChat Official Accounts Account details API (wechat_oa.account_profile)

- Canonical page: [https://everyinfra.com/en/wechat-oa-api/account_profile](https://everyinfra.com/en/wechat-oa-api/account_profile?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "account_profile", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

WeChat Official Account details reads the public profile of the account named in `account`: its name, description, avatar, account type and two identifiers, `account_id` and `biz`. It tells you which account you are dealing with and what kind it is, for teams that vet accounts before a partnership, keep a directory of media accounts, or need a fixed key to join articles and comments to the account that published them.

`account_type` tells subscription accounts apart from service accounts, so you can filter or compare the two kinds separately. `description` is the account's own short introduction, useful for classifying accounts by topic, and `name` is the display name, which is not the same thing as the WeChat ID you may have passed in. `biz` is the __biz value carried in the account's article links, which makes it the field that ties article URLs back to this profile.

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| account | not declared | yes | not declared | Identifies the target WeChat Official Account using its WeChat ID, raw ID (starting with gh_), or a resolvable account/article URL. It does not accept personal WeChat IDs. Used by account_principal (for publisher profile metadata), account_articles (for historical post lists), and account_today_articles (for posts published today). |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| account_id | Official Account ID (its WeChat ID). |
| name | Name of the object itself, for account, product and business capabilities. |
| account_type | platform-native meaning |
| description | Summary or description, usually shorter than text. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| biz | 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": "wechat_oa",
  "action": "account_profile",
  "params": {
    "account": "36氪"
  }
}'
```

```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_oa",
        "action": "account_profile",
        "params": {
            "account": "36氪",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T19:16:38Z. `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": "wechat_oa",
  "action": "account_profile",
  "results": {
    "account_id": "gh_240fbf8b33e4",
    "name": "36氪",
    "account_type": "订阅号",
    "platform": "wechat_oa"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Which identifier should I use for `account`?

The gh_ raw ID is the most precise choice, since it is unique within WeChat. The account's WeChat ID, or a link that resolves to the account such as one of its article URLs, also works. A personal WeChat ID belongs to an individual user rather than an Official Account, so it cannot be looked up here.

### What is `biz` used for?

`biz` is the value of the __biz parameter that appears in the account's article links on mp.weixin.qq.com. Store it with the profile: when you later collect article links from search results or shares, the __biz in each link tells you which account published it without relying on the display name.

### How do I find out who owns an account?

This capability returns the public profile only. Pass the same `account` value to the WeChat Account owner capability for the company or person registered behind the account, and to Account articles or Today's account articles for what the account publishes.

## Also

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