# WeChat Channels In-Channel Video Search API

> Search one WeChat Channels creator's videos by keyword, within that channel only. Returns matching video IDs and titles.

Source: https://www.sandbase.ai/apis/wechat-channels/v2/search-channel-videos
API reference: https://www.sandbase.ai/apis/wechat-channels/v2/search-channel-videos/docs

## Facts

- Provider: WeChat Channels
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, wechat channels
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `username` | string | yes |  |
| `raw` | boolean | no |  |

## FAQ

### How do I use the WeChat Channels In-Channel Video Search API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the WeChat Channels In-Channel Video Search API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the WeChat Channels In-Channel Video Search API accept?

Required: keyword (string) and username (string). Optional: raw (boolean). The Parameters table and the Playground on this page list every field.

### What does the WeChat Channels In-Channel Video Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a WeChat Channels developer account or API key?

No. WeChat Channels In-Channel Video Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for WeChat Channels API access separately.

## README

### WeChat Channels In-Channel Video Search API

Pass a finder username and a keyword to search only that creator's published Channels videos.

#### Use cases

- Find a specific video in a large channel.
- Check whether a creator has covered a topic or product.
- Build topic archives for media accounts.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder", "keyword": "永乐大典", "raw": false}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | Yes | Keyword to search within this channel (1-100 chars) |
| `username` | string | Yes | Creator finder username (`v2_…@finder` format). |
| `raw` | boolean | No | Optional, default True. |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "count": 2,
  "continue_flag": 0,
  "items": [
    {
      "type": "video",
      "doc_id": "finderobjv03bpeXe0scUqXKV+shl…",
      "title": "很多人小时候都读过百科全书。明《永乐大典》被誉为“有史以来规模最大的百科全书”。它命运多舛，散佚四方，如今正被我们一点…"
    }
  ]
}
```

#### Related APIs

- [WeChat Channels ID to Username](/model/wechat-channels/v2/channel-id-to-username): Convert a public WeChat Channels Channel ID (sph… short ID) into the finder username (v2_…@finder) required by the other WeChat Channels APIs.
- [WeChat Channels Account Info](/model/wechat-channels/v2/channel-info): Get the public "More info" panel of a WeChat Channels account: Channel ID, IP and profile location, and verification details such as entity type, service categ…
- [WeChat Channels User Profile](/model/wechat-channels/v2/user-profile): Get a WeChat Channels creator's profile and stats: nickname, bio, region, follower, video, like and favorite counts, and linked accounts.
