Piloterr Tiktoktopads API
The Tiktoktopads API from Piloterr — 2 operation(s) for tiktoktopads.
The Tiktoktopads API from Piloterr — 2 operation(s) for tiktoktopads.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/piloterr-com:piloterr-com-tiktoktopads-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Piloterr API Reference Tiktoktopads API
description: Complete API reference documentation.
version: 1.0.0
servers:
- url: https://api.piloterr.com
description: API Server
tags:
- name: Tiktoktopads
paths:
/v2/tiktoktopads/search:
get:
summary: TikTok Top Ads Search
description: 'Search TikTok Creative Center Top Ads by region, objective, period, and keyword. Returns ad cards and pagination (1 credit).
**Credit cost:** 1 credit per call'
operationId: get-tiktoktopads-search
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: false
description: "Full TikTok Top Ads search URL, or a keyword.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR"
schema:
type: string
description: "Full TikTok Top Ads search URL, or a keyword.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR"
- name: keyword
in: query
required: false
description: Brand or product keyword.
schema:
type: string
description: Brand or product keyword.
- name: region
in: query
required: false
description: "ISO country code (`country_code`).\n\n**Example:**\n\n AR"
schema:
type: string
description: "ISO country code (`country_code`).\n\n**Example:**\n\n AR"
- name: objective
in: query
required: false
description: "Campaign objective id (URL param `object`).\n\n**Example:**\n\n 4"
schema:
type: string
description: "Campaign objective id (URL param `object`).\n\n**Example:**\n\n 4"
- name: period
in: query
required: false
description: 'Lookback window: `7`, `30`, or `180`.'
schema:
type: string
default: '30'
description: 'Lookback window: `7`, `30`, or `180`.'
- name: order_by
in: query
required: false
description: 'Sort: `for_you`, `reach`/`impression`, `ctr`/`like`.'
schema:
type: string
description: 'Sort: `for_you`, `reach`/`impression`, `ctr`/`like`.'
- name: industry
in: query
required: false
description: Industry key filter.
schema:
type: string
description: Industry key filter.
- name: page
in: query
required: false
description: Page number.
schema:
type: number
description: Page number.
- name: per_page
in: query
required: false
description: Page size (max 20).
schema:
type: number
description: Page size (max 20).
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
results:
type: array
items:
type: object
properties:
ctr:
type: number
url:
type: string
cost:
type: integer
ad_id:
type: string
format:
type: string
headline:
type: string
image_url:
type: string
objective:
type: string
video_url:
type: string
like_count:
type: integer
industry_key:
type: string
advertiser_name:
type: string
pagination:
type: object
properties:
next:
type: string
page:
type: integer
cursor:
type: string
per_page:
type: integer
total_pages:
type: integer
total_results:
type: integer
examples:
Argentina last 30 days:
value:
results:
- ctr: 0.97
url: https://ads.tiktok.com/business/creativecenter/topads/7683821191329005569/pc/en?period=30
cost: 0
ad_id: '7683821191329005569'
format: video
headline: DESCUBRE
image_url: https://p16.tiktokcdn.com/cover.jpg
objective: campaign_objective_lead_generation
video_url: https://v16.tiktokcdn.com/video.mp4
like_count: 4120
industry_key: label_10104000000
advertiser_name: Example Brand
pagination:
next: https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR&page=2
page: 1
cursor: '2'
per_page: 20
total_pages: 3
total_results: 47
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Tiktoktopads
post:
summary: TikTok Top Ads Search
description: 'Search TikTok Creative Center Top Ads by region, objective, period, and keyword. Returns ad cards and pagination (1 credit).
**Credit cost:** 1 credit per call'
operationId: post-tiktoktopads-search
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: "Full TikTok Top Ads search URL, or a keyword.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR"
keyword:
type: string
description: Brand or product keyword.
region:
type: string
description: "ISO country code (`country_code`).\n\n**Example:**\n\n AR"
objective:
type: string
description: "Campaign objective id (URL param `object`).\n\n**Example:**\n\n 4"
period:
type: string
default: '30'
description: 'Lookback window: `7`, `30`, or `180`.'
order_by:
type: string
description: 'Sort: `for_you`, `reach`/`impression`, `ctr`/`like`.'
industry:
type: string
description: Industry key filter.
page:
type: number
description: Page number.
per_page:
type: number
description: Page size (max 20).
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
results:
type: array
items:
type: object
properties:
ctr:
type: number
url:
type: string
cost:
type: integer
ad_id:
type: string
format:
type: string
headline:
type: string
image_url:
type: string
objective:
type: string
video_url:
type: string
like_count:
type: integer
industry_key:
type: string
advertiser_name:
type: string
pagination:
type: object
properties:
next:
type: string
page:
type: integer
cursor:
type: string
per_page:
type: integer
total_pages:
type: integer
total_results:
type: integer
examples:
Argentina last 30 days:
value:
results:
- ctr: 0.97
url: https://ads.tiktok.com/business/creativecenter/topads/7683821191329005569/pc/en?period=30
cost: 0
ad_id: '7683821191329005569'
format: video
headline: DESCUBRE
image_url: https://p16.tiktokcdn.com/cover.jpg
objective: campaign_objective_lead_generation
video_url: https://v16.tiktokcdn.com/video.mp4
like_count: 4120
industry_key: label_10104000000
advertiser_name: Example Brand
pagination:
next: https://ads.tiktok.com/business/creativecenter/inspiration/topads/pc/en?period=30®ion=AR&page=2
page: 1
cursor: '2'
per_page: 20
total_pages: 3
total_results: 47
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Tiktoktopads
/v2/tiktoktopads/ad:
get:
summary: TikTok Top Ads Ad
description: 'Get one TikTok Creative Center Top Ad by URL or id: creative, landing page, CTR, and engagement (1 credit).
**Credit cost:** 1 credit per call'
operationId: get-tiktoktopads-ad
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: true
description: "Ad id or detail URL from search.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30"
schema:
type: string
description: "Ad id or detail URL from search.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30"
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
ctr:
type: number
url:
type: string
cost:
type: integer
ad_id:
type: string
format:
type: string
source:
type: string
duration:
type: number
headline:
type: string
countries:
type: array
items:
type: string
image_url:
type: string
objective:
type: string
video_url:
type: string
like_count:
type: integer
objectives:
type: array
items:
type: object
properties:
label:
type: string
value:
type: integer
voice_over:
nullable: true
share_count:
type: integer
industry_key:
type: string
keyword_list:
nullable: true
landing_page:
type: string
comment_count:
type: integer
advertiser_name:
type: string
examples:
Crafted Elements creative:
value:
ctr: 0.22
url: https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30
cost: 1
ad_id: '7686267188656750612'
format: video
source: TikTok Ads Manager
duration: 32.9
headline: 25% Off Our Popular Juice Groove Router Jig. Limited Time Sale!
countries:
- US
image_url: https://p16.tiktokcdn.com/detail-cover.jpg
objective: campaign_objective_conversion
video_url: https://v16.tiktokcdn.com/detail.mp4
like_count: 39
objectives:
- label: campaign_objective_conversion
value: 3
voice_over: null
share_count: 1
industry_key: label_21103000000
keyword_list: null
landing_page: https://craftedelements.com/products/juice-groove-router-jig
comment_count: 0
advertiser_name: crafted elements
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Tiktoktopads
post:
summary: TikTok Top Ads Ad
description: 'Get one TikTok Creative Center Top Ad by URL or id: creative, landing page, CTR, and engagement (1 credit).
**Credit cost:** 1 credit per call'
operationId: post-tiktoktopads-ad
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: "Ad id or detail URL from search.\n\n**Example:**\n\n https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30"
required:
- query
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
ctr:
type: number
url:
type: string
cost:
type: integer
ad_id:
type: string
format:
type: string
source:
type: string
duration:
type: number
headline:
type: string
countries:
type: array
items:
type: string
image_url:
type: string
objective:
type: string
video_url:
type: string
like_count:
type: integer
objectives:
type: array
items:
type: object
properties:
label:
type: string
value:
type: integer
voice_over:
nullable: true
share_count:
type: integer
industry_key:
type: string
keyword_list:
nullable: true
landing_page:
type: string
comment_count:
type: integer
advertiser_name:
type: string
examples:
Crafted Elements creative:
value:
ctr: 0.22
url: https://ads.tiktok.com/business/creativecenter/topads/7686267188656750612/pc/en?period=30
cost: 1
ad_id: '7686267188656750612'
format: video
source: TikTok Ads Manager
duration: 32.9
headline: 25% Off Our Popular Juice Groove Router Jig. Limited Time Sale!
countries:
- US
image_url: https://p16.tiktokcdn.com/detail-cover.jpg
objective: campaign_objective_conversion
video_url: https://v16.tiktokcdn.com/detail.mp4
like_count: 39
objectives:
- label: campaign_objective_conversion
value: 3
voice_over: null
share_count: 1
industry_key: label_21103000000
keyword_list: null
landing_page: https://craftedelements.com/products/juice-groove-router-jig
comment_count: 0
advertiser_name: crafted elements
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Tiktoktopads
components:
parameters:
fields:
name: fields
in: query
required: false
description: Comma-separated list of response fields to return, with dot notation for nested fields (e.g. `name,location.city`).
schema:
type: string
is_async:
name: is_async
in: query
required: false
description: 'Run the request as a background job: the API answers `202` with a `job_id` to poll on `GET /v1/jobs/{id}`.'
schema:
type: boolean
default: false
soft_fail:
name: soft_fail
in: query
required: false
description: Return HTTP 200 even when the request fails; the error is in the `error` field of the body.
schema:
type: boolean
default: false
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Your API key. Include it in the x-api-key header for every request.