# WeChat Official Accounts Account search API (wechat_oa.account_search)

- Canonical page: [https://everyinfra.com/en/wechat-oa-api/account_search](https://everyinfra.com/en/wechat-oa-api/account_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "account_search", "params": {...}}
- Price: $0.016 per call ($16 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 400 per call
- 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_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats. |
| limit | integer (1–400) | no | 20 | The most rows to return in this call, an integer from 1 to 400. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## 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. |
| alias | platform-native meaning |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| verify_flag | platform-native meaning |
| 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_search",
  "params": {
    "keyword": "科技"
  }
}'
```

```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_search",
        "params": {
            "keyword": "科技",
        },
    },
    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; the list keeps the first 2 of 14. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "account_search",
  "results": [
    {
      "ghid": "gh_021a2971bb29",
      "name": "科•••兽",
      "description": "•••",
      "alias": "KeJiShouX",
      "avatar_url": "http://mmbiz.qpic.cn/•••",
      "verify_flag": 1,
      "biz": "•••",
      "platform": "wechat_oa"
    },
    {
      "ghid": "gh_1306e540f321",
      "name": "惠•••技",
      "description": "•••",
      "alias": "",
      "avatar_url": "http://mmecoa.qpic.cn/•••",
      "verify_flag": 1,
      "biz": "•••",
      "platform": "wechat_oa"
    }
  ],
  "count": 14,
  "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
