> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# WeChat Articles API

> WeChat Official Account articles with title, link, source, summary and published date. Search by keyword or account.

`POST /v1/data/wechat/articles/run`

**Pricing:** $0.0045 per article ($4.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**queries** `string[]`

One or more search keywords. One request reads them all.

**accounts** `string[]`

One or more accounts. One request reads them all.

**sort** `string` (default: default)

Sort to use. Relevance by default.

Allowed values: `default` (Relevance), `latest` (Newest), `hot` (Most liked).

**publishedAfter** `date`

Published After as a date (YYYY-MM-DD).

**maxResults** `integer` (default: 100)

How many articles to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/wechat/articles/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": [
      "瑞幸咖啡"
    ],
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/wechat/articles/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": [
        "瑞幸咖啡"
    ],
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/wechat/articles/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": [
    "瑞幸咖啡"
  ],
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one article, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `articleUrl` | Article URL | url |
| `articleLink` | Article Link | url |
| `title` | Title | text |
| `source` | Source | text |
| `accountId` | Account ID | text |
| `summary` | Summary | text |
| `publishedAt` | Published At | text |
| `publishedTimestamp` | Published Timestamp | number |
| `imageUrl` | Image URL | image |
| `keyword` | Keyword | text |
| `pushPosition` | Push Position | number |
| `isPaid` | Is Paid | boolean |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "wechat/articles",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "isPaid": false,
      "accountId": "rmrbwx",
      "articleLink": "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667042998&idx=1&sn=6be28f0ebc37022b9df60f59342cab4f&chksm=bcb431adc150b6438b60b6205093c4eabf6aacb1c5fa...",
      "source": null,
      "articleUrl": "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667042998&idx=1&sn=6be28f0ebc37022b9df60f59342cab4f",
      "summary": null,
      "publishedTimestamp": 1793531898,
      "imageUrl": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/QaRWjMxooXslDE49ibFnKPht1v2iauZibhAWicDM5ibicF9vFohEK07BMCg1FlABKEDScf0JLTpLmLPzJNflf4lARCwfBFEAMAmaMhibx9wBxzEic5E/640?wx...",
      "keyword": null,
      "publishedAt": "2026-11-01T11:18:18.000Z",
      "pushPosition": 1,
      "title": "黄金饰品“平替”，全球爆单！"
    }
  ]
}
```

## Related APIs

For WeChat Channels videos use [`wechat/channels`](https://docs.mindcase.co/apis/wechat/channels).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.