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

> WeChat Channels videos with title, channel, verified flag, likes and published date. Search by keyword.

`POST /v1/data/wechat/channels/run`

**Pricing:** $0.01 per channel ($10.00 per 1,000).

## Request

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

**queries** `string[]` *required*

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

**sortBy** `string` (default: relevance)

Sort By to use. 综合 · 相关度优先 (Relevance) by default.

Allowed values: `relevance` (综合 · 相关度优先 (Relevance)), `latest` (最新 · 发布时间倒序 (Latest)), `hot` (最热 · 点赞数优先 (Most liked)).

**publishedWithin** `string` (default: all)

Published Within to use. 不限 (Any time) by default.

Allowed values: `all` (不限 (Any time)), `day` (最近一天 (Past day)), `week` (最近七天 (Past week)), `halfYear` (最近半年 (Past 6 months)).

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

How many videos to return in total. Defaults to 50; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/wechat/channels/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": [
      "人民日报",
      "人工智能",
      "iPhone 17"
    ],
    "sortBy": "relevance"
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/wechat/channels/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": [
        "人民日报",
        "人工智能",
        "iPhone 17"
    ],
    "sortBy": "relevance"
}},
)
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/channels/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": [
    "人民日报",
    "人工智能",
    "iPhone 17"
  ],
  "sortBy": "relevance"
} }),
});
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 channel, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `videoId` | Video ID | text |
| `title` | Title | text |
| `channel` | Channel | text |
| `channelVerified` | Channel Verified | boolean |
| `likesApprox` | Likes Approx | number |
| `thumbsUpApprox` | Thumbs Up Approx | number |
| `published` | Published | datetime |
| `durationS` | Duration S | number |
| `resolution` | Resolution | text |
| `thumbnail` | Thumbnail | image |
| `channelAvatar` | Channel Avatar | image |
| `sourceQuery` | Source Query | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "wechat/channels",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "channelVerified": false,
      "resolution": "1080x1920",
      "published": "2026-11-01T02:21:33Z",
      "thumbsUpApprox": 14,
      "likesApprox": 2,
      "videoId": "export/UzFfBgAAxK6AXA0fdEeAk8zT4DCK5FRtrUwr4tX67mOSeh44iw",
      "channel": "hw玩",
      "sourceQuery": "qzxwvkjh9381plm",
      "title": "11月第一天，悄悄许个愿：\n      希望我们都有数不尽的开心和好运❤️”",
      "thumbnail": "https://findermp.video.qq.com/251/20304/stodownload?encfilekey=2fG3V4WwQPm9CZjNXed3kEuqKwgKkfdKVNNuI8210wmPPkYx9CCLTnR5SxM6WGoDib3AwfKL9LOD2cMfVHGwFv42OTFUQ6...",
      "channelAvatar": "https://wx.qlogo.cn/finderhead/ver_1/RTMCicsfCNkicyzk8WEPv4pwsv47wRpbnzzfI9PAfwpewEggA1ZiaTSO1Z4jNeY9gibjNBiaK3e1J0wuic6VrytJjCQ3Icts6DLmqNMPMZsXm1cRg/132",
      "durationS": 17
    }
  ]
}
```

## Related APIs

For Official Account articles use [`wechat/articles`](https://docs.mindcase.co/apis/wechat/articles).


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