# WeChat Official Accounts Mini Program search API (wechat_oa.mini_program_search)

- Canonical page: [https://everyinfra.com/en/wechat-oa-api/mini_program_search](https://everyinfra.com/en/wechat-oa-api/mini_program_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "mini_program_search", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 30, max 30 per call (larger values are capped)
- 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=mini_program_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–30) | no | 30 | The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values are accepted and capped at the maximum. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| name | Name of the object itself, for account, product and business capabilities. |
| description | Summary or description, usually shorter than text. |
| icon_url | platform-native meaning |
| username | Username (@handle). |
| is_minigame | 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": "mini_program_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": "mini_program_search",
        "params": {
            "keyword": "科技",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "mini_program_search",
  "results": [
    {
      "id": "wx3107f0a218053d99",
      "name": "科技侠智能锁",
      "description": "通过手机开锁",
      "icon_url": "http://mmbiz.qpic.cn/mmbiz_png/DtMRIk9mzbbKl312P5IibZh3tcdGXahozyGZyMxSLpIJGDgMtX73icAN9BmENBibeFE2xXibO46yoWVWrzpB1IpseQ/640?wx_fmt=png&wxfrom=200",
      "username": "g•••p",
      "is_minigame": false,
      "platform": "wechat_oa"
    },
    {
      "id": "wx674a0dc0f3ef4ff1",
      "name": "越弘科技",
      "description": "专注于服饰及周边行业15年，专为中小型服饰公司做ERP的公司",
      "icon_url": "http://mmbiz.qpic.cn/sz_mmbiz_png/lA9SBFBPsUsiawEyKsftgzKyoB31q17BGeUhyCC9ErRKzDbaM1tKd7xbqZ5KPL6ql60Ztnstk5EXGeCLm0VLPQQ/640?wx_fmt=png&wxfrom=200",
      "username": "g•••p",
      "is_minigame": false,
      "platform": "wechat_oa"
    }
  ],
  "count": 20,
  "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
