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.

Run it in the PlaygroundSee the callSign in to run it; it runs on your own balance.
Platforms8 platforms
Endpoints9 endpointssome platforms have more than one
PriceFrom $0.0020per call. A failed call is free
ReturnsMedia filesone object a call

Media files on each platform

One row per endpoint: what it is called, how much comes back in a call, and what a call costs.

PlatformEndpointA pageReturnsPrice
TikTokTikTok video downloader, no watermarkGET/v1/tiktok/videos/media/get1Media files$0.0020
InstagramInstagram video and photo downloaderGET/v1/instagram/posts/media/get1Media files$0.0020
DouyinDouyin video downloader, no watermarkGET/v1/douyin/videos/media/get1Media files$0.0020
WeChat ChannelsWeChat Channels video downloadGET/v1/wechat_channels/videos/media/get1Media files$0.0200
BilibiliBilibili video downloaderGET/v1/bilibili/videos/media/get1Media files$0.0020
WeiboWeibo video and image downloaderGET/v1/weibo/posts/media/get1Media files$0.0020
KuaishouKuaishou video downloaderGET/v1/kuaishou/videos/media/get1Media files$0.0020
Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.Live status →

The Media files object

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

The object's own page →
post_idtextID of the post the files belong to: the same as the detail endpoint's id
typetextContent format: video, or image (a picture post or photo set)
titletextTitle; the caption where the platform has no separate title
author.idtextAuthor's account ID
author.nametextAuthor's display name
durationnumberLength of the video, in seconds; a picture post has none
files[].kindtextWhat 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[].indexintegerPlace of a picture in the post, from 1; null for other files
files[].qualitytextQuality, as the platform names it or by the short side in pixels, such as 720p or 1080p; null where there is none
files[].widthintegerWidth, in pixels
files[].heightintegerHeight, in pixels
files[].codectextCodec, 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[].bitrateintegerBit rate, in bits a second
files[].sizeintegerFile size, in bytes
files[].formattextFile 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[].durationnumberLength of an audio or video file, in seconds
files[].titletextName of the background music; null for other files
files[].langtextLanguage code of the subtitles, such as zh-CN or en-US
files[].watermarkyes/noWhether the file carries the platform's watermark
files[].urllinkAddress of the file
files[].backup_urlslist of linkOther addresses of the same file, for when the main one fails
files[].expires_attimeWhen the address expires, as its signature says; null where the signature does not say. Once it has, call again for new addresses
files[].headers.referertextThe Referer to send
files[].stable_urllinkThe 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.urllinkAddress of the live photo's video
files[].live.durationnumberLength of the live photo's video, in seconds
decrypt.methodtextThe 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.keytextThe key, good only for the addresses of the same answer
decrypt.bytesintegerHow many bytes at the start of the file are encrypted

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.

Platformtitleauthor.idauthor.namedurationfiles[].indexfiles[].qualityfiles[].codecfiles[].bitratefiles[].sizefiles[].durationfiles[].titlefiles[].langfiles[].watermarkfiles[].backup_urlsfiles[].expires_atfiles[].headers.refererfiles[].stable_urlfiles[].live.urlfiles[].live.durationdecrypt.methoddecrypt.keydecrypt.bytes
TikTok
Instagram
Douyin
RedNote (Xiaohongshu) image downloader, originals and live photos
RedNote (Xiaohongshu) video downloader
WeChat Channels
Bilibili
Weibo
Kuaishou

The same call on two platforms

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

# TikTok
curl -G "https://onefeedapi.com/v1/tiktok/videos/media/get" \
  --data-urlencode "id=7665840565958872333" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"

# Douyin: one word changes
curl -G "https://onefeedapi.com/v1/douyin/videos/media/get" \
  --data-urlencode "id=7694940173372575014" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
// TikTok
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

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

// Douyin: one word changes
const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const other = await dx.douyin.videos.media.get({ id: "7694940173372575014" });
console.log(other.data.item);
# TikTok
# pip install onefeedapi
from onefeedapi import OneFeedAPI

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

# Douyin: one word changes
dx = OneFeedAPI()  # reads ONEFEED_API_KEY
other = dx.douyin.videos.media.get(id="7694940173372575014")
print(other["data"]["item"])
# TikTok
onefeedapi call tiktok.videos.media.get id=7665840565958872333

# Douyin: one word changes
onefeedapi call douyin.videos.media.get id=7694940173372575014
200 · application/json · charged $0.0020
{
  "code": "ok",
  "request_id": "46dd6c2d-76b6-4b49-b294-be78da358504",
  "data": {
    "item": {
      "post_id": "7576723593279365074",
      "type": "video",
      "title": "I tried weekend hiking for 30 days. Here is what happened",
      "author": { "id": "6797150316661954559", "name": "Hannah Weiss" },
      "duration": 89.373,
      "files": [
        {
          "kind": "video",
          "index": null,
          "quality": "720p",
          "width": 720,
          "height": 1280,
          "codec": "h265",
          "bitrate": 334473,
          "size": 3736653,
          "format": "mp4",
          "duration": 89.373,
          "title": null,
          "watermark": false,
          "url": "https://www.tiktok.com/@northside_coffee/video/7390042224677822398",
          "backup_urls": [
            "https://www.tiktok.com/@hannah.w.photo/video/7449784160616781997"
          ],
          "expires_at": "2026-10-13T00:47:02.000Z"
        },
        {
          "kind": "video",
          "index": null,
          "quality": "540p",
          "width": 576,
          "height": 1024,
          "codec": "h265",
          "bitrate": 254642,
          "size": 2844805,
          "format": "mp4",
          "duration": 89.373,
          "title": null,
          "watermark": false,
          "url": "https://www.tiktok.com/@maya.makes/video/7540639198878317897",
          "backup_urls": [
            "https://www.tiktok.com/@fieldnotes_studio/video/7210306615796042888"
          ],
          "expires_at": "2026-10-13T00:47:02.000Z"
        },
        // … 2 more
      ]
    }
  },
  "warnings": [],
  "meta": {
    "capability": "tiktok.videos.media.get",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:45:36.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "files.lang": "platform",
      "files.headers": "capability",
      "files.stable_url": "capability",
      "files.live": "platform",
      "decrypt": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

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

What comes back

The objects these endpoints answer with: one set of fields each, the same on every platform.

All skills →

Questions about the Media files API

Short answers. Each endpoint's page has its own limits and examples.

TikTok video downloader, no watermark API →
How much does it cost?

$0.0020 a call on TikTok, Instagram, Douyin, Bilibili, Weibo, Kuaishou; $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

The same idea everywhere: one action, every platform that has it.

Start with one key.

253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free