# WeChat Channels Stream Replay History API

> Returns a creator's broadcast replay list, including media download URLs and decryption keys. Supports cursor pagination via a finder username.

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

## Facts

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

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

## FAQ

### How do I use the WeChat Channels Stream Replay History API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-channels/v2/live-history 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 Stream Replay History 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 Stream Replay History API accept?

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

### What does the WeChat Channels Stream Replay History 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 Stream Replay History 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 Stream Replay History API

Fetch broadcast replay records for a creator by supplying their `username`. Output includes video download details and pagination indicators.

#### Use cases

- Archive recorded stream sessions from creator channels
- Extract video URLs and decryption keys for offline storage
- Monitor broadcast history and replay availability across channels

#### Request

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

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `username` | string | Yes | WeChat Channels finder username (`v2_…@finder` format). |
| `raw` | boolean | No | Optional, default True. |
| `flag` | integer | No | Optional fetch flag, default 12. |
| `last_buffer` | string | No | Optional pagination cursor (base64), leave empty for the first page; when `continue_flag` is truthy, pass the previous page's `last_buffer`. |

#### Notes

- The required `username` must follow the `v2_...@finder` format.
- For pagination, leave `last_buffer` empty on the first call, then pass the returned cursor when continuation is indicated.
- Set `raw` to false to receive a simplified parsed structure optimized 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 Collection Videos](/model/wechat-channels/v2/collection-videos): Returns videos contained within a WeChat Channels collection using a collection ID.
