Top ads
Get top performing TikTok ads by country, industry, objective or keyword, from TikTok Creative Center.
Request
POST https://dev-backend.tryingrow.com/public-api/tiktok/get-top-adsSend your key in the x-api-key header and a JSON body.
Body
| Field | Type | Description |
|---|---|---|
ad_format | string | - '1': spark ads - '2': non-spark ads |
ad_language | string | Ads language. Supported language: 'en' | 'es' | 'ar' | 'vi' | 'th' | 'de' | 'id' | 'pt' | 'fr' | 'ms' | 'nl' | 'ja' | 'it' | 'ro' | 'zh-Hant' | 'ko'. You can use one or more languages: For example: 'en, es' |
country | string | Country code. Head [here](https://gist.githubusercontent.com/apiboxguru/21d1cff1bef7732d9533389cb540541f/raw/6669d1e0025b67e8c7a0a1649cd8c75c5d5d2803/tiktok_trending_support_countries_with_codes.json) for a full list of supported countries |
industry | string | Head to [here](https://gist.githubusercontent.com/apiboxguru/d36908ea2bbe307e81bcc09ccf59616b/raw/302b5a442df9a6efced1dc430fd64d10a8226aeb/tiktok-ads-industry-code.json) for a full list of Industry code. You can combine multiple industries by using a comma. For example: '22102000000,22101000000' |
keyword | string | Search ads keyword |
like | string | - '1': Top 1~20% - '2': Top 21~40% - '3': Top 41~60% - '4': Top 61~80% - '5': Top 81~100% |
limit | number | Max = '20' |
objective | string | - '1': Traffic - '2': App installs - '3': Conversions - '4': Video views - '5': Reach - '6': Lead generation - '7': Product sales |
order_by | string | - 'impression' (reach) - 'ctr' (CTR) - 'like' (like) - 'cvr' (CVR) - 'play_6s_rate' (6s view rate) - 'play_2s_rate' (2s view rate) |
page | number | |
period | number | Enum: '7' | '30' | '180' |
Example
curl -X POST https://dev-backend.tryingrow.com/public-api/tiktok/get-top-ads \
-H "x-api-key: $INGROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Response
JSON from TikTok, fetched live. Every response also carries two headers: x-cost-usd with what the call cost and x-balance-usd with the balance left. Errors: 402 when the balance or your monthly spend limit is too low, 429 when over the rate limit (wait for retry-after seconds).
Pricing and limits
- How much does the InGrow Top ads API cost?
- $0.003 per successful call, taken from your InGrow balance. Failed calls are refunded, and every new organization starts with $1 free credit.
- What is the rate limit of the Top ads API?
- 1 request per second per organization, shared by every TikTok endpoint. Over the limit returns 429 with a retry-after header.
- How do I call the Top ads API?
- Send POST https://dev-backend.tryingrow.com/public-api/tiktok/get-top-ads with a JSON body and your API key in the x-api-key header. The same key works through the InGrow MCP server.
More TikTok APIs
- UserGet a TikTok account's profile and follower, following, like and video counts, by username (uniqueId).$0.002
- User postsGet the videos posted by a TikTok account, by secUid from getUser.$0.002
- PostGet a TikTok video with its caption, author, music and engagement counts, by video id.$0.002
- Post commentsGet the comments on a TikTok video, by video id.$0.002
- Ad detailsGet the details and performance metrics of a TikTok ad, by ad id from getTopAds.$0.003
- HashtagGet a TikTok hashtag's id, view count and video count, by hashtag name.$0.002
- Hashtag postsGet the videos under a TikTok hashtag, by hashtag id or name.$0.002
- Trending searchesGet the searches trending on TikTok right now.$0.002
- Search suggestionsGet TikTok search suggestions for a keyword.$0.002