# WeChat Official Accounts Account owner API (wechat_oa.account_principal)

- Canonical page: [https://everyinfra.com/en/wechat-oa-api/account_principal](https://everyinfra.com/en/wechat-oa-api/account_principal?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "account_principal", "params": {...}}
- Price: $0.005556 per call ($5.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=wechat_oa&action=account_principal

## 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). |
| ghid | platform-native meaning |
| name | Name of the object itself, for account, product and business capabilities. |
| description | Summary or description, usually shorter than text. |
| company_name | platform-native meaning |
| owner_name | platform-native meaning |
| customer_type | platform-native meaning |
| verify_status | platform-native meaning |
| verify_type | platform-native meaning |
| verified_at | platform-native meaning |
| registered_country | platform-native meaning |
| registered_at | platform-native meaning |
| is_overseas | platform-native meaning |
| last_login_province | platform-native meaning |
| authorized_agents | 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_principal",
  "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_principal",
        "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_principal",
  "results": {
    "ghid": "gh_240fbf8b33e4",
    "name": "36氪",
    "company_name": "北京多氪信息科技有限公司",
    "verify_status": true,
    "platform": "wechat_oa"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
