TikTok's official API is restricted to approved partners and requires a lengthy review process. For most developers, marketers, and builders who just want basic public profile data β follower counts, engagement figures, recent videos β that approval never comes.
The TikTok Data Pro API on RapidAPI solves this. It exposes a clean REST endpoint that returns structured TikTok profile data for any public account. This guide shows you exactly how to use it, with working code examples in cURL, JavaScript, and Python.
What data does the API return?
A single call to /v1/profile returns:
Profile fields:
-
followers,following,totalLikes,totalVideos -
name,nickname,bio,verified -
profileUrl,avatar
Recent posts array β each with plays, likes, comments, shares, createdAt, videoUrl
Getting started
Subscribe to the free tier (500 calls, no credit card) at: https://rapidapi.com/bhaumikdhameliya30/api/tiktok-data-pro
Code examples
cURL
curl --request GET \
--url 'https://tiktok-data-pro.p.rapidapi.com/v1/profile?username=khaby.lame' \
--header 'x-rapidapi-host: tiktok-data-pro.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_API_KEY'
JavaScript
const response = await fetch(
'https://tiktok-data-pro.p.rapidapi.com/v1/profile?username=khaby.lame',
{
headers: {
'x-rapidapi-host': 'tiktok-data-pro.p.rapidapi.com',
'x-rapidapi-key': 'YOUR_API_KEY',
},
}
);
const data = await response.json();
console.log(data.data.followers);
console.log(data.posts);
Python
import requests
response = requests.get(
"https://tiktok-data-pro.p.rapidapi.com/v1/profile",
params={"username": "khaby.lame"},
headers={
"x-rapidapi-host": "tiktok-data-pro.p.rapidapi.com",
"x-rapidapi-key": "YOUR_API_KEY",
},
)
data = response.json()
print(data["data"]["followers"])
print(data["data"]["totalLikes"])
Sample response
{
"success": true,
"username": "khaby.lame",
"data": {
"followers": 160600000,
"totalLikes": 2600000000,
"totalVideos": 1314,
"verified": true
},
"posts": [
{
"plays": 6100000,
"likes": 463900,
"comments": 4696,
"shares": 14000
}
]
}
Calculating engagement rate
function engagementRate(posts, followers) {
const avg = posts.reduce((s, p) => s + p.likes + p.comments + p.shares, 0) / posts.length;
return ((avg / followers) * 100).toFixed(2);
}
Or use the free calculator (no code needed): https://scrapiq.in/tools/tiktok-engagement-calculator
Get started
500 free API calls, no credit card: https://rapidapi.com/bhaumikdhameliya30/api/tiktok-data-pro
Originally published at scrapiq.in
United States
NORTH AMERICA
Related News

Mattress Firm Coupons: Save up to $600
4h ago
π I Built a Dropshipping Automation Pipeline β Here's What I Learned (and What I'd Do Differently)
11h ago
How I Cut My LLM API Bill by 40x: A Freelancer's Migration Story
11h ago
Cursor AI Review 2026: The AI-Native Code Editor
8h ago

Another Model Rewrote My Memories. Here's How I Caught It.
8h ago