TikTok API endpoint
Use Crawlora's TikTok Creative Center Videos API to extract supported public TikTok data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/tiktok/creative-center/videosReturns TikTok Creative Center's ranked trending videos for a country, period, and sort order. TikTok reports the true result-set size (see total_count/page_count in the response) but gates access to it behind a logged-in TikTok One account: an anonymous request always receives page 1 (4 videos) regardless of sort order or period. Country coverage is uneven: US, JP, ID, VN, and TH reliably return populated results; other countries have been observed to return an empty videos array (a genuine no-data response, not an error). Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| country_code | string | Yes | ISO-2 country code | ||
| period | integer | No | Lookback window in days Allowed values: 7, 30 | ||
| sort_by | string | No | Sort order Allowed values: views, engagement, six_second_views | ||
| content_label_id | string | No | Content tag id to filter by | ||
| organic_only | boolean | No | Restrict to organic (non-paid) videos only |
curl -X GET "https://api.crawlora.net/api/v1/tiktok/creative-center/videos?period=7&sort_by=views&organic_only=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Some targets require real browser execution because the data is loaded through JavaScript, dynamic rendering, or interaction-like browser behavior.
For supported endpoints, Crawlora can route requests through a managed browser cluster. This allows Crawlora to execute JavaScript, load dynamic content, apply browser-level request behavior, and normalize the rendered result into JSON.
You do not need to operate your own Playwright, Puppeteer, Chrome, proxy, queue, or retry infrastructure.
- TikTok reports the true result-set size (`total_count`, `page_count`) but gates access to it behind a logged-in TikTok One account: an anonymous request always receives page 1 (4 videos) regardless of sort order or period. This was verified live for both periods and all three sort orders. - Country coverage is uneven and depends on TikTok's regional edge for each market. `US`, `JP`, `ID`, `VN`, and `TH` reliably return populated results. Other countries tried live (GB, BR, FR, DE, KR, MX, PH, SG, MY, IT, ES, AU, CA) returned a valid response with an empty `videos` array and no `total_count`/`page_count` - a genuine "no data for this market" response, not an error. Treat an empty result for one of those countries as expected upstream behavior, not a bug. - Nonzero TikTok upstream response codes are returned as upstream errors. - `video_views`/`organic_video_views` and their `_lifetime` counterparts are scoped to the requested period vs. the video's full lifetime respectively. - `engagement_rate` and `six_seconds_vtr` are ratios, not percentages. Example response: ```json { "code": 200, "msg": "OK", "data": { "videos": [ { "item_id": "7662909267317509407", "title": "anyone else", "video_url": "https://example.tiktokcdn.com/video.mp4", "cover_url": "https://example.tiktokcdn.com/cover.jpg", "content_type": 1, "create_time": 1784160116, "content_tags": [ { "id": "11015", "name": "Technology & Finance" } ], "author_id": "7046946248401616902", "author_handle": "x.ody", "author_nickname": "ody", "author_avatar_url": "https://example.tiktokcdn.com/avatar.jpeg", "author_follower_count": 787488, "video_views": 79011161, "video_views_lifetime": 79032186, "organic_video_views": 11197094, "organic_video_views_lifetime": 11218118, "engagement_rate": 0.0101, "engagement_rate_lifetime": 0.0101, "six_seconds_vtr": 0.036, "six_seconds_vtr_lifetime": 0.036 } ], "total_count": 100, "page_count": 25 } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Invalid input | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
| 503 | Upstream failure | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"videos": [
{
"item_id": "7662909267317509407",
"title": "anyone else",
"video_url": "https://example.tiktokcdn.com/video.mp4",
"cover_url": "https://example.tiktokcdn.com/cover.jpg",
"content_type": 1,
"create_time": 1784160116,
"content_tags": [
{
"id": "11015",
"name": "Technology & Finance"
}
],
"author_id": "7046946248401616902",
"author_handle": "x.ody",
"author_nickname": "ody",
"author_avatar_url": "https://example.tiktokcdn.com/avatar.jpeg",
"author_follower_count": 787488,
"video_views": 79011161,
"video_views_lifetime": 79032186,
"organic_video_views": 11197094,
"organic_video_views_lifetime": 11218118,
"engagement_rate": 0.0101,
"engagement_rate_lifetime": 0.0101,
"six_seconds_vtr": 0.036,
"six_seconds_vtr_lifetime": 0.036
}
],
"total_count": 100,
"page_count": 25
}
}Request schema
No body schema
Response schema
#/definitions/creativecenter.trendingVideosResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | creativecenter.TrendingVideosResp | No | ||||
| data.page_count | integer | No | ||||
| data.total_count | integer | No | ||||
| data.videos | array | No | ||||
| data.videos[].author_avatar_url | string | No | ||||
| data.videos[].author_bio | string | No | ||||
| data.videos[].author_follower_count | integer | No | ||||
| data.videos[].author_handle | string | No | ||||
| data.videos[].author_id | string | No | ||||
| data.videos[].author_nickname | string | No | ||||
| data.videos[].content_tags | array | No | ||||
| data.videos[].content_tags[].id | string | No | ||||
| data.videos[].content_tags[].name | string | No | ||||
| data.videos[].content_type | integer | No | ||||
| data.videos[].cover_url | string | No | ||||
| data.videos[].create_time | integer | No | ||||
| data.videos[].engagement_rate | number | No | ||||
| data.videos[].engagement_rate_lifetime | number | No | ||||
| data.videos[].item_id | string | No | ||||
| data.videos[].organic_video_views | integer | No | ||||
| data.videos[].organic_video_views_lifetime | integer | No | ||||
| data.videos[].six_seconds_vtr | number | No | ||||
| data.videos[].six_seconds_vtr_lifetime | number | No | ||||
| data.videos[].title | string | No | ||||
| data.videos[].video_url | string | No | ||||
| data.videos[].video_views | integer | No | ||||
| data.videos[].video_views_lifetime | integer | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tiktok/creative-center/videos?period=7&sort_by=views&organic_only=true" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms