Skip to main content
ScrapingRabbit

Blog · · 3 min read

Get TikTok Profile Data With an API

Read a public TikTok profile as JSON: followers, total likes, video count, bio link and join date. Working code, the field list, and the limits to plan for.

A TikTok profile is a small data set: a name, a bio, a link, and a handful of counts. Brands use it to vet creators, and analysts use it to compare accounts. This guide shows how to read it with a single GET request, and what each field means.

Request a profile

Send the username without the @ sign. Every call needs an API key. New accounts get 100 free credits and a first key is created automatically on sign-up (it is shown once on the dashboard). Sign in at scrapingrabbit.com/login, then send the key in the x-api-key header (a Bearer token also works). The code below reads it from the SCRAPINGRABBIT_API_KEY environment variable, so no key is ever written into your code.

curl -H "x-api-key: $SCRAPINGRABBIT_API_KEY" "https://api.scrapingrabbit.com/v1/tiktok/profile?username=zachking"

Each successful call costs about 5 credits. That is an estimate the team has not measured yet, so see the pricing page for current numbers.

A shortened real answer, read on 27 November 2026:

{
  "success": true,
  "data": {
    "id": "68616495085350913",
    "username": "zachking",
    "nickname": "Zach King",
    "bio": "Bringing a little more wonder into the world, 15 seconds at a time",
    "bioLink": "https://youtu.be/ulVscDewRPI",
    "verified": true,
    "private": false,
    "language": "en",
    "createdAt": "2016-02-29T07:29:22.000Z",
    "stats": {
      "followers": 86729698,
      "following": 186,
      "likes": 1308287883,
      "videos": 621,
      "friends": 120
    }
  }
}

The answer also has an avatar address and a secUid field. The secUid is an internal identifier that TikTok uses. Most projects never need it.

What the fields mean

FieldMeaning
username and nicknameThe handle and the display name
bio and bioLinkThe profile text and the link in it
verified and privateWhether the account is verified, and whether it is private
languageThe account's language code
createdAtWhen the account was created, as a date and time
stats.followersPeople who follow the account
stats.followingAccounts it follows
stats.likesTotal likes across all its videos
stats.videosNumber of videos
stats.friendsAccounts that follow each other with it

Read it in code

async function tiktokProfile(username) {
  const url = `https://api.scrapingrabbit.com/v1/tiktok/profile?username=${encodeURIComponent(username)}`;
  const res = await fetch(url, { headers: { "x-api-key": process.env.SCRAPINGRABBIT_API_KEY } });
  const body = await res.json();
  if (!body.success) return null;

  const { nickname, stats, createdAt } = body.data;
  return {
    name: nickname,
    followers: stats.followers,
    videos: stats.videos,
    likesPerVideo: Math.round(stats.likes / Math.max(stats.videos, 1)),
    accountAgeYears: new Date().getFullYear() - new Date(createdAt).getFullYear(),
  };
}

console.log(await tiktokProfile("zachking"));

The code divides total likes by the number of videos to get an average per video, and it uses Math.max(stats.videos, 1) so an account with no videos does not cause a division by zero. For the account above that gives about 2.1 million likes per video, a number you can compare across accounts.

The same in Python:

import os
import requests

res = requests.get(
    "https://api.scrapingrabbit.com/v1/tiktok/profile",
    params={"username": "zachking"},
    headers={"x-api-key": os.environ["SCRAPINGRABBIT_API_KEY"]},
    timeout=60,
)
body = res.json()
if body["success"]:
    stats = body["data"]["stats"]
    print(stats["followers"], stats["videos"])

Go further than the profile

Counts on a profile tell you size. They do not tell you whether people react to the content. For that, use the engagement endpoint, which looks at the account's recent videos and works out an engagement rate. Our guide on how that rate is calculated shows the formulas and a worked example.

If you accept usernames from people, you can also use the username check endpoint first. It tells you whether a name is in use, so you do not request a profile that does not exist.

Things to plan for

  • Counts are a snapshot. They change constantly, so store the time you read them.
  • Private accounts show less. Check private before you rely on the rest.
  • The avatar link may not last. It points to TikTok's own image servers. Download an image if you need to keep it.
  • Rate limits and credits. Each key is limited per minute: 10 requests on the free plan, 60 on Starter, 120 on Pro and 300 on Scale. Every successful call costs credits, so cache each profile, since the numbers move slowly.
  • Always check success. A failed request returns success: false, a code such as RATE_LIMITED or INVALID_API_KEY, and a message. Failed calls are not charged.

Try it without code

The free TikTok profile viewer works in the browser with no key and shows these fields for any public profile. The free engagement calculator adds the engagement rate for the same account.

Try it yourself

Frequently asked questions

What does the likes number mean?

It is the total of likes across all the account's videos, as TikTok shows it on the profile. It is not the likes of one video.

Do I need a TikTok account?

No. The endpoint reads public profile data, so there is no login and the account owner is not told.

Can the follower count be exact?

It is the number the profile reports at the moment of the request. It changes constantly, so treat it as a snapshot.

More guides