TikTok API

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"
The response

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
200 OK · application/json
{
  "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
  }
}
Reference

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

NameTypeDescription
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.

Open the reference

Use cases

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.

Pricing

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.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit

A request costs 1 credit. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $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
Start with 100 free credits

See all packs and what a credit buys

FAQ

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.

Guides

Step-by-step guides

Free tools

Free tools for the same data

More

More TikTok APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.