Video
Plays, likes, comments, shares and saves of one TikTok video, with its caption, hashtags, sound and creator.
Try it in the dashboard 100 free credits when you sign up, no card.
GET/v1/tiktok/video
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
videorequired |
string | Video URL as a browser shows it: https://www.tiktok.com/@user/video/ followed by the video id. A vm.tiktok.com short link is not accepted: open it and pass the address it leads to. |
Example request
curl "https://pipefetch.com/v1/tiktok/video?video=https%3A%2F%2Fwww.tiktok.com%2F%40scout2015%2Fvideo%2F6718335390845095173" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/tiktok/video?video=https%3A%2F%2Fwww.tiktok.com%2F%40scout2015%2Fvideo%2F6718335390845095173', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/tiktok/video",
params={"video": "https://www.tiktok.com/@scout2015/video/6718335390845095173"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"id": "6718335390845095173",
"url": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
"caption": "Scramble up ur name & I’ll try to guess it😍❤️ #foryoupage #petsoftiktok #aesthetic",
"createdAt": "2019-07-27T13:32:38.000Z",
"durationSeconds": 10,
"width": 576,
"height": 1024,
"coverUrl": "https://p19-common-sign.tiktokcdn-eu.com/tos-maliva-p-0068/2367c7d45cf54a1397abd0e72bf22eac~tplv-tiktokx-origin.image?dr=10395&x-expires=1795266000&x-…",
"playCount": 160300,
"likeCount": 35200,
"commentCount": 5621,
"shareCount": 1530,
"collectCount": 651,
"repostCount": 0,
"engagementRate": 26.42,
"hashtags": [
"foryoupage",
"petsoftiktok"
],
"challenges": [
"foryoupage",
"PetsOfTikTok"
],
"mentions": [],
"author": {
"id": "53279706535428096",
"username": "scout2015",
"nickname": "Scout, Suki & Stella",
"url": "https://www.tiktok.com/@scout2015",
"avatarUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/4cbe05e194623e3f19aef975d9fdf26c~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_…",
"bio": "🐾Click follow to join the PAWsitive Pack🐾\nMore👇💞",
"isVerified": true,
"followerCount": 9000000,
"likeCount": 108300000,
"videoCount": 3089
},
"music": {
"id": "6689804660171082501",
"title": "original sound",
"author": "tiff",
"isOriginal": true,
"durationSeconds": 10
},
"isAd": false,
"isAiGenerated": false,
"locationCreated": "US",
"duetEnabled": true,
"stitchEnabled": true,
"commentsDisabled": false
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- Counts are the numbers TikTok puts in the video page. It rounds large ones the way it displays them: 160.3K plays arrive as 160300, 9M followers as 9000000.
- collectCount is the number of saves. engagementRate is likes plus comments plus shares as a percentage of plays: 26.42 means 26.42 %.
- hashtags are the tags written in the caption; challenges are all the tags TikTok files the video under, which can be more.
- The video file is not returned. The cover and avatar addresses are TikTok's own signed links and expire: download what you want to keep.
- A video that was deleted, is private or never existed answers 404 video_not_found and costs nothing.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the TikTok Video API page.