# WeChat Channels Collection Videos API

> Returns videos contained within a WeChat Channels collection using a collection ID. Provides video media URLs, decryption keys, and pagination cursors.

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

## Facts

- Provider: WeChat Channels
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-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/collection-videos` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `topic_id` | string | yes |  |
| `last_buffer` | any | no |  |
| `raw` | boolean | no |  |
| `topic` | any | no |  |
| `topic_type` | integer | no |  |
| `username` | any | no |  |

## FAQ

### How do I use the WeChat Channels Collection Videos API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-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 Collection Videos 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 Collection Videos API accept?

Required: topic_id (string). Optional: last_buffer (any), raw (boolean), topic (any), topic_type (integer) and username (any). The Parameters table and the Playground on this page list every field.

### What does the WeChat Channels Collection Videos API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. WeChat Channels Collection Videos 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 Collection Videos API

Fetch all videos listed in a specific WeChat Channels collection by providing `topic_id`. Supports cursor-based pagination via `last_buffer`.

#### Use cases

- List all videos organized within a specific creator collection.
- Obtain media download URLs and decryption keys for collection videos.
- Paginate through extended multi-video collections using cursor buffers.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/collection-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic_id": "<topic_id>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `topic_id` | string | Yes | Collection ID (numeric, from topic_id of fetch_user_collections) |
| `raw` | boolean | No | Optional, default True. |
| `topic` | string | No | Collection name (optional, improves hit rate) |
| `username` | string | No | Optional, creator finder username (`v2_…@finder` format), improves hit rate. |
| `topic_type` | integer | No | Optional, collection type, default 16 (align with the collection's `topic_type` from `fetch_user_collections`). |
| `last_buffer` | string | No | Optional pagination cursor (base64), leave empty for the first page; when `down_continue` is truthy, pass the previous page's `last_buffer`. |

#### Notes

- Obtain `topic_id` and `topic_type` from user collection lookups.
- Leave `last_buffer` empty for the first page and pass the returned buffer when further pages exist.
- Set `raw` to false to receive a simplified structure formatted for media downloads.

#### 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 Stream Detail](/model/wechat-channels/v2/live-detail): Returns live-room details including anchor info, status, online count, and replay data using a live ID.
