# WeChat Channels video download API

Give a WeChat Channels video by its ID, share link or a search result's export/ ID and get the video file's address (with width, height, size and length), the cover, and the method and key that decrypt it: only the first 131072 bytes of a Channels file are encrypted, and once decrypted as decrypt says, it is a playable MP4. Use the address and key of one answer together; no headers are needed. Once the address stops working, another call gives a new pair. One object a call; $0.0200 per call. Errors and timeouts are not charged.

- Endpoint: `GET https://onefeedapi.com/v1/wechat_channels/videos/media/get`
- ID: `wechat_channels.videos.media.get`
- Also known as: wechat channels video download, wechat channels downloader, channels video decrypt, weixin channels mp4, wechat channels video url, wechat channels play url
- Price: $0.0200 / call
- Live status is not on this page, which is a snapshot. Read it with `GET https://onefeedapi.com/v1/catalog/status`
- 30-day availability 100%: the share of time the endpoint was serving calls
- Returns: 1 object, one media files object
- Returns the standard media files object, the same on every platform
- [Run it in the Playground](https://onefeedapi.com/console/playground/?capability=wechat_channels.videos.media.get&params=%7B%22id%22%3A%2214559898883113486609%22%7D)
- In Chinese: [视频号视频下载（文件地址和解密）API](https://onefeedapi.com/zh/apis/wechat_channels/videos/media/get/)

## What you get

The first 4 rows of a response recorded 2026-10-12 19:04 UTC.

| Field | Value |
| --- | --- |
| type | video |
| duration | 30 |
| decrypt.method | isaac64_xor_head |
| decrypt.bytes | 131,072 |

## Parameters

| Parameter | Type | required | Description |
| --- | --- | --- | --- |
| `id` | text | give exactly one of `id`, `url`, `export_id` | The video's ID, a string of digits: the id a video list gives. Example: `14559898883113486609`. |
| `url` | text | give exactly one of `id`, `url`, `export_id` | The video's share link, starting with weixin.qq.com/sph/. Example: `https://weixin.qq.com/sph/ABgJVPnSSu`. Short link: `https://weixin.qq.com/sph/ABgJVPnSSu`. The link has to be opened to learn what it points at, so the result cannot be checked against it. |
| `export_id` | text | give exactly one of `id`, `url`, `export_id` | The id of a wechat_channels.videos.search result, starting with export/. It expires: use it soon after the search. The post_id returned is the video's numeric ID. Example: `export/UzFfBgAAxJeLPEsjEjWuk8zT4DCKThrNP5lzaPLJoEvz7FZtxw`. |
| `view` | text |  | How much of each item to return. All three cost the same. Values: `compact`, `standard` (default), `full`. |
| `fields` | list of text |  | Return only these fields. Each by its path, such as `author.name`. |

## Returned fields

`data.item` is one media files object. Stable: fields are only ever added.

Three views: `compact` (the most used fields, long text cut short), `standard` (the default: every standard field) and `full` (adds `ext`, the platform's own fields). A field is in the view named and in every larger one.

| Field | Type | Description | From view | This endpoint |
| --- | --- | --- | --- | --- |
| `post_id` | text | ID of the post the files belong to: the same as the detail endpoint's id. | `compact` | Yes |
| `type` | text | Content format: video, or image (a picture post or photo set). Values: `video`, `image`. | `compact` | Yes |
| `title` | text | Title; the caption where the platform has no separate title. | `compact` | Yes |
| `author` | object | Author. | `compact` | Yes |
| `author.id` | text | Author's account ID. | `compact` | Yes |
| `author.name` | text | Author's display name. | `compact` | Yes |
| `duration` | number | Length of the video, in seconds; a picture post has none. | `compact` | Yes |
| `files` | list of object | Every file, one entry each: the video in each quality, the audio, the cover, each picture, the subtitles. | `compact` | Yes |
| `files[].kind` | text | What the file is: video, audio (the background music, or a sound track served apart from the picture), cover, image (a picture of the post), subtitle. Values: `video`, `audio`, `cover`, `image`, `subtitle`. | `compact` | Yes |
| `files[].index` | integer | Place of a picture in the post, from 1; null for other files. | `compact` | The platform has none |
| `files[].quality` | text | Quality, as the platform names it or by the short side in pixels, such as 720p or 1080p; null where there is none. | `compact` | Yes |
| `files[].width` | integer | Width, in pixels. | `compact` | Yes |
| `files[].height` | integer | Height, in pixels. | `compact` | Yes |
| `files[].codec` | text | Codec, such as h264, h265, h266, av1 or aac; ByteDance's own BVC2 (Douyin, TikTok) is bytevc2, which many players cannot play, so pick an h264 or h265 file for a common format; null where the platform does not say. Values: `h264`, `h265`, `h266`, `av1`, `aac`, `bytevc2`. | `compact` | Not provided here |
| `files[].bitrate` | integer | Bit rate, in bits a second. | `compact` | Not provided here |
| `files[].size` | integer | File size, in bytes. | `compact` | Yes |
| `files[].format` | text | File format: mp4, m4s (Bilibili's separate picture and sound streams), mp3, m4a, jpeg, png, webp, heic, gif, kvif (Kuaishou's image format) or srt; null where the address does not say. Values: `mp4`, `m4s`, `mp3`, `m4a`, `jpeg`, `png`, `webp`, `heic`, `gif`, `kvif`, `srt`. | `compact` | Yes |
| `files[].duration` | number | Length of an audio or video file, in seconds. | `compact` | Yes |
| `files[].title` | text | Name of the background music; null for other files. | `compact` | The platform has none |
| `files[].lang` | text | Language code of the subtitles, such as zh-CN or en-US. | `compact` | The platform has none |
| `files[].watermark` | yes/no | Whether the file carries the platform's watermark. | `compact` | Not provided here |
| `files[].url` | link | Address of the file. | `compact` | Yes |
| `files[].backup_urls` | list of link | Other addresses of the same file, for when the main one fails. | `standard` | Not provided here |
| `files[].expires_at` | time | When the address expires, as its signature says; null where the signature does not say. Once it has, call again for new addresses. | `compact` | Not provided here |
| `files[].headers` | object | Request headers the address has to be fetched with, keyed by the header's name in lower case; absent on platforms whose addresses need none. | `compact` | The platform has none |
| `files[].headers.referer` | text | The Referer to send. | `compact` | The platform has none |
| `files[].stable_url` | link | The platform's play address, which redirects to the file's address of the moment and lasts longer than url; null where there is none. | `compact` | The platform has none |
| `files[].live` | object | The video of a live photo; null for a picture that is not one. | `compact` | The platform has none |
| `files[].live.url` | link | Address of the live photo's video. | `compact` | The platform has none |
| `files[].live.duration` | number | Length of the live photo's video, in seconds. | `compact` | The platform has none |
| `decrypt` | object | How to decrypt the files, where they are encrypted; null where they are not. | `compact` | Yes |
| `decrypt.method` | text | The method. isaac64_xor_head: seed ISAAC64 with key, take each 64-bit output as 8 big-endian bytes for a key stream as long as bytes says, and XOR it over the start of the file; the rest is left as it is. Values: `isaac64_xor_head`. | `compact` | Yes |
| `decrypt.key` | text | The key, good only for the addresses of the same answer. | `compact` | Yes |
| `decrypt.bytes` | integer | How many bytes at the start of the file are encrypted. | `compact` | Yes |
| `approximate` | list of object | Which numbers of this item are approximate or lower bounds; absent when all are exact. | `compact` | Yes |
| `approximate[].field` | text | Path of the field, such as metrics.views. | `compact` | Yes |
| `approximate[].kind` | text | Approximate, or a lower bound. Values: `approximate`, `lower_bound`. | `compact` | Yes |

A field with no value on an item is `null`. A field this endpoint cannot give is left out and listed in `meta.unavailable`.

Typical size of one item: `compact` 2.1 KB, `standard` 2.1 KB, `full` 2.1 KB (measured on the response recorded 2026-10-12 19:04 UTC).

## Paging

One object per call: there is nothing to page.

## When you are charged

| Case | Charged |
| --- | --- |
| A result with data | $0.0200, once per call |
| Invalid parameters, a failure or a timeout | not charged |
| The most one call can cost | $0.0200 (send `X-Max-Price` to refuse anything above your own limit) |

Prices as read 2026-11-22 09:40 UTC, under price book 21, in effect since 2026-11-21 15:05 UTC; the Playground reads the price in force before a run.

## If the object does not exist

The answer is 404 `not_found`. `charged` and `amount` in the body say what this one cost. `reason` says which: `not_found` (it does not exist) or `private_or_deleted`.

## Errors

Every error has the same structure: `code`, `message`, `charged`, `retry`, `retry_after_seconds`, `param`, `docs_url`.

| HTTP | Code | Meaning | Charged | Retry |
| --- | --- | --- | --- | --- |
| 400 | `invalid_params` | A parameter is invalid | As the answer's charged field says | After a fix |
| 400 | `request_not_served` | This combination of parameters cannot be served at present | No | After a fix |
| 400 | `max_price_exceeded` | The most this call could cost is above the limit you set | No | After a fix |
| 401 | `unauthorized` | No credential was sent, or it is invalid, disabled or expired | No | No |
| 402 | `insufficient_balance` | The balance is too low | No | After a fix |
| 402 | `key_budget_exceeded` | This key's spending limit does not cover the call | No | After a fix |
| 402 | `run_budget_exceeded` | This run's amount or call limit does not cover the call | No | No |
| 403 | `account_suspended` | The account is suspended | No | No |
| 403 | `forbidden` | This credential may not use that option | No | No |
| 403 | `key_scope_denied` | This key may not call this endpoint | No | No |
| 404 | `not_found` | The object does not exist, is private or was deleted | As the answer's charged field says | No |
| 404 | `run_not_found` | No run under this run ID | No | No |
| 409 | `call_in_progress` | The call under this idempotency key is still running; ask again with the same key shortly | No | With the same idempotency key |
| 409 | `idempotency_conflict` | This idempotency key was used for a different request | No | After a fix |
| 410 | `run_expired` | This run has expired and starts no more calls | No | No |
| 429 | `rate_limited` | Too many requests, or too many calls in progress | No | Yes |
| 429 | `cost_cap_exceeded` | This account's allowance for today is used up | No | Yes |
| 429 | `uncharged_cost_limit` | Too many of this account's calls today returned nothing and were not charged; endpoints of this kind can be called again tomorrow (UTC) | No | Yes |
| 500 | `settlement_unknown` | Whether this call settled is not known; ask again with the same idempotency key, or look it up by request ID | Unknown: look the call up | With the same idempotency key |
| 500 | `internal_error` | The service failed | No | Yes |
| 502 | `upstream_failed` | No result came back this time and nothing was charged; retry shortly | No | Yes |
| 503 | `upstream_busy` | Busy just now; retry shortly | No | Yes |
| 503 | `capability_paused` | This endpoint is paused | No | Yes |
| 503 | `overloaded` | The service is busy; retry shortly | No | Yes |
| 504 | `timeout` | The data did not arrive in time; retry with the same idempotency key | No | Yes |

[All error codes](https://onefeedapi.com/docs/errors/)

## Request

The key is read from the environment; no key is ever written into a page.

### cURL

```bash
curl -G "https://onefeedapi.com/v1/wechat_channels/videos/media/get" \
  --data-urlencode "id=14559898883113486609" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
```

### Python

```python
# pip install onefeedapi
from onefeedapi import OneFeedAPI

dx = OneFeedAPI()  # reads ONEFEED_API_KEY
result = dx.wechat_channels.videos.media.get(id="14559898883113486609")
print(result["data"]["item"])
```

### TypeScript

```typescript
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const result = await dx.wechat_channels.videos.media.get({ id: "14559898883113486609" });
console.log(result.data.item);
```

### CLI

```bash
onefeedapi call wechat_channels.videos.media.get id=14559898883113486609
```

### MCP

```json
{
  "mcpServers": {
    "onefeedapi": {
      "type": "http",
      "url": "https://onefeedapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ONEFEED_API_KEY}"
      }
    }
  }
}
```

Add this to your MCP client, then ask your agent to call `wechat_channels.videos.media.get`.

## Responses

### 200

From a response recorded 2026-10-12 19:04 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

Size as sent: 2.7 KB in the standard view (2.7 KB compact, 2.7 KB full).

```jsonc
{
  "code": "ok",
  "request_id": "d3eaa234-4ceb-45a8-a6ab-c9b37fd52ca7",
  "data": {
    "item": {
      "post_id": "14833772479643579233",
      "type": "video",
      "title": "实测一个月周末露营，结论有点意外",
      "author": {
        "id": "v2_060000231003b20f64765bfb093d8f881405da47994648edacfebae30a3cee9664717acdb4@finder",
        "name": "认真生活的阿雅"
      },
      "duration": 30,
      "files": [
        {
          "kind": "video",
          "quality": "1080p",
          "width": 1080,
          "height": 1920,
          "size": 23054585,
          "format": "mp4",
          "duration": 30,
          "url": "https://onefeedapi.com/examples/14008566095158451105"
        },
        {
          "kind": "cover",
          "quality": null,
          "width": null,
          "height": null,
          "size": null,
          "format": null,
          "duration": null,
          "url": "https://onefeedapi.com/examples/14875544654647004266"
        }
      ],
      "decrypt": {
        "method": "isaac64_xor_head",
        "key": "把周末露营从头到尾讲清楚，看完少走弯路",
        "bytes": 131072
      }
    }
  },
  "warnings": [],
  "meta": {
    "capability": "wechat_channels.videos.media.get",
    "result_status": "complete",
    "fetched_at": "2026-10-12T19:04:01.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "files.index": "platform",
      "files.codec": "capability",
      "files.bitrate": "capability",
      "files.title": "platform",
      "files.lang": "platform",
      "files.watermark": "capability",
      "files.backup_urls": "capability",
      "files.expires_at": "capability",
      "files.headers": "platform",
      "files.stable_url": "platform",
      "files.live": "platform"
    },
    "billing": {
      "amount": "0.02",
      "currency": "USD",
      "balance_after": "9.98"
    }
  }
}
```

### 400

An example written to the specification, not a recorded response.

```json
{
  "code": "invalid_params",
  "request_id": "b2bbddd1-e02d-4265-b605-c206aefb2533",
  "message": "A parameter is invalid",
  "message_zh": "参数不合法",
  "charged": false,
  "retry": "after_fix",
  "retry_after_seconds": null,
  "param": null,
  "problems": ["give exactly one of id, url, export_id"],
  "docs_url": "https://onefeedapi.com/docs/errors#invalid_params"
}
```

### 402

An example written to the specification, not a recorded response.

```json
{
  "code": "insufficient_balance",
  "request_id": "5d06902c-055f-4e67-9218-9340e8ad7590",
  "message": "The balance is too low",
  "message_zh": "余额不足",
  "charged": false,
  "retry": "after_fix",
  "retry_after_seconds": null,
  "param": null,
  "required": "0.02",
  "available": "0",
  "top_up_url": "https://onefeedapi.com/console/billing/?amount=10",
  "next_step": "The balance does not cover this call ($0.02). Top up at top_up_url: $10 at least, about 500 calls at this price; Alipay or a card, and the balance never expires. Then send the same request again, unchanged. Nothing was charged for this one.",
  "next_step_zh": "余额不够这次调用（$0.02）。到 top_up_url 充值：最低 $10，按这次的价格约够 500 次；支付宝、银行卡都能付，余额不过期。到账后把同一个请求原样再发一次。这次没有扣钱。",
  "docs_url": "https://onefeedapi.com/docs/errors#insufficient_balance"
}
```

### 404

An example written to the specification, not a recorded response.

```json
{
  "code": "not_found",
  "request_id": "cd66020e-cb6c-40b3-a69a-73fc658a7128",
  "message": "The object does not exist, is private or was deleted",
  "message_zh": "对象不存在、私密或已删除",
  "charged": true,
  "amount": "0.02",
  "retry": "no",
  "retry_after_seconds": null,
  "param": null,
  "reason": "not_found",
  "docs_url": "https://onefeedapi.com/docs/errors#not_found"
}
```

### 502

An example written to the specification, not a recorded response.

```json
{
  "code": "upstream_failed",
  "request_id": "0ac1f23a-f1a3-44ef-a3f5-566a0b98055d",
  "message": "No result came back this time and nothing was charged; retry shortly",
  "message_zh": "这次没有取到结果，没有扣费，可以稍后重试",
  "charged": false,
  "retry": "yes",
  "retry_after_seconds": null,
  "param": null,
  "docs_url": "https://onefeedapi.com/docs/errors#upstream_failed"
}
```

[This example as a JSON file](https://onefeedapi.com/apis/wechat_channels/videos/media/get.example.json)

## Use it in your AI

`onefeedapi setup` gives the agents on your machine (Claude Code, Codex, Cursor) the OneFeedAPI MCP server and the base skill. The key is read from ONEFEED_API_KEY; none is written into a file.

MCP server: `https://onefeedapi.com/mcp`. The entry for your client is under MCP in the request examples of this page; then ask your agent to call `wechat_channels.videos.media.get`.

Or paste this to any AI:

> Read https://onefeedapi.com/apis/wechat_channels/videos/media/get.md and help me use the OneFeedAPI endpoint wechat_channels.videos.media.get (WeChat Channels video download).

[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fonefeedapi.com%2Fapis%2Fwechat_channels%2Fvideos%2Fmedia%2Fget.md%20and%20help%20me%20use%20the%20OneFeedAPI%20endpoint%20wechat_channels.videos.media.get%20%28WeChat%20Channels%20video%20download%29.) · [Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fonefeedapi.com%2Fapis%2Fwechat_channels%2Fvideos%2Fmedia%2Fget.md%20and%20help%20me%20use%20the%20OneFeedAPI%20endpoint%20wechat_channels.videos.media.get%20%28WeChat%20Channels%20video%20download%29.)

## Related

Part of OneFeedAPI's Social media data. The same key also works for: Creators, Ads, E-commerce.

The same thing on other platforms: [Douyin video downloader, no watermark](https://onefeedapi.com/apis/douyin/videos/media/get/), [RedNote (Xiaohongshu) image downloader, originals and live photos](https://onefeedapi.com/apis/xiaohongshu/notes/media/get/), [RedNote (Xiaohongshu) video downloader](https://onefeedapi.com/apis/xiaohongshu/videos/media/get/), [Kuaishou video downloader](https://onefeedapi.com/apis/kuaishou/videos/media/get/), [Weibo video and image downloader](https://onefeedapi.com/apis/weibo/posts/media/get/), [TikTok video downloader, no watermark](https://onefeedapi.com/apis/tiktok/videos/media/get/), [Instagram video and photo downloader](https://onefeedapi.com/apis/instagram/posts/media/get/), [Bilibili video downloader](https://onefeedapi.com/apis/bilibili/videos/media/get/)

More Social media data on other platforms: [Douyin comment replies](https://onefeedapi.com/apis/douyin/comments/replies/list/), [Douyin hashtag videos](https://onefeedapi.com/apis/douyin/hashtags/videos/list/), [Bilibili comment replies](https://onefeedapi.com/apis/bilibili/comments/replies/list/), [Bilibili hot searches](https://onefeedapi.com/apis/bilibili/trends/list/), [Bilibili user profile](https://onefeedapi.com/apis/bilibili/users/get/), [Bilibili user videos](https://onefeedapi.com/apis/bilibili/users/videos/list/)

WeChat Channels endpoints: [WeChat Channels account profile](https://onefeedapi.com/apis/wechat_channels/users/get/), [WeChat Channels video detail](https://onefeedapi.com/apis/wechat_channels/videos/get/), [WeChat Channels video comments](https://onefeedapi.com/apis/wechat_channels/videos/comments/list/), [WeChat Channels video share link](https://onefeedapi.com/apis/wechat_channels/videos/share_link/get/), [WeChat Channels account collections](https://onefeedapi.com/apis/wechat_channels/users/collections/list/), [WeChat Channels collection videos](https://onefeedapi.com/apis/wechat_channels/collections/videos/list/), [WeChat Channels account videos](https://onefeedapi.com/apis/wechat_channels/users/videos/list/), [WeChat Channels video search](https://onefeedapi.com/apis/wechat_channels/videos/search/), [WeChat Channels account profile (backup)](https://onefeedapi.com/apis/wechat_channels/backup/users/get/), [WeChat Channels account videos (backup)](https://onefeedapi.com/apis/wechat_channels/backup/users/videos/list/), [WeChat Channels video search (backup)](https://onefeedapi.com/apis/wechat_channels/backup/videos/search/), [WeChat Channels account search](https://onefeedapi.com/apis/wechat_channels/users/search/), [WeChat Channels video stats](https://onefeedapi.com/apis/wechat_channels/videos/metrics/), [WeChat Channels comment replies](https://onefeedapi.com/apis/wechat_channels/comments/replies/list/), [WeChat Channels live replays](https://onefeedapi.com/apis/wechat_channels/users/live_replays/list/), [WeChat Channels video download](https://onefeedapi.com/apis/wechat_channels/videos/media/get/), [WeChat Channels video transcript](https://onefeedapi.com/apis/wechat_channels/videos/transcript/get/)

How-to guides and answers: [Is there an API that gets a video's file address? Douyin, Xiaohongshu and WeChat Channels (2026)](https://onefeedapi.com/answers/video-file-url-api-china/)

Related: [All WeChat Channels endpoints](https://onefeedapi.com/apis/wechat_channels/), [Social media data](https://onefeedapi.com/categories/social/), [The same thing on 8 platforms, side by side](https://onefeedapi.com/roles/media-get/), [The media files object's fields](https://onefeedapi.com/docs/objects/media/)

## Questions

### How much does the WeChat Channels video download API cost?

$0.0200 per call. The most one call can cost is $0.0200.

### When am I not charged?

Errors and timeouts are not charged.

### What happens if the object does not exist?

The answer is 404 not_found. charged and amount in the body say what this one cost. reason says which: not_found (it does not exist) or private_or_deleted.

### How much for 100 posts?

By the call, whatever the length of the video or the number of files: $0.0200 a call, so 100 posts cost 100 times $0.0200. Asking again for new addresses is another call at the same price.

### The downloaded file does not play. Why?

WeChat Channels encrypts the first 131072 bytes of the file. decrypt says how to undo it: seed ISAAC64 with decrypt.key, take each 64-bit output as 8 big-endian bytes, and XOR that key stream over the first decrypt.bytes bytes; the rest is left as it is, and the result is a playable MP4. Use the address and the key of the same answer.

### The address gives 403 or has expired. What now?

Fetch the address as it is: no header or cookie is needed. The address and the key are issued anew with every answer: once the address stops opening, call again and use the new pair.

### How do I get the files of every post of an account?

List the account's posts with wechat_channels.users.videos.list, a page at a time, then call wechat_channels.videos.media.get once for each post's id. In an AI agent that is one sentence: "Download and decrypt the last 10 videos of this WeChat Channels account with OneFeedAPI."

### How do I use it in ChatGPT or Claude?

Connect OneFeedAPI once (one prompt with your key, on the agents page), then ask in plain words, pasting the link as it is. The agent calls wechat_channels.videos.media.get and each call is charged $0.0200.

## 30-day availability

100% of the time over the last 30 days, this endpoint was serving calls: at least one of its routes was taking them, so it was neither paused nor down.

A failed call is not charged.

[Every endpoint's state now, and each incident with whether anyone was charged: the status page](https://onefeedapi.com/status/)

---

Last checked 2026-11-22 09:40 UTC. Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/apis/wechat_channels/videos/media/get/)
