Endpoints Overview
| Endpoint | Description | Credits |
|---|---|---|
POST /tiktok/posts | Get user’s posts | 1 + 1/post |
POST /tiktok/comments | Get post comments | 1 + 0.5/comment |
POST /tiktok/bulk/posts | Get posts from multiple users | 2 + 1/post |
POST /tiktok/hashtag/posts | Search posts by hashtag | 2 + 1/post |
Get User Posts
Fetch posts from a TikTok user’s profile.Basic Request
With Pagination
With ML Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
username | string | Yes | - | TikTok username (without @) |
limit | integer | No | 10 | Posts to fetch (1-100) |
cursor | string | No | - | Pagination cursor |
enrich | array | No | - | ML enrichments |
categories | object | No | - | Custom topic categories |
llm_provider | string | No | gemini-2.0-flash | LLM for enrichment |
Response
Get Post Comments
Fetch comments from one or more TikTok posts.Single Post
Multiple Posts
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
post_urls | array | Yes | - | List of TikTok post URLs |
limit_per_post | integer | No | 50 | Comments per post (1-500) |
enrich | array | No | - | ML enrichments |
Response
Bulk Get User Posts
Fetch posts from multiple TikTok users in one request.Request
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
usernames | array | Yes | - | List of usernames |
limit_per_user | integer | No | 10 | Posts per user (1-100) |
enrich | array | No | - | ML enrichments |
Response
Search Hashtag Posts
Search TikTok posts by hashtags.Single Hashtag
Multiple Hashtags with Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hashtags | array | Yes | - | Hashtags to search (1-10) |
days | integer | No | 7 | Look back period (1-30) |
max_posts_per_hashtag | integer | No | 100 | Max posts per tag (1-500) |
enrich | array | No | - | ML enrichments |
categories | object | No | - | Custom topic categories |