Discover/library.tiktok.com API
live

library.tiktok.com APIlibrary.tiktok.com

Search TikTok's Commercial Content Library by advertiser name or keyword. Get ad targeting, creative format, dates, and audience data via 3 structured endpoints.

Endpoints
3
Updated
10d ago
Try it
Number of results per page (max 50)
Search query (advertiser name or keyword)
Pagination offset (0-based). Requires search_id from a previous response for values > 0.
Region/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_suppo
Sort order: 'last_shown_date,desc' or 'last_shown_date,asc'
End of date range as Unix timestamp (seconds). Defaults to now.
Search ID returned from a previous search_ads call. Required when offset > 0 to paginate t
Start of date range as Unix timestamp (seconds). Defaults to 1 year ago.
api.parse.bot/scraper/8a656d95-c7a6-406d-b28e-6b6f91cf8493/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/8a656d95-c7a6-406d-b28e-6b6f91cf8493/search_ads?limit=5&query=nike&offset=0&region=all' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search the TikTok Ad Library for ads matching a query (advertiser name or keyword). Returns paginated results with ad metadata. For pagination beyond the first page, pass the search_id from the previous response along with the desired offset.

Input
ParamTypeDescription
limitintegerNumber of results per page (max 50)
queryrequiredstringSearch query (advertiser name or keyword)
offsetintegerPagination offset (0-based). Requires search_id from a previous response for values > 0.
regionstringRegion/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes.
sort_bystringSort order: 'last_shown_date,desc' or 'last_shown_date,asc'
end_timeintegerEnd of date range as Unix timestamp (seconds). Defaults to now.
search_idstringSearch ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
start_timeintegerStart of date range as Unix timestamp (seconds). Defaults to 1 year ago.
Response
{
  "type": "object",
  "fields": {
    "ads": "array of ad objects with ad_id, advertiser_name, creative_format, first_shown_date, last_shown_date, estimated_audience, video_thumbnail_url, video_url, image_urls",
    "limit": "integer current page size",
    "query": "string the query used",
    "total": "integer total number of matching ads",
    "offset": "integer current offset",
    "region": "string the region filter used",
    "has_more": "boolean indicating if more pages are available",
    "search_id": "string identifier for paginating subsequent requests"
  },
  "sample": {
    "data": {
      "ads": [
        {
          "ad_id": "1863836516205570",
          "video_url": "https://library.tiktok.com/api/v1/cdn/...",
          "image_urls": [],
          "advertiser_name": "nikeelopes",
          "creative_format": "video",
          "last_shown_date": "2026-04-30",
          "first_shown_date": "2026-04-30",
          "estimated_audience": "1K-10K",
          "video_thumbnail_url": "https://p19-common-sign-useastred.tiktokcdn-eu.com/..."
        }
      ],
      "limit": 5,
      "query": "nike",
      "total": 1000,
      "offset": 0,
      "region": "all",
      "has_more": true,
      "search_id": "20260501085819807F49204B729F806D0B"
    },
    "status": "success"
  }
}

About the library.tiktok.com API

This API provides access to TikTok's Commercial Content Library through 3 endpoints, covering ad search, ad details, and supported regions. The search_ads endpoint returns paginated results including ad IDs, advertiser names, creative format, first and last shown dates, and estimated audience ranges. The get_ad_details endpoint exposes full targeting breakdowns — location, age, gender — plus video URLs and image assets for any specific ad.

Search TikTok Ad Library

The search_ads endpoint accepts a required query string (advertiser name or keyword) and returns an array of ad objects alongside a total count and a has_more flag. Each ad object includes ad_id, advertiser_name, creative_format (video or image), first_shown_date, last_shown_date, and estimated_audience. Results can be filtered by region (using ISO country codes like FR, GB, or DE, or all for global), by date range using Unix timestamps (start_time / end_time), and sorted by last_shown_date ascending or descending.

Pagination

For results beyond the first page, pass the search_id string returned in the initial response along with the desired offset. The search_id ties subsequent requests to the same result set, so omitting it when offset > 0 will not return correct results. Page size is controlled by limit (max 50).

Ad Details and Targeting

The get_ad_details endpoint takes an ad_id (obtained from search_ads) and returns the full ad record: targeting object with locations, age, gender, and audience criteria; video_url; image_urls array; creative_format; and ISO-formatted first_shown_date / last_shown_date. All endpoints accept an optional lang parameter (e.g. en-US, fr-FR) to localize text fields in the response.

Supported Regions

The get_supported_regions endpoint returns the full list of country codes and names accepted by the region filter in search_ads. Coverage is limited to European regions. Each region object contains a code and a localized name, which varies based on the lang parameter supplied.

Common use cases
  • Track competitor ad campaigns on TikTok by querying search_ads with an advertiser name and monitoring first_shown_date and last_shown_date.
  • Audit ad targeting strategies by pulling targeting breakdowns (age, gender, location) from get_ad_details for any ad ID.
  • Build a creative asset archive by collecting video_url and image_urls returned by get_ad_details across multiple ad IDs.
  • Filter ad activity within a specific date window using start_time and end_time Unix timestamps in search_ads.
  • Identify which creative formats (video vs. image) are most active for a given advertiser using creative_format across paginated search results.
  • Enumerate all filterable European markets for a regional ad analysis tool using the get_supported_regions endpoint.
  • Sort ads by recency with sort_by: last_shown_date,desc to surface the newest active creatives for a given keyword.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does TikTok provide an official developer API for its Ad Library?+
TikTok provides a Commercial Content Library web interface at library.tiktok.com but does not offer a documented public developer API for programmatic ad data access. This Parse API surfaces that data in a structured, queryable format.
What does the `get_ad_details` endpoint return for targeting, and what is not included?+
It returns a targeting object with locations, age, gender, and audience criteria, plus video_url, image_urls, estimated_audience, and ISO-formatted impression dates. Detailed budget data, impression counts, and click metrics are not currently returned. The API covers creative and targeting metadata. You can fork it on Parse and revise to add any additional fields if TikTok's library exposes them.
Is ad coverage available for regions outside Europe?+
Currently the get_supported_regions endpoint returns only European region codes, and the region filter in search_ads is scoped to those same regions. Non-European markets are not covered by the current implementation. You can fork the API on Parse and revise it to add support for additional regions if they become available in TikTok's library.
How does pagination work when there are more than 50 results?+
The first request to search_ads returns a search_id string. To fetch subsequent pages, pass that search_id together with the desired offset value. Without the search_id, requests with offset > 0 will not correctly continue the same result set. The has_more boolean indicates whether additional pages exist.
Can I retrieve organic TikTok posts or influencer content through this API?+
No. The API is scoped to TikTok's Commercial Content Library, which contains paid ads only. Organic posts, creator profiles, video engagement metrics, and non-commercial content are not covered. You can fork the API on Parse and revise it to point at a different TikTok data source if organic content is needed.
Page content last updated . Spec covers 3 endpoints from library.tiktok.com.
Related APIs in Social MediaSee all →
tiktok.com API
Retrieve detailed information about any public TikTok video including captions, media URLs, view counts, likes, and shares, plus access all comments posted on that video. Perfect for analyzing trending content, monitoring video performance, or building applications that need TikTok video data.
github.com API
Look up GitHub repositories and users: search repositories, fetch repository metadata, releases, issues and issue threads, browse repository files/trees, and retrieve user profiles and starred repositories.
facebook.com Ad Library API
Search and retrieve detailed information about ads running on Facebook, including creative content, audience targeting parameters, and transparency metrics. Access comprehensive ad data across multiple campaigns to monitor advertising trends and competitive activity.
metacareers.com API
Search and browse Meta job openings across all departments and locations. Filter by keyword, experience level, or role category — including University Graduate and AR/VR specializations — and retrieve comprehensive details for each listing, including job description, requirements, salary range, and application link.
guba.eastmoney.com API
Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.
op.gg API
Look up detailed League of Legends and TFT player statistics, match history, and champion performance data to analyze gameplay and track competitive standings. Search summoner profiles, review leaderboards, and monitor how specific champions perform across different skill levels.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
gitee.com API
Search and explore Gitee repositories by category, view repository metadata and contents, and discover projects from specific users. Access commit history, file structures, and repository details all in one place.