Search ads

Browse registered social-data routes across platforms, then dive into detailed reference docs

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_ads

Price: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 headerAuthorization: Bearer YOUR_API_TOKEN

Request 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
NameLocation / typeRequiredNotesExample
objectivebody / integer | nullNo
  • Ad objective (optional; 1:流量 2:应用安装 3:转化 4:视频浏览 5:触达 6:潜在客户 7:产品销售)
likebody / integer | nullNo
  • Performance rank (optional; 1:前1-20% 2:前21-40% 3:前41-60% 4:前61-80% 5:前81-100%)
periodbody / integerNo
  • Time period (days)
industrybody / stringNo
  • Industry ID
keywordbody / stringNo
  • Search keyword
pagebody / integerNo
  • Page number
limitbody / integerNo
  • Items per page
order_bybody / stringNo
  • Sort by (for_you, likes)
country_codebody / stringNo
  • Country code
ad_formatbody / integer | nullNo
  • Ad format (optional; 1:Spark Ads 2:Non-Spark Ads)
ad_languagebody / string | nullNo
  • Ad language (optional)
durationbody / integer | nullNo
  • Video duration filter value (optional)
pattern_labelbody / string | nullNo
  • Creative pattern label (optional)
search_idbody / stringNo
  • Search ID (optional)
cookiebody / stringNo
  • 自定义Cookie字符串(可选)

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
FieldTypeNotesExample
materialsunknown
  • List of ad materials
idunknown
  • Ad material ID
aweme_idunknown
  • Ad video ID
descunknown
  • Ad description
create_timeunknown
  • Creation time
video_infounknown
  • Video information
coverunknown
  • Cover image URL
durationunknown
  • Duration in seconds
statisticsunknown
  • Statistics
digg_countunknown
  • Number of likes
comment_countunknown
  • Number of comments
share_countunknown
  • Number of shares
ads_infounknown
  • Ad information
advertiser_nameunknown
  • Advertiser name
landing_pageunknown
  • Landing page URL
paginationunknown
  • Pagination info
pageunknown
  • Current page
limitunknown
  • Items per page
totalunknown
  • Total count
has_moreunknown
  • Whether there are more items

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

Errors and limits

The docs cover not only success responses, but also auth failures, rate limits, and data-service errors

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples