TikTok Ads Scraper avatar
TikTok Ads Scraper

Pricing

$30.00/month + usage

Go to Apify Store
TikTok Ads Scraper

TikTok Ads Scraper

Find and scrape current and past ads on TikTok. Get video URL, dates and locations, impressions, and more. Download and analyze data from the TikTok Ads Library for competitive analysis.

Pricing

$30.00/month + usage

Rating

5.0

(12)

Developer

Lexis Solutions

Lexis Solutions

Maintained by Community

Actor stats

47

Bookmarked

458

Total users

22

Monthly active users

4.1 hours

Issues response

3 days ago

Last modified

Categories

Share

banner

What is the TikTok Ads Scraper?

The TikTok Ads Scraper is designed to extract data from TikTok Ad Library. It enables users to gather information about ads displayed on TikTok. The scraper can be used for competitor analysis, ad copy brainstorming, and more.

What data can the TikTok Ads Scraper extract?

The TikTok Ads Scraper can extract the following data from the TikTok Ad Library:

  • Ad ID
  • Ad text
  • Ad impressions range
  • Ad shown countries
  • Impressions share by country (only EU countries)
  • Advertiser name
  • Advertiser ID
  • TikTok Video URL

and more.

What use cases does the TikTok Ads Scraper have?

  • Ad copy brainstorming and inspiration for your own ads ๐Ÿง 
  • Competitor analysis and benchmarking of your ads ๐Ÿ“Š
  • Advertiser research and analysis ๐Ÿ•ต๏ธโ€โ™€๏ธ

How to use the TikTok Ads Scraper

  1. Create a free Apify account
  2. Open TikTok Ads Scraper
  3. Add a query to the input field, this could be a company name, domain, or a search string that appears in the ad
  4. Click Start and wait for the results
  5. Download the results in JSON, XML or CSV format or connect the actor to your backend via API

๐Ÿ“ฅ Input

To run the actor, you can input a:

  • adIds (optional) - An array of specific ad IDs to scrape. When provided, the actor will skip the search functionality and directly fetch the detail pages for these ads. Example: ["1848459287600130", "1820197122833570"]

  • Query - A query to search for ads. This can be a company name, domain, or a search string that appears in the ad.

  • Advertiser Name - An advertiser name to search for ads.

  • startDate / endDate (optional) - Date range to filter ads (use ISO format YYYY-MM-DD). If startDate is omitted, it defaults to 1 year ago; if endDate is omitted, it defaults to the current time. If startDate is later than endDate, the default range (1 year ago โ†’ now) is applied. If endDate is in the future, the current time is used instead.

  • timezone (optional) - Timezone string (e.g., Europe/London). If left empty, the server's default timezone (UTC) is used.

  • quickSearch (optional) - When set to true, the scraper will skip the detail page requests and return data directly from the search results. This is faster but will result in missing fields (see Output section for details). Defaults to false.

Note: If adIds is provided, the actor will ignore all other search parameters (query, advertiserName, etc.) and directly fetch the specified ads.

You can provide either query, advertiserName, or both. When both are set, the actor prioritizes advertiserName (it tries to resolve the advertiser and, if it cannot, falls back to using the advertiser name as the query). If you leave query empty, set country to a specific region (anything except all).

๐Ÿ“ค Output

The results are stored in the default dataset associated with the actor. Each item is an ad, having the following format:

โš ๏ธ Note on quickSearch mode:
When quickSearch is enabled, the scraper skips detail page requests for faster execution. However, the following fields will be null or missing:

  • advertiserId
  • advertiserName
  • advertiserCountry (not included in output)
  • adImpressions (not included in output)
  • advertiserPaidForBy
  • adTotalRegions
  • targetingByLocation
  • targetingByAge
  • targetingByGender

Use quickSearch: false (default) to get complete data with all fields populated.

๐Ÿ’ก Note:
The following enum is used for adtype:

