Tutorial · TikTok · cURL, Python, Node.js, PHP, Go, Ruby

Get a TikTok profile and follower count with the API

TikTok profile: bio, verified and private flags, follower, following, like and video counts. Complete code for GET /v1/tiktok/users/{user} in six languages and both official SDKs, each tested against the documented response.

Short answer. One call to GET /v1/tiktok/users/{user} returns a public profile: nickname, bio, verified and private flags, exact follower, following, like and video counts, plus the id and sec_uid the other TikTok endpoints take.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • Influencer-marketing and creator-analytics tools: vet a creator by exact follower, like and video counts before outreach.
  • Reporting dashboards and agencies: snapshot a creator's counts on a schedule to chart growth over time.
  • Resolve a handle once and store sec_uid, so later list calls for that creator skip the handle lookup.

The request

GET https://api.handlehaul.com/v1/tiktok/users/{user} with your key in the X-Api-Key header. TikTok profile: bio, verified and private flags, follower, following, like and video counts. TikTok profile: bio, verified and private flags, follower, following, like and video counts. 1 credit. Docs: https://api.handlehaul.com/docs/tiktok-profile-api

Parameters for TikTok profile: bio, verified and private flags, follower, following, like and video counts
ParameterInDescription
user requiredpathTikTok handle (with or without @), numeric user id, or secUid. All digits = an id; write "@12345" for an all-digit handle. On list routes a handle we have to look up costs 1 extra credit (meta.lookup_credits); an id or secUid never does.
freshquerytrue skips the cache (full price).
rawquerytrue returns TikTok's raw JSON in data instead of our fields (same price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else. The SDK versions do the retries for you.

tiktok-profile.sh

# TikTok profile: bio, verified and private flags, follower, following, like and video counts. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
curl -sS --fail --retry 3 "https://api.handlehaul.com/v1/tiktok/users/mila.studio" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

One object in data and meta with what the call cost. Example values, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": {
    "id": "6800603536904605282",
    "sec_uid": "MS4wLjABAAAAFjCNJUq7pGOuS6YC8bTNAHRKWqIShz6s9C1EkRYtfRk",
    "handle": "mila.studio",
    "nickname": "Mila Studio",
    "avatar_url": "https://p16-sign.tiktokcdn-us.com/…/avatar/6800603536904605282~c5_1080x1080.jpeg",
    "is_verified": false,
    "is_private": false,
    "url": "https://www.tiktok.com/@mila.studio",
    "counts": {
      "followers": 340593,
      "following": 913,
      "likes": 10558383,
      "videos": 933
    },
    "bio": "Sample TikTok profile for mila.studio.",
    "bio_link": null,
    "region": "US",
    "language": "en",
    "created_at": "2024-06-13T00:53:20.000Z"
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per call. At $1.40 to $0.80 per 1,000 calls. Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • No lookup credit. The profile call is the lookup. Store the id and sec_uid it returns for the other endpoints.
  • Cache. Answers are cached for 60 seconds, so polling once a minute or less often always gets a live answer. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Private accounts. The profile still comes back, with is_private: true; their lists and posts answer 403 private_account (free).
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • counts here are exact. The author.counts embedded in post lists are rounded by TikTok on big accounts, so take growth numbers from this endpoint.
  • Handles can change; sec_uid and id do not. Store them as the key for the account.
  • A handle made only of digits must be sent as @12345: an all-digit value is read as a numeric user id.
  • Private accounts still return their profile, with is_private: true; only their lists answer private_account. region, language and created_at are null when TikTok does not expose them.

Next steps

TikTok profile API: questions

Does the TikTok profile call add a lookup credit for a handle?
No. The profile call is the lookup, so it never adds lookup credits. Store the sec_uid it returns and send that to the list endpoints.
How do I get the total likes of a TikTok account?
Read data.counts.likes: the total likes the account has received. counts.videos is its public post count and counts.followers the exact follower count.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.