Skip to main content
GET
/
v1
/
tiktok
/
videos
/
{videoId}
/
download
Get video download URL
curl --request GET \
  --url https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.konbiniapi.com/v1/tiktok/videos/{videoId}/download")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "@context": [
      "https://www.w3.org/ns/activitystreams#",
      "https://konbiniapi.com/ns/social#"
    ],
    "type": "Video",
    "url": "https://v16m-default.tiktokcdn-us.com/tos-useast2a-ve-0068c001-euttp/oQmXqQqQ1RQkQKEZe6EDMBnZDGFHLupqRIh7p/?a=1988&bti=bGRuZHxvMXIxcm53Zm1cYF9ebWFzaHFmOg%3D%3D&bt=1415&ft=8kQr2FziNORWRapNGIv1tec7kzYrZmXVWxi~jJMsL&mime_type=video_mp4&vvpl=1",
    "mediaType": "video/mp4"
  }
}
{
"errors": [
{
"code": "validation_error",
"message": "Validation error"
}
],
"data": null
}
{
"errors": [
{
"message": "Invalid API key"
}
],
"data": null
}
{
"errors": [
{
"code": "credits_exhausted",
"message": "Credits exhausted. Upgrade your plan at konbiniapi.com"
}
],
"data": null
}
{
"errors": [
{
"message": "API key is disabled"
}
],
"data": null
}
{
"errors": [
{
"message": "Not found"
}
],
"data": null
}
{
"errors": [
{
"code": "validation_error",
"message": "Request body too large"
}
],
"data": null
}
{
"errors": [
{
"code": "internal_error",
"message": "Internal error"
}
],
"data": null
}
{
"errors": [
{
"code": "platform_error",
"message": "Platform error"
}
],
"data": null
}
{
"errors": [
{
"code": "service_unavailable",
"message": "Service unavailable"
}
],
"data": null
}
{
"errors": [
{
"code": "platform_error",
"message": "Platform error"
}
],
"data": null
}

Authorizations

Authorization
string
header
required

Send your API key in the Authorization header as a Bearer token. Example: Authorization: Bearer <your-api-key>

Path Parameters

videoId
string
required

TikTok video ID

Example:

"7611615657754381599"

Query Parameters

url
string<uri>

Optional: an aweme/v1/play/ URL copied from a prior video detail response for this same video. Providing it lets this endpoint skip re-fetching the video detail internally.

Example:

"https://www.tiktok.com/aweme/v1/play/?faid=1988&file_id=31d1120d6158449ca81efc56a01019fd&is_play_url=1&item_id=7355612345678901234&line=0&ply_type=2&signaturev3=dmlkZW9faWQ7ZmlsZV9pZDtpdGVtX2lkLjRjY2U1ZTlmYThkMjkzNGM1YmI0ZjE1ZWExYmFiODg4&tk=tt_chain_token&video_id=v26044gc0000d7q9k37og65t8l3poah0"

Response

Downloadable video file link

data
object
required

A temporary link to a downloadable video file