TypeValue
text"1"
video"2"
image"3"
{
"adId": "1750117232800785",
"adTitle": "Mallows Beauty",
"adType": "2",
"adSpent": "",
"adVideoUrl": "https://v16m.tiktokcdn.com/00a1cd3546e573b863a3af54e0ae8a7d/652af7e6/video/tos/alisg/tos-alisg-v-0000/04ba2e7719aa4466817cbb8e83cd9816/?a=475769&ch=0&cr=0&dr=3&cd=0%7C0%7C0%7C0&cv=1&br=4042&bt=2021&bti=PDU2NmYwMy86&cs=0&ds=3&ft=d2A~l-Inz7TSEijZiyq8Z&mime_type=video_mp4&qs=0&rc=ZmlpZzY7ZjRpPDNpNTc1PEBpMzp3NWQ6ZmhkZzMzODYzNEBfMGNgYF5hXi8xLjFiLi9gYSNmLXNqcjQwYzZgLS1kMC1zcw%3D%3D&l=20231014141937218809A668FB37C199F6&btag=e00088000&cc=3",
"adVideoCover": "https://p19-csp-adlib-site-sign-sg.ibyteimg.com/v0201/4c50cba59bf949fb8def1c73359a0a42~tplv-xg5h56rn01-webp-75:540:960.webp?from=209050998&x-expires=1728829178&x-signature=VDFWd6bhuY6p8EKsGov7j6q69uk%3D",
"adStartDate": 1668988800000,
"adEndDate": 1672185600000,
"advertiserId": "6916504448172819201",
"advertiserName": "Mallows Beauty",
"adImpressions": "10K-100K",
"advertiserPaidForBy": "Wayflyer Limited (GBP)",
"adTotalRegions": 1,
"adEstimatedAudience": "10K-100K",
"targetingByLocation": [
{
"region": "GB",
"impressions": "21K"
}
],
"targetingByAge": [
{
"region": "GB",
"13-17": false,
"18-24": true,
"25-34": true,
"35-44": true,
"45-54": false,
"55+": false
}
],
"targetingByGender": [
{
"region": "GB",
"female": true,
"male": false,
"unknown": false
}
]
}

How many TikTok Ads can the TikTok Ads Scraper extract?

The TikTok Ads Scraper uses pagination to extract all ads from the TikTok Ad Library. The scraper can extract 24 ads per page.

You can control the number of pages to scrape by setting the maxPages input parameter.

Why use the TikTok Ads Scraper?

  • โšก๏ธ Fast - The scraper is fast and efficient, allowing you to scrape ads in a programmatic way.

  • ๐Ÿค™ Easy to use - The scraper is easy to use and requires no coding knowledge. All you need to do is input the query you want to scrape and the scraper will do the rest.

  • โ˜‘๏ธ Well-Maintained - The scraper is maintained by the Lexis Solutions team, ensuring that it is always up-to-date and working properly.

FAQ

  • How to find a company's ads on TikTok?

    To find a company's ads on TikTok, you can use the TikTok Ad Library. This tool allows you to search for ads by advertiser name, domain, or country.

  • How to search for ads on TikTok?

    TikTok Ad Library allows you to search for ads by advertiser name, domain. You can also filter ads by date range and format. If you need to obtain the data programmatically, you can use the TikTok Ads Scraper.

  • What is the TikTok Ad Library?

    The TikTok Ad Library is a website that allows users to view ads that are displayed on TikTok's advertising network. It also provides information about the advertisers who are running these ads.

  • What is the TikTok Ads Scraper?

    The TikTok Ads Scraper is a web scraping tool designed specifically for TikTok Ad Library. This tool offers an effective way to mine valuable data from ads displayed on TikTok's advertising network.

  • Is Scraping TikTok Ads Legal?

    Scraping public information from TikTok Ad Library is legal as long as you are not violating any terms of service or privacy policies. However, it is important to note that scraping ads can be considered a violation of the terms of service of some websites, so it is always best to check before scraping.

  • How much does it cost?

    The cost for using the TikTok Ads Scraper is shown on the top of this page. You can also check the Apify Store page for more information.

Need to scrape ads from Google?

๐Ÿ‘‰ Check out our Google Ads Scraper

Need to scrape ads from Bing?

๐Ÿ‘‰ Check out our Bing Ads Scraper

Need to scrape ads from Reddit?

๐Ÿ‘‰ Check out our Reddit Ads Scraper

Need to scrape ads from TikTok?

๐Ÿ‘‰ Check out our TikTok Ads Scraper


๐Ÿ‘€ p.s.

Got feedback or need an extension?

Lexis Solutions is a certified Apify Partner. We can help you with custom solutions or data extraction projects.

Contact us over Email or LinkedIn

Support Our Work ๐Ÿ’

If you're happy with our work and scrapers, you're welcome to leave us a company review here and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

Image Credit: https://www.socialpilot.co/tiktok-marketing/tiktok-ads