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
One row per endpoint: what it is called, how much comes back in a call, and what a call costs.
The Media files object
Every endpoint above returns these fields, with the same names and types.
post_idtextID of the post the files belong to: the same as the detail endpoint's idtypetextContent format: video, or image (a picture post or photo set)titletextTitle; the caption where the platform has no separate titleauthor.idtextAuthor's account IDauthor.nametextAuthor's display namedurationnumberLength of the video, in seconds; a picture post has nonefiles[].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), subtitlefiles[].indexintegerPlace of a picture in the post, from 1; null for other filesfiles[].qualitytextQuality, as the platform names it or by the short side in pixels, such as 720p or 1080p; null where there is nonefiles[].widthintegerWidth, in pixelsfiles[].heightintegerHeight, in pixelsfiles[].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 sayfiles[].bitrateintegerBit rate, in bits a secondfiles[].sizeintegerFile size, in bytesfiles[].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 sayfiles[].durationnumberLength of an audio or video file, in secondsfiles[].titletextName of the background music; null for other filesfiles[].langtextLanguage code of the subtitles, such as zh-CN or en-USfiles[].watermarkyes/noWhether the file carries the platform's watermarkfiles[].urllinkAddress of the filefiles[].backup_urlslist of linkOther addresses of the same file, for when the main one failsfiles[].expires_attimeWhen the address expires, as its signature says; null where the signature does not say. Once it has, call again for new addressesfiles[].headers.referertextThe Referer to sendfiles[].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 nonefiles[].live.urllinkAddress of the live photo's videofiles[].live.durationnumberLength of the live photo's video, in secondsdecrypt.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 isdecrypt.keytextThe key, good only for the addresses of the same answerdecrypt.bytesintegerHow many bytes at the start of the file are encryptedWhich 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.
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
{
"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.
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.