API DocstiktokSearchSearch ads
Search ads
What this API is for
- Search ads in TikTok's Creative Center with multi-dimensional filtering and sorting
- Discover effective ad cases related to specific industries, keywords, or objectives
- Provide reference and inspiration for ad planning and creative production
POST
/openapi/api/v1/tiktok/ads/search_adsPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- keyword: Search keyword, optional, returns all ads if empty
- objective: Optional ad objective; omit it to include all objectives
- like: Optional performance percentile; omit it to include all percentiles
- period: Time period in days, e.g., 7, 30, 120, 180 days
- industry: Industry ID list, multiple IDs separated by commas. Full industry ID list:
- page: Page number, default 1
- limit: Items per page, default 20, max 50
- order_by: Sort method, "for_you"=Recommended, "likes"=Sort by likes
- country_code: Country code, e.g., US, UK, JP
- ad_format: Optional ad format; 1=Spark Ads, 2=Non-Spark Ads
- ad_language: Optional ad language code, e.g., en, zh-Hant
- duration: Optional video duration filter value
- pattern_label: Optional creative pattern label
- cookie: Custom Cookie string, optional parameter, can be used to fetch more data
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| objective | body / integer | null | No |
| |
| like | body / integer | null | No |
| |
| period | body / integer | No |
| |
| industry | body / string | No |
| |
| keyword | body / string | No |
| |
| page | body / integer | No |
| |
| limit | body / integer | No |
| |
| order_by | body / string | No |
| |
| country_code | body / string | No |
| |
| ad_format | body / integer | null | No |
| |
| ad_language | body / string | null | No |
| |
| duration | body / integer | null | No |
| |
| pattern_label | body / string | null | No |
| |
| search_id | body / string | No |
| |
| cookie | body / string | No |
|
Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/tiktok/ads/search_ads" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- materials: List of ad materials
- id: Ad material ID
- aweme_id: Ad video ID
- desc: Ad description
- create_time: Creation time
- video_info: Video information
- cover: Cover image URL
- duration: Duration in seconds
- statistics: Statistics
- digg_count: Number of likes
- comment_count: Number of comments
- share_count: Number of shares
- ads_info: Ad information
- advertiser_name: Advertiser name
- landing_page: Landing page URL
- pagination: Pagination info
- page: Current page
- limit: Items per page
- total: Total count
- has_more: Whether there are more items
| Field | Type | Notes | Example |
|---|---|---|---|
| materials | unknown |
| |
| id | unknown |
| |
| aweme_id | unknown |
| |
| desc | unknown |
| |
| create_time | unknown |
| |
| video_info | unknown |
| |
| cover | unknown |
| |
| duration | unknown |
| |
| statistics | unknown |
| |
| digg_count | unknown |
| |
| comment_count | unknown |
| |
| share_count | unknown |
| |
| ads_info | unknown |
| |
| advertiser_name | unknown |
| |
| landing_page | unknown |
| |
| pagination | unknown |
| |
| page | unknown |
| |
| limit | unknown |
| |
| total | unknown |
| |
| has_more | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples