SerpBase
Back to Blog

TikTok Profile API: Followers, Likes and Video Counts as JSON

Get a public TikTok profile as JSON by username: followers, following, likes, video count, verified flag, bio and join date. Tested on three accounts, with a daily log script.

November 26, 2026
By SerpBase Team2 min read

Short answer: send a username to /tiktok/profile and you get the public profile as JSON — display name, bio, follower, following, like and video counts, verified flag, account creation date and avatar.

TikTok's official APIs need an approved app and, for most data, the account owner's consent. Public profile figures are on the profile page for anyone to see; this endpoint returns them in a fixed shape.

The request

curl -X POST 'https://api.serpbase.dev/tiktok/profile' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"username":"nba"}'

Send the handle without the @.

What comes back

We ran this on 26 November 2026 on three accounts:

usernamefollowers_countlikes_countvideos_countTime
nba27,530,5261,218,540,11126,060about 4 s
khaby.lame162,899,1452,697,415,4581,361about 2 s
tiktok97,153,407470,208,5871,522about 13 s

The fields in profile:

FieldWhat it holds
username, name, idHandle, display name, numeric account ID
bioProfile text
followers_count, following_count, friends_countAudience figures
likes_countTotal likes across the account's videos
videos_countNumber of public videos
verified, private_accountBooleans
joinedWhen the account was created, e.g. 2016-08-30T08:01:48Z
image_urlAvatar
urlThe profile address

Python: a daily follower log

import csv, datetime, time, requests

ACCOUNTS = ["nba", "khaby.lame"]
today = datetime.date.today().isoformat()

with open("tiktok_followers.csv", "a", newline="") as f:
    w = csv.writer(f)
    for user in ACCOUNTS:
        r = requests.post(
            "https://api.serpbase.dev/tiktok/profile",
            headers={"X-API-Key": "YOUR_API_KEY"},
            json={"username": user},
            timeout=60,
        ).json()
        if r["status"] != 0:
            print(user, "failed:", r.get("error"))   # not charged; try again later
            continue
        p = r["profile"]
        w.writerow([today, user, int(p["followers_count"]),
                    int(p["likes_count"]), int(p["videos_count"])])
        time.sleep(1)

TikTok does not publish follower history, so the only way to have a growth curve is to record the number yourself, starting today.

Things that trip people up

  • Counts are exact, and they are strings. You get "27530526", not "27.5M". Convert with int().
  • Retry on failure. Our first request for tiktok came back with a non-zero status and no charge; the same request later succeeded. Build one retry into your job.
  • It is the profile, not the video list. The response has totals but not the account's videos. Use TikTok search for videos on a topic.
  • Check private_account. All three accounts we tested were public (false); we did not test a private one.
  • No history. Each call is today's snapshot.

Related endpoints

TikTok search returns videos for a keyword with views, likes and shares. For video search on another platform see YouTube search.

Cost and limits

Each request costs 2 credits; failed requests are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.