Profiles, videos, comments & TikTok Shop in one API
Advanced TikTok API
The Advanced TikTok API scrapes TikTok live and returns clean JSON: pass a profile, video or TikTok Shop product URL and get followers, engagement rates, video stats, comment threads and product prices back in a single GET request. No TikTok developer account, no login, no session cookies.
Six endpoints cover the platform: profile stats and bio, individual video data (plays, likes, shares, comments count, music, hashtags), comment arrays, recent videos of a profile, and TikTok Shop products with price, currency, availability and seller. Trim any response with fields= to keep only what you need.
Free tier included, no credit card required. One key works across all 49 APIs.
- Endpoints
- 6
- Response Time
- 5-45s
- Data Freshness
- Live
Key features
- Profile stats, engagement rates and bio by URL or @username
- Video data: plays, likes, shares, comments count, music, hashtags
- Comment threads and recent profile videos as arrays (limit 1-50)
- TikTok Shop products: title, price, currency, availability, seller
- Live scraping, no TikTok developer account or login required
- fields= selection to trim responses to just the fields you need
Built for
- Influencer discovery and vetting
- Social listening and trend research
- Creator and campaign analytics dashboards
- TikTok Shop price and product monitoring
Try it
Build the request for your data
Edit the parameters below and see the exact curl command and JSON response you will get. No key required to preview.
Parameters
GET /tiktok/v1/profile?username=tiktok HTTP/1.1
Host: api.apicodex.io
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
{
"type": "profile",
"url": "https://www.tiktok.com/@tiktok",
"data": {
"account_id": "tiktok",
"nickname": "TikTok",
"biography": "One TikTok can make a big impact",
"followers": 92800000,
"following": 3,
"likes": 371400000,
"videos_count": 1057,
"is_verified": true,
"awg_engagement_rate": 0.021,
"comment_engagement_rate": 0.0009,
"like_engagement_rate": 0.0195
}
}Documentation
Advanced TikTok API Documentation
Six GET endpoints cover profiles, videos, comments, recent posts and TikTok Shop products. A fresh scrape usually returns in 5-45 seconds; comments, profile posts and Shop products may answer 202 with a snapshot_id you resolve via /v1/result, typically within 1-2 minutes.
Base URL
https://api.apicodex.io/tiktokAuthentication
Create a key at dash.apicodex.io and send it as an X-Api-Key header (or an ?apikey= query parameter) on every request. Calls without a valid key return 401.
GET /v1/profile?username=tiktok
X-Api-Key: YOUR_API_KEYRequest and response
Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.
GET /v1/profile?username=tiktok HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY{
"type": "profile",
"url": "https://www.tiktok.com/@tiktok",
"data": {
"account_id": "tiktok",
"nickname": "TikTok",
"biography": "One TikTok can make a big impact",
"followers": 92800000,
"following": 3,
"likes": 371400000,
"videos_count": 1057,
"is_verified": true,
"awg_engagement_rate": 0.021,
"comment_engagement_rate": 0.0009,
"like_engagement_rate": 0.0195
}
}Code examples
curl --request GET \
--url 'https://api.apicodex.io/tiktok/v1/profile?username=tiktok' \
--header 'X-Api-Key: YOUR_API_KEY'Available Endpoints
GET /v1/profile
Profile by URL or @username: account stats, engagement rates, bio.
/v1/profile?username=tiktokGET /v1/post
Video by URL: plays, likes, shares, comments count, music, hashtags.
/v1/post?url=https://www.tiktok.com/@tiktok/video/7000000000000000000GET /v1/comments
Comments of a video as an array (limit 1-50, default 10).
/v1/comments?url=https://www.tiktok.com/@tiktok/video/7000000000000000000&limit=10GET /v1/profile-posts
Recent videos of a profile as an array, by URL or username (limit 1-50).
/v1/profile-posts?username=tiktok&limit=10GET /v1/shop
TikTok Shop product: title, price, currency, availability, seller.
/v1/shop?url=https://shop.tiktok.com/view/product/1729543074742668078GET /v1/result
Fetch a pending scrape result using the snapshot_id from a 202 response.
/v1/result?snapshot_id=s_abc123Request Parameters
Required parameters
urlThe TikTok URL to scrape (profile, video or Shop product). On /v1/profile and /v1/profile-posts you may pass username instead.
Optional parameters
usernameHandle instead of a URL on /v1/profile and /v1/profile-posts; a leading @ is accepted and stripped.limitMax items on list endpoints (/v1/comments, /v1/profile-posts): 1-50, default 10.fieldsComma-separated top-level fields to keep in data. Works on single objects and on each item of an array.snapshot_idRequired on /v1/result only: the id returned by a 202 response.
Responsible use
Use public social data carefully
Only request data that is publicly accessible, and make sure your collection, storage, and use comply with applicable privacy laws and the relevant platform terms. Do not use these APIs to bypass access controls or to make decisions that require consent or human review.
Pricing
Advanced TikTok API Pricing
One key, one subscription, all 49 APIs. Start free and upgrade when you grow. No minimums, no lock-in.
This API costs 25 credits per request. Credits are shared across every API on your plan.
Estimate your monthly cost
Drag the slider to match your expected request volume. We will recommend the cheapest plan that covers it.
Recommended plan
Pro
$99.99 /month
Free
- All 49 APIs included
- No credit card required
- Full documentation and examples
Starter
Popular- All 49 APIs included
- Email support
- Usage dashboard and analytics
Pro
- All 49 APIs included
- Priority support
- Up to 5 API keys
Need a different plan?
Tell us about your API, volume, or support requirements.
Coming soon · MCP
Use the Advanced TikTok API from your AI agent
The API Codex MCP server will expose this API, and the other 39, to Claude, Cursor and any MCP client as tools. Same key, same credits, one config entry.
FAQ
Frequently asked questions
The official TikTok APIs require an approved developer account, app review and user authorization, and cover a limited slice of data. The Advanced TikTok API scrapes public pages live instead: no developer account, no OAuth, no login. You get profiles, videos, comments and even TikTok Shop products with a single API Codex key.
The API only returns publicly visible data: public profiles, public videos and their comments, and public TikTok Shop listings. It cannot access private accounts, DMs or anything behind a login. As with any scraped data, you are responsible for using it in line with applicable laws and your own compliance requirements.
Every request triggers a live scrape of TikTok at call time; nothing is served from a stale cache. Follower counts, video stats, comments and Shop prices reflect what is on the page right now, which is why responses take seconds rather than milliseconds.
Most scrapes finish synchronously in 5-45 seconds. When one exceeds the sync window (most common for /v1/comments, /v1/profile-posts and /v1/shop), the API answers 202 with a snapshot_id. Poll GET /v1/result?snapshot_id=... every few seconds; results are typically ready within 1-2 minutes.
Either works on /v1/profile and /v1/profile-posts. Pass url=https://www.tiktok.com/@username, or just username=handle; a leading @ is accepted and stripped, and the URL is built for you. Video and Shop endpoints need the full URL since it contains the item id.
/v1/shop?url= accepts TikTok Shop product URLs (shop.tiktok.com/..., including /us/pdp/<slug>/<id> and /view/product/<id> forms) and returns structured product data: title, initial and final price, currency, availability, seller and more. It is built for e-commerce monitoring, price tracking and competitor research.