Video Details
curl --request POST \
--url https://api.agntdata.dev/v1/data/tiktok/video/details \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_id": "7149284958899785006"
}
'import requests
url = "https://api.agntdata.dev/v1/data/tiktok/video/details"
payload = { "video_id": "7149284958899785006" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_id: '7149284958899785006'})
};
fetch('https://api.agntdata.dev/v1/data/tiktok/video/details', 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.agntdata.dev/v1/data/tiktok/video/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_id' => '7149284958899785006'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/tiktok/video/details"
payload := strings.NewReader("{\n \"video_id\": \"7149284958899785006\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agntdata.dev/v1/data/tiktok/video/details")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_id\": \"7149284958899785006\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/tiktok/video/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_id\": \"7149284958899785006\"\n}"
response = http.request(request)
puts response.read_body{
"video_id": "7149284958899785006",
"details": {
"video_id": "7149284958899785006",
"description": "Want to work with me? Duet and show me what you got. #ziprecruiterpartner #putziprecruitertoworkforyou ",
"create_time": "1664572629",
"author": "mrbeast",
"author_id": "6614519312189947909",
"author_name": "MrBeast",
"statistics": {
"number_of_comments": 4004,
"number_of_hearts": 236100,
"number_of_plays": 2100000,
"number_of_reposts": 732
},
"cover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/c2357b5cea4d4ab7a94a563a6ea2e212_1664572630?x-expires=1664665200&x-signature=o%2BjEfPOqRL1zZqh%2B2nopf%2BQRRVw%3D",
"download_url": "https://v16m-webapp.tiktokcdn-us.com/97435d44942ade1d02f84827234e1ab1/6338cb52/video/tos/useast5/tos-useast5-ve-0068c003-tx/0f32e50b0d5b482f89f9dcc8bc4b2423/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=2490&bt=1245&cs=0&ds=3&ft=ebtHKH-qMyq8ZjULDhe2N5aRfl7Gb&mime_type=video_mp4&qs=0&rc=ZDtoNWgzOjQ3M2VnZmVmNEBpM2xycTk6Zm1vZjMzZzczNEBgNS4wYGEyNmIxYzNeMjZjYSNmby9xcjRnam9gLS1kMS9zcw%3D%3D&l=20221001172034DE163AD3D81E532B166E",
"video_definition": "720p",
"format": null,
"bitrate": 1275084,
"duration": 17,
"avatar_thumb": "https://p16-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/54435a1ec165931f60f2a3872de74aa5~c5_100x100.jpeg?x-expires=1664816400&x-signature=NntizmoVL68NAjoz6%2Bqy6nij3P8%3D"
}
}{
"detail": [
{
"loc": [],
"msg": "",
"type": ""
}
]
}Video
Video Details
Return Video Details
POST
/
v1
/
data
/
tiktok
/
video
/
details
Video Details
curl --request POST \
--url https://api.agntdata.dev/v1/data/tiktok/video/details \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"video_id": "7149284958899785006"
}
'import requests
url = "https://api.agntdata.dev/v1/data/tiktok/video/details"
payload = { "video_id": "7149284958899785006" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_id: '7149284958899785006'})
};
fetch('https://api.agntdata.dev/v1/data/tiktok/video/details', 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.agntdata.dev/v1/data/tiktok/video/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_id' => '7149284958899785006'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/tiktok/video/details"
payload := strings.NewReader("{\n \"video_id\": \"7149284958899785006\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agntdata.dev/v1/data/tiktok/video/details")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video_id\": \"7149284958899785006\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/tiktok/video/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_id\": \"7149284958899785006\"\n}"
response = http.request(request)
puts response.read_body{
"video_id": "7149284958899785006",
"details": {
"video_id": "7149284958899785006",
"description": "Want to work with me? Duet and show me what you got. #ziprecruiterpartner #putziprecruitertoworkforyou ",
"create_time": "1664572629",
"author": "mrbeast",
"author_id": "6614519312189947909",
"author_name": "MrBeast",
"statistics": {
"number_of_comments": 4004,
"number_of_hearts": 236100,
"number_of_plays": 2100000,
"number_of_reposts": 732
},
"cover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/c2357b5cea4d4ab7a94a563a6ea2e212_1664572630?x-expires=1664665200&x-signature=o%2BjEfPOqRL1zZqh%2B2nopf%2BQRRVw%3D",
"download_url": "https://v16m-webapp.tiktokcdn-us.com/97435d44942ade1d02f84827234e1ab1/6338cb52/video/tos/useast5/tos-useast5-ve-0068c003-tx/0f32e50b0d5b482f89f9dcc8bc4b2423/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=2490&bt=1245&cs=0&ds=3&ft=ebtHKH-qMyq8ZjULDhe2N5aRfl7Gb&mime_type=video_mp4&qs=0&rc=ZDtoNWgzOjQ3M2VnZmVmNEBpM2xycTk6Zm1vZjMzZzczNEBgNS4wYGEyNmIxYzNeMjZjYSNmby9xcjRnam9gLS1kMS9zcw%3D%3D&l=20221001172034DE163AD3D81E532B166E",
"video_definition": "720p",
"format": null,
"bitrate": 1275084,
"duration": 17,
"avatar_thumb": "https://p16-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/54435a1ec165931f60f2a3872de74aa5~c5_100x100.jpeg?x-expires=1664816400&x-signature=NntizmoVL68NAjoz6%2Bqy6nij3P8%3D"
}
}{
"detail": [
{
"loc": [],
"msg": "",
"type": ""
}
]
}⌘I