TikTok Video API
Send a video link and get the video back as JSON: plays, likes, comments, shares and saves, the caption and its hashtags, the sound, and the creator behind it.
- 100 free credits
- No card needed
- No scraper to build or maintain
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"]What you get
- Play, like, comment, share, save and repost counts, and an engagement rate computed from them
- The caption, the hashtags written in it, and every tag TikTok files the video under
- Post time, duration, dimensions and the cover image
- The sound: title, author and whether it is original audio
- The creator: username, name, bio, verified badge, followers, likes and video count
- Ad and AI-generated labels, the country code of where it was made, and whether duets, stitches and comments are on
{
"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
}
}One GET request
Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.
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. |
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.
What people build with it
Measure a campaign
Turn the links of sponsored posts into plays, likes, shares and saves for a report.
Track a video over time
Call the endpoint on a schedule and store the counts to see how a video grows.
Enrich a list of links
Turn a column of video links into captions, hashtags, sounds, post dates and creators.
Study what a niche posts
Compare the hashtags, sounds and durations of the videos that do well in a market.
Buy credits once. Use them whenever.
This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.
A request costs 1 credit. Requests that return nothing are free.
- $2.42 per 1,000 credits
- About $12.08 a month at this pace
- Lasts about 2.4 months at this pace
- Credits never expire
Questions and answers
Is this the official TikTok API?
No. Pipefetch is an independent service and is not affiliated with TikTok or ByteDance. It returns what a public TikTok video page shows to a visitor who is not logged in, so you need no TikTok account, developer app or access token: one Pipefetch API key is enough.
Which links can I pass?
The full address of a video, as a browser shows it: https://www.tiktok.com/@user/video/ followed by the video id. Short share links (vm.tiktok.com) are not accepted: open the link once and pass the address it leads to.
Are the counts exact?
They are as precise as TikTok's own video page. TikTok rounds large counts there the way it displays them, so 160.3K plays arrive as 160300 and 9M followers as 9000000. Smaller counts, such as 5621 comments, arrive in full.
Can I download the video, or get its comments?
The video file is not returned, and neither is a transcript. Comments come from the TikTok comments endpoint, which takes the same link.
What happens with deleted or private videos?
The request answers 404 video_not_found and costs nothing.
Does a video contain personal data?
Yes, when the creator is a person: the answer carries their username, name and bio. If you store or process it, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.
What does a request cost?
One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.
Step-by-step guides
How to get a TikTok video's views and likes in Python
What oEmbed, the Display API, the Research API, yt-dlp and an HTTP API each return for a TikTok video, with code and the condition attached to each.
Read the guideHow to get the comments of a TikTok video in Python
The official Research API, the open-source TikTokApi library and an HTTP API: code for each, who may use it and how many comments it reaches.
Read the guideHow to get a TikTok follower count in Python
Who may use the Display API and the Research API, what oEmbed and yt-dlp leave out, and an HTTP API that returns the exact count of any public account.
Read the guideTikTok Research API: who can get access, and what to do if you cannot
Eligibility, regions, application steps and quotas as TikTok states them, and the routes left to everyone the Research API does not cover.
Read the guideHow to get TikTok video views, likes and shares in Node.js
What TikTok's official routes return to JavaScript, how yt-dlp runs from npm, and an HTTP API with fetch or its client, with the condition on each.
Read the guideHow to get TikTok views, likes and follower counts in Google Sheets
Two custom functions for a spreadsheet, one for a video's plays, likes, comments, shares and saves and one for an account's followers, with their limits.
Read the guide
Free tools for the same data
More TikTok APIs
-
1 credit / 20
TikTok Comments API
The top comments of a TikTok video with likes, reply counts, dates, creator-liked flags and the commenters' usernames.
GET /v1/tiktok/comments -
1 credit
TikTok Profile API
Exact followers, likes and video count of a TikTok account, with its bio, bio link, verified, business and TikTok Shop flags.
GET /v1/tiktok/profile
Other sources
YouTubeInstagramWebsitesFacebookGoogleThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.