# Media files API

9 endpoints on 8 platforms return the same Media files object. Every file of one post by address: the video in each quality, the audio, the cover, each picture, with the headers to send and when the addresses expire. A call costs from $0.0020 to $0.0200, each endpoint at its own price; a failed call is free.

## Media files on each platform

| Platform | Endpoint | Path | A page | Returns | Price |
| --- | --- | --- | --- | --- | --- |
| Douyin | [Douyin video downloader, no watermark](https://onefeedapi.com/apis/douyin/videos/media/get.md) | `GET /v1/douyin/videos/media/get` | 1 | Media files | $0.0020 / call |
| Xiaohongshu (RedNote) | [RedNote (Xiaohongshu) image downloader, originals and live photos](https://onefeedapi.com/apis/xiaohongshu/notes/media/get.md) | `GET /v1/xiaohongshu/notes/media/get` | 1 | Media files | $0.0200 / call |
| Xiaohongshu (RedNote) | [RedNote (Xiaohongshu) video downloader](https://onefeedapi.com/apis/xiaohongshu/videos/media/get.md) | `GET /v1/xiaohongshu/videos/media/get` | 1 | Media files | $0.0200 / call |
| Kuaishou | [Kuaishou video downloader](https://onefeedapi.com/apis/kuaishou/videos/media/get.md) | `GET /v1/kuaishou/videos/media/get` | 1 | Media files | $0.0020 / call |
| Weibo | [Weibo video and image downloader](https://onefeedapi.com/apis/weibo/posts/media/get.md) | `GET /v1/weibo/posts/media/get` | 1 | Media files | $0.0020 / call |
| WeChat Channels | [WeChat Channels video download](https://onefeedapi.com/apis/wechat_channels/videos/media/get.md) | `GET /v1/wechat_channels/videos/media/get` | 1 | Media files | $0.0200 / call |
| TikTok | [TikTok video downloader, no watermark](https://onefeedapi.com/apis/tiktok/videos/media/get.md) | `GET /v1/tiktok/videos/media/get` | 1 | Media files | $0.0020 / call |
| Instagram | [Instagram video and photo downloader](https://onefeedapi.com/apis/instagram/posts/media/get.md) | `GET /v1/instagram/posts/media/get` | 1 | Media files | $0.0020 / call |
| Bilibili | [Bilibili video downloader](https://onefeedapi.com/apis/bilibili/videos/media/get.md) | `GET /v1/bilibili/videos/media/get` | 1 | Media files | $0.0020 / call |

Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.

## The Media files object

Every endpoint above returns these fields, with the same names and types.

| Field | Type | Description |
| --- | --- | --- |
| `post_id` | text | ID of the post the files belong to: the same as the detail endpoint's id |
| `type` | text | Content format: video, or image (a picture post or photo set) |
| `title` | text | Title; the caption where the platform has no separate title |
| `author.id` | text | Author's account ID |
| `author.name` | text | Author's display name |
| `duration` | number | Length of the video, in seconds; a picture post has none |
| `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 |
| `files[].index` | integer | Place of a picture in the post, from 1; null for other files |
| `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 |
| `files[].width` | integer | Width, in pixels |
| `files[].height` | integer | Height, in pixels |
| `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 |
| `files[].bitrate` | integer | Bit rate, in bits a second |
| `files[].size` | integer | File size, in bytes |
| `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 |
| `files[].duration` | number | Length of an audio or video file, in seconds |
| `files[].title` | text | Name of the background music; null for other files |
| `files[].lang` | text | Language code of the subtitles, such as zh-CN or en-US |
| `files[].watermark` | yes/no | Whether the file carries the platform's watermark |
| `files[].url` | link | Address of the file |
| `files[].backup_urls` | list of link | Other addresses of the same file, for when the main one fails |
| `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 |
| `files[].headers.referer` | text | The Referer to send |
| `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 |
| `files[].live.url` | link | Address of the live photo's video |
| `files[].live.duration` | number | Length of the live photo's video, in seconds |
| `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 |
| `decrypt.key` | text | The key, good only for the addresses of the same answer |
| `decrypt.bytes` | integer | How many bytes at the start of the file are encrypted |

[The object's own page →](https://onefeedapi.com/docs/objects/media/)

### Which platform fills which field

A field an endpoint cannot give is listed in `meta.unavailable` on every answer, so a gap is never a surprise.

| Platform | `title` | `author.id` | `author.name` | `duration` | `files[].index` | `files[].quality` | `files[].codec` | `files[].bitrate` | `files[].size` | `files[].duration` | `files[].title` | `files[].lang` | `files[].watermark` | `files[].backup_urls` | `files[].expires_at` | `files[].headers.referer` | `files[].stable_url` | `files[].live.url` | `files[].live.duration` | `decrypt.method` | `decrypt.key` | `decrypt.bytes` |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Douyin | available | available | available | available | available | available | available | available | available | available | available | not available | available | available | available | not available | available | available | available | not available | not available | not available |
| RedNote (Xiaohongshu) image downloader, originals and live photos | available | available | available | not available | available | not available | not available | not available | not available | not available | not available | not available | available | not available | not available | not available | not available | available | available | not available | not available | not available |
| RedNote (Xiaohongshu) video downloader | available | available | available | available | not available | available | available | available | available | available | not available | available | available | available | not available | not available | not available | not available | not available | not available | not available | not available |
| Kuaishou | available | available | available | available | available | available | not available | available | available | available | not available | not available | not available | available | not available | not available | not available | not available | not available | not available | not available | not available |
| Weibo | available | available | available | available | available | available | available | available | available | available | not available | not available | available | not available | available | not available | not available | not available | not available | not available | not available | not available |
| WeChat Channels | available | available | available | available | not available | available | not available | not available | available | available | not available | not available | not available | not available | not available | not available | not available | not available | not available | available | available | available |
| TikTok | available | available | available | available | available | available | available | available | available | available | available | not available | available | available | available | not available | not available | not available | not available | not available | not available | not available |
| Instagram | available | available | available | available | available | not available | not available | not available | not available | available | not available | not available | not available | not available | available | not available | not available | not available | not available | not available | not available | not available |
| Bilibili | not available | not available | not available | available | not available | available | available | available | not available | not available | not available | not available | not available | available | available | available | not available | not available | not available | not available | not available | not available |

## The same call on two platforms

Same parameter names, same paging, same answer. Only the path changes.

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

# Xiaohongshu (RedNote): one word changes
curl -G "https://onefeedapi.com/v1/xiaohongshu/videos/media/get" \
  --data-urlencode "id=6ac7701f000000001800508c" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
```

### 200 · application/json

Douyin video downloader, no watermark: From a response recorded 2026-10-12 18:41 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.

```jsonc
{
  "code": "ok",
  "request_id": "91269756-7751-463e-983d-46d8da516a46",
  "data": {
    "item": {
      "post_id": "7833109286609086520",
      "type": "video",
      "title": "关于周末露营，我踩过的五个坑",
      "author": {
        "id": "MS4wLjABAAAAym-ezULCocGd6O4LOtyemCC70xSavR-Fz9TkEy9fr5y",
        "name": "一颗柠檬糖"
      },
      "duration": 17.62,
      "files": [
        {
          "kind": "video",
          "index": null,
          "quality": "720p",
          "width": 720,
          "height": 1280,
          "codec": "bytevc2",
          "bitrate": 660528,
          "size": 1454980,
          "format": "mp4",
          "duration": 17.62,
          "title": null,
          "watermark": false,
          "url": "https://www.douyin.com/video/7532013836158439430",
          "backup_urls": [
            "https://www.douyin.com/video/7103843412149753325"
          ],
          "expires_at": "2026-10-12T23:42:12.000Z",
          "stable_url": "https://www.douyin.com/video/7379017266167968009",
          "live": null
        },
        {
          "kind": "video",
          "index": null,
          "quality": "720p",
          "width": 720,
          "height": 1280,
          "codec": "bytevc2",
          "bitrate": 560639,
          "size": 1234949,
          "format": "mp4",
          "duration": 17.62,
          "title": null,
          "watermark": false,
          "url": "https://www.douyin.com/video/7218692493584648804",
          "backup_urls": [
            "https://www.douyin.com/video/7806649436349130471"
          ],
          "expires_at": "2026-10-12T23:42:12.000Z",
          "stable_url": "https://www.douyin.com/video/7069581524645027774",
          "live": null
        },
        // … 6 more
      ]
    }
  },
  "warnings": [],
  "meta": {
    "capability": "douyin.videos.media.get",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:41:55.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "files.lang": "platform",
      "files.headers": "platform",
      "decrypt": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}
```

## What comes back

- [The Media files object](https://onefeedapi.com/docs/objects/media/): Fields 29, Endpoints that return it 9, Platforms 8

## Questions about the Media files API

### How much does it cost?

$0.0020 a call on Douyin, Kuaishou, Weibo, TikTok, Instagram, Bilibili; $0.0200 a call on Xiaohongshu (RedNote), WeChat Channels. You are charged when data comes back; a failed call costs nothing. No subscription, no monthly minimum.

### Does every platform fill every field?

No. 22 of the 29 fields are missing on at least one platform; the table on this page says which. A field an endpoint cannot give is named in `meta.unavailable` on every answer, never filled with a guess.

### Do I need an account on the platform?

No. One OneFeedAPI key reads all 8 platforms. No platform account and no cookie.

## Other data types

[Comment replies API](https://onefeedapi.com/roles/comments-replies-list/), [Hashtag posts API](https://onefeedapi.com/roles/topics-posts-list/), [Trending topics API](https://onefeedapi.com/roles/trends-list/), [Account profile API](https://onefeedapi.com/roles/accounts-get/), [Account posts API](https://onefeedapi.com/roles/accounts-posts-list/), [Comments API](https://onefeedapi.com/roles/posts-comments-list/), [Post detail API](https://onefeedapi.com/roles/posts-get/), [Video transcript API](https://onefeedapi.com/roles/transcripts-get/), [Post search API](https://onefeedapi.com/roles/posts-search/), [Trending posts API](https://onefeedapi.com/roles/posts-trending/), [Account search API](https://onefeedapi.com/roles/accounts-search/), [Post metrics API](https://onefeedapi.com/roles/posts-metrics/), [Community posts API](https://onefeedapi.com/roles/communities-posts-list/), [Ad detail API](https://onefeedapi.com/roles/ads-get/), [Advertiser ads API](https://onefeedapi.com/roles/advertisers-ads-list/), [Advertiser search API](https://onefeedapi.com/roles/advertisers-search/), [Ad library search API](https://onefeedapi.com/roles/ads-search/), [Followers API](https://onefeedapi.com/roles/accounts-followers-list/), [Community profile API](https://onefeedapi.com/roles/communities-get/), [Product detail API](https://onefeedapi.com/roles/products-get/), [Product reviews API](https://onefeedapi.com/roles/products-reviews-list/), [Product search API](https://onefeedapi.com/roles/products-search/), [Creator search API](https://onefeedapi.com/roles/creators-search/), [Creator profile API](https://onefeedapi.com/roles/creators-get/), [Creator audience API](https://onefeedapi.com/roles/creators-audience-get/), [Creator metrics API](https://onefeedapi.com/roles/creators-metrics/), [Creator posts API](https://onefeedapi.com/roles/creators-posts-list/), [All 21 platforms →](https://onefeedapi.com/apis/)

---

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