{
"success": true,
"id": "f2f06006c1c1384d8521e0b4fad8584c09a6ade9",
"image": "https://www.tiktok.com/favicon.ico",
"progress_url": "https://tik-download.zylalabs.com/api/progress?id=f2f06006c1c1384d8521e0b4fad8584c09a6ade9",
"message": "Job started. Poll progress_url every 3–5 seconds until progress is 100, then use download_url."
}
curl --location --request GET 'https://zylalabs.com/api/4639/tiktok+media+integration+api/32265/downloader?url=https://www.tiktok.com/@championsleague/video/7670919555895643424&format=mp4' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": 1,
"progress": 100,
"text": "finished",
"title": "Lionel Messi, magician 🎨 #UCL",
"duration": 13,
"channel": "Champions League",
"views": 3400000,
"download_url": "https://tik-download.zylalabs.com/api/download?id=f2f06006c1c1384d8521e0b4fad8584c09a6ade9"
}
curl --location --request GET 'https://zylalabs.com/api/4639/tiktok+media+integration+api/32266/progress?id=f2f06006c1c1384d8521e0b4fad8584c09a6ade9' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"post_id": "7685800549144399134",
"title": "You almost got a piece of mozzarella… sorry about that 🧀 #learnfromkhaby #comedy",
"duration": 36,
"author": "Khabane lame",
"views": 5800000,
"likes": 381100,
"shares": 7753,
"comments": 8566,
"ratio": "720p",
"image": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/o4ANcXqKDICutp8LAbFAVXRqLCfTqAEEEMAfEq~tplv-tiktokx-origin.image?dr=10395&x-expires=1790427600&x-signature=yDjaaKsucmpB43Izt3%2FUMPSfNRQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=no1a",
"url": "https://www.tiktok.com/@khaby.lame/video/7685800549144399134"
}
curl --location --request GET 'https://zylalabs.com/api/4639/tiktok+media+integration+api/32267/video+information?url=https://www.tiktok.com/@khaby.lame/video/7685800549144399134' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 抖音媒体整合 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
TikTok媒体集成API通过URL下载公共TikTok视频并检索丰富的元数据(标题、作者、时长、观看次数、点赞数、缩略图)
工作原理(下载器)
id和progress_urlprogress_url),直到progress为100download_url下载MP4文件视频信息返回元数据而不下载媒体文件(当您只需要细节时成本较低)
范围
mp4、720或常见的Hub质量标签等格式值以兼容;输出为MP4使用进度中的download_url获取文件。不要期望Hub代理二进制视频响应
您可以获取公共TikTok视频的丰富元数据,包括标题、作者、时长、观看次数、点赞数和缩略图
要下载TikTok视频,请使用视频网址和所需格式调用下载器。您将收到一个id和一个进度网址以监控下载进度
API接受诸如'mp4'、'720'或常见的Hub质量标签等格式值,但输出将始终为MP4格式
是的 视频信息功能允许您在不下载媒体文件的情况下检索元数据 这是一个更低成本的选项 当您只需要详细信息时
在启动下载后,您可以每3-5秒轮询Progress端点或提供的progress_url,直到进度达到100%,此时您可以使用download_url获取视频