Social Media API
TikTok API
Turn any public TikTok video, profile, or hashtag into structured JSON — videos, comments, search, live rooms, and TikTok Shop data, without an official developer account.
- Fetch any public video, user, comment thread, or live room in one REST call
- Get TikTok Shop products, ads, and creator analytics no scraper library exposes
- Built for scale — 10 RPS default, volume pricing down to $0.0005/request
$0.05 free credit on sign-up · no credit card · from $0.001/request
One request, structured JSON
1curl -X GET "https://api.tikhub.io/api/v1/tiktok/app/v3/fetch_one_video?aweme_id=7350810998023949599" \2 -H "Authorization: Bearer YOUR_API_KEY"1{2 "code": 200,3 "data": {4 "aweme_id": "7350810998023949599",5 "desc": "Sample TikTok caption #fyp",6 "create_time": 1711305600,7 "statistics": {8 "play_count": 2140000,9 "digg_count": 128400,10 "comment_count": 3120,11 "share_count": 890,12 "collect_count": 1560013 },14 "author": {15 "unique_id": "username",16 "nickname": "Display Name",17 "follower_count": 540000,18 "verification_type": 119 },20 "video": { "duration": 18000, "play_addr": { "url_list": ["https://..."] } },21 "music": { "title": "original sound", "author": "username" }22 }23}Get your API key at user.tikhub.io/dashboard/api — or follow the getting-started guide.
What's in the TikTok API
TikHub's TikTok API gives you six dedicated API series covering the entire public TikTok surface: web and mobile-app data, creator analytics, trend intelligence, TikTok Shop e-commerce, and the ad library. Get structured JSON for any public video, account, hashtag, or live room — at $0.001 per request, with no app review and no OAuth flow.
TikTok Web API
TikTok App V3 API
TikTok Creator API
TikTok Analytics API
TikTok Shop Web API
TikTok Ads API
TikTok Shop & Ads data, not just videos
Most TikTok APIs and open-source scrapers stop at videos and profiles. TikHub ships dedicated TikTok Shop and Ads API series — product details and reviews, seller performance, shop analytics, the ad creative library, and ad engagement metrics — through the same API key and JSON format. That's the e-commerce and advertising surface competitors leave out.
TikTok API endpoints
A reference of the most-used TikTok endpoints. Browse the full set in the API reference or the documentation.
TikTok App V3 API (recommended)
The App V3 series is the most stable surface — prioritize it, and fall back to the Web series only when App V3 returns errors.
TikTok Shop API
Use the dedicated /tiktok/shop/web/* series for all Shop data. Shop endpoints can be briefly unstable and usually recover within 2–3 hours — retry after a short wait before reporting an issue.
TikTok Ads API (Creative Center)
TikTok Web API (fallback) & Creator API
Creator API endpoints are POST and require the creator account's own login cookie — you can only pull analytics for an account you own or are authorized to access.
Tips & troubleshooting
Hard-won operational notes for working with TikTok data in production.
Recommended API version
Prioritize the TikTok App V3 endpoints for stability, and use the TikTok Web endpoints only as a fallback when App V3 returns errors. App V3 is the most reliable surface; the Web series exists to cover the gaps.
Account region is a dedicated endpoint
A TikTok account's region is NOT included in the standard user-info endpoints. To get a creator's country, call the dedicated fetch_user_country_by_username endpoint instead.
1GET /api/v1/tiktok/app/v3/fetch_user_country_by_username?username=USERNAME2// docs: https://docs.tikhub.io/363841506e0Getting TikTok Shop product & seller IDs
To obtain a product_id or seller_id, fetch a TikTok video that contains a product link, then navigate the response JSON to $.data.anchors[0].extra — that object carries both IDs. Note that seller_id is distinct from user_id.
1// from a shoppable video's response2const extra = JSON.parse(data.aweme_detail.anchors[0].extra);3extra.product_id // → /tiktok/shop/web/fetch_product_detail_v34extra.seller_id // → /tiktok/shop/web/fetch_seller_products_list_v2TikTok Shop — use the dedicated series only
For all TikTok Shop data (products, sellers, shops, reviews, orders, and related commerce queries), call endpoints from the dedicated TikTok Web Shop series only — /api/v1/tiktok/shop/web/** — the only series actively maintained for Shop integrations. Deprecation notice: TikHub no longer maintains Shop endpoints inside the App V3 series (/api/v1/tiktok/app/v3/*) or the Web series (/api/v1/tiktok/web/*); any shop-style endpoints still appearing under those paths are legacy, are not receiving updates, and may return incomplete, stale, or missing data without notice. Note that the TikTok Web Shop series (/api/v1/tiktok/shop/web/**) is a distinct series from the TikTok Web series (/api/v1/tiktok/web/*) — they are not the same.
Video download URLs & 403 errors
TikTok video links come in three forms — play URLs, no-watermark URLs, and watermark URLs; prefer no-watermark content via the downloadAddr field. App URLs download directly without cookies (preferred); Web URLs require a valid tt_chain_token cookie, and without it the download returns a 403. Download links typically expire within ~24 hours, so if a link returns a 403 or an error, re-fetch the video to get a fresh URL. Some videos carry regional restrictions — route through an appropriate proxy if a download is blocked in your region.
Read-only: no interaction API
TikHub no longer offers a TikTok interaction API — there are no endpoints to like, follow, or comment on behalf of an account. The API is read-only by design and returns publicly available data only.
400 errors
A 400 usually means the target is gone. Verify the TikTok video or user is still available and public in the app before treating it as an API fault.
Live room info
The fetch_live_room_info endpoint only returns data while the live room is currently broadcasting — if the stream has ended or the room is offline, the API returns empty or null data. Verify status first with check_live_room_online. Anonymous viewers, and users with invisible mode enabled in live rooms, cannot be fetched via the API.
Comments & pagination
For comment endpoints, keep the requested count at 30 or fewer — a larger count can cause errors or missing items. Paginated endpoints (comments, search, etc.) often return fewer items than the requested count; that's normal pagination behavior, not a bug — keep paginating with the returned cursor to get more results.
Do I need a TikTok developer account to use this API?
No. Sign up for a free TikHub account, create an API key, and call REST endpoints. There is no TikTok developer application, app review, or OAuth flow — TikHub provides structured access to publicly available TikTok data.
Is using a TikTok API like this legal?
TikHub returns publicly available data — the same content anyone can see without logging in. US courts (hiQ v. LinkedIn) have held that scraping public data is not a CFAA violation. That said, TikTok's Terms of Service restrict automated access, so account or IP blocks are a real operational risk; TikHub manages that infrastructure for you. You are responsible for how you use, store, and process the data you retrieve.
What are the rate limits?
The default rate limit is 10 requests per second. RPS plans scale it up — 20 RPS at $5/month through 100 RPS at $55/month — and enterprise accounts get custom limits above 100 RPS.
Can I download TikTok videos without a watermark?
Yes. Video-detail responses include play addresses with no-watermark URLs (the downloadAddr field) you can download directly. App URLs work without a cookie; web URLs need a tt_chain_token cookie, and download links expire within about 24 hours, so re-fetch the video if a link returns a 403.
How much does the TikTok API cost?
Pay-as-you-go from $0.001 per request, with automatic daily volume discounts down to $0.0005 at 30,000+ requests/day. New accounts get $0.05 free credit (~50 requests) — no credit card required.
Can I get real-time TikTok live stream data?
Yes — beyond REST endpoints for live-room status, TikHub's Live Room API streams danmaku chat, gifts, likes, and member events over WebSocket in real time. See the Live Room API page for per-message pricing.
TikTok API: access public TikTok data without an official developer account in 2026
TikHub's TikTok API gives developers, marketers, and researchers a fast, reliable way to read public TikTok data — videos, profiles, comments, search, live rooms, and TikTok Shop — through plain REST calls, with no TikTok developer application or app review. Below is a deep look at how it works, what it's good for, where its limits are, and how it compares to the alternatives.
How does the TikTok API work?
What is the TikTok API?
The TikHub TikTok API is a RESTful interface that returns structured JSON for publicly available TikTok content. Instead of building and maintaining your own scraper — solving TikTok's request signing, rotating proxies, and parsing an undocumented internal response — you make a single authenticated HTTP request and get back clean, typed data for a video, account, hashtag, live room, or Shop product. It spans six dedicated series (Web, App V3, Creator, Analytics, Shop, and Ads) so you can read the entire public surface of the platform through one key.
Crucially, it does not require a TikTok developer account, app review, or OAuth flow. TikHub manages the infrastructure that makes public TikTok data accessible at scale, so you can focus on what you build with the data rather than on how to retrieve it.
How do you access and use the API?
Getting started is a three-step process: create a free TikHub account, generate an API key in the dashboard, and make an HTTP GET request with your key in the Authorization header. You identify the content you want with a simple parameter — a video ID, a username, a share URL, or a search term — and the API responds instantly with JSON.
Because it's a standard REST API, the approach is language- and framework-agnostic: it works from any backend, script, notebook, or no-code tool that can make an HTTP request. There's no SDK lock-in, though an official Python SDK is available if you prefer. Most endpoints accept either an ID or a public URL, so you can pass the same TikTok links your users already share.
What programming languages are supported?
Any language that can make an HTTP request can call the TikTok API — Python, JavaScript/TypeScript, Go, Java, PHP, Ruby, C#, and more. Python is the most common choice for data and AI workflows, and TikHub publishes an official Python SDK, but nothing about the API is Python-specific. The cURL, Python, and JavaScript examples above are interchangeable; the request shape is identical across stacks, which makes the API easy to drop into an existing service, a serverless function, or an automation platform.
What are the benefits of using the TikTok API?
How does it compare to building your own scraper?
Maintaining a TikTok scraper is a moving target. TikTok changes its web and app signatures frequently, blocks datacenter IPs aggressively, and returns deeply nested, undocumented responses that break parsers without warning. A team can spend weeks standing up a scraper and then a recurring fraction of every sprint keeping it alive.
The TikTok API removes that entire burden. TikHub absorbs the request signing, proxy rotation, anti-bot handling, and response normalization, and exposes a stable contract you can build against. You trade an open-ended maintenance liability for a predictable per-request cost — and you get six well-organized series, including Shop and Ads data that most home-grown scrapers never reach.
What are the time-saving advantages?
Instead of spending days reverse-engineering endpoints, you make a request and get structured data back in well under a second. That speed compounds across a project: collecting a creator's full post history, paginating thousands of comments for sentiment analysis, or pulling Shop catalogs for competitive monitoring all become a loop over a documented endpoint rather than a research exercise.
For teams, the bigger saving is opportunity cost. Engineers stop firefighting a brittle scraper and spend their time on the product — the analysis, the model, the dashboard — that actually differentiates what you're building.
Who benefits — developers, marketers, or researchers?
Developers get a clean data layer they can ship on without owning scraping infrastructure. Marketers and brand teams use it to vet influencers, track campaigns and hashtags, and monitor TikTok Shop competitors with real numbers instead of manual checks. Researchers and data scientists pull comment threads, search results, and trending content at scale for sentiment, virality, and content-moderation studies.
And increasingly, AI teams use it as a real-time and historical data source — feeding social signals into agents, building retrieval pipelines over social content, and assembling training corpora — because the responses are already structured JSON, ready to ingest.
What are the limitations of the TikTok API?
Are there rate limits or usage restrictions?
Yes. The default rate limit is 10 requests per second, which suits most workloads; higher RPS plans scale it to 100+ for high-volume collection. A practical detail to plan for: comment and search endpoints return paginated results, and you should keep the requested count at 30 or fewer per call — larger counts can cause errors or dropped items. Paginated endpoints also frequently return fewer items than requested, which is normal cursor-based pagination, not a fault; keep following the returned cursor to gather more.
What TikTok data is and isn't available?
The API returns publicly available data — anything a logged-out user could see. It does not expose private accounts, direct messages, or non-public analytics. TikHub also no longer offers interaction endpoints (liking, following, or commenting on behalf of an account); the API is read-only by design. Two surfaces have special handling worth knowing: a creator's region is not part of the standard user-info response (use the dedicated country endpoint), and live-room data only returns while a room is actively broadcasting.
How reliable is TikTok Shop data?
TikTok Shop endpoints are powerful but occasionally unstable — they can return intermittent errors that normally clear within two to three hours. The right pattern is to retry after a short wait before treating a failure as a bug. Also use the dedicated /tiktok/shop/web/* series for all commerce data; any Shop-style endpoints lingering under the App V3 or Web paths are legacy and may return incomplete or stale results.
What are common use cases for the TikTok API?
How is it used for content and trend analysis?
Researchers and marketing teams use the search, trending, and hashtag endpoints to map how a topic spreads — which creators seed it, how engagement compounds, and how it varies by region. Pulling a creator's full post history reveals cadence and performance patterns; aggregating comment threads supports sentiment and keyword analysis across thousands of videos. Together these make it possible to build searchable databases of TikTok content and to track topic evolution over time rather than guessing from a handful of viral clips.
How does it power AI and agents?
Because every response is structured JSON, the TikTok API drops cleanly into AI pipelines. Teams use it to assemble fine-tuning datasets, to power retrieval-augmented generation over social content, and to give autonomous agents real-time eyes on TikTok — for monitoring, research, or market signals. Comment and caption text feeds sentiment models; engagement statistics feed trend-prediction and trading models. The data arrives ready to ingest, which removes the brittle scraping step that usually sits between an idea and a working pipeline.
How is it used for e-commerce and TikTok Shop?
The dedicated Shop and Ads series turn TikTok into a competitive-intelligence source for commerce. Brands track competitor products, prices, and reviews; monitor seller performance and hot-selling lists; and study which ad creatives and sounds are trending in the Creative Center. A common pattern is to start from a shoppable video, extract the product and seller IDs from the response, and then pull full product and seller detail — building a live picture of how products move on the platform.
Are there alternatives to the TikTok API?
What other TikTok data tools exist?
There are three broad alternatives. Open-source libraries such as davidteather/TikTok-Api wrap TikTok's unofficial web API in Python; they're free and fine for hobby scripts but need a browser cookie and residential proxies, and they break when TikTok changes. Marketplace actors (for example on Apify) wrap similar scraping behind a hosted run. And TikTok's own developer products — the Display API and the Research API — are sanctioned but limited: the Display API only covers accounts that authorize your app, and the Research API is restricted to qualified academic institutions.
Which option is best for different needs?
For a quick one-off script with no reliability requirement, an open-source library can be enough. For sanctioned access to a small set of authorizing accounts, or for qualifying academic research, TikTok's official products are the right call. But for production workloads that need any public video, account, hashtag, live room, or Shop product — reliably, across six series, without maintaining scraping infrastructure — a managed API like TikHub is usually the most cost-effective choice. You pay per request, scale instantly, and never own the anti-bot arms race.
One key, every platform
The TikTok API shares its key and JSON format with 15 other platforms — adding Instagram or Douyin is a one-line change.