# How to Scrape TikTok Ads Library Without Getting Blocked

**Use case:** 

Extract commercial ads from the TikTok Ad Library without account login or IP bans. Scrape advertiser brand details, ad copy, videos, and targeting to CSV.

## Input

```json
{
  "startUrl": "https://library.tiktok.com/ads?region=BE&start_time=1785167225641&end_time=1787845625641&adv_name=&adv_biz_ids=&query_type=&sort_type=create_time,desc&ad_type=0&ad_status=1&ages=all&ad_reach=all&gender=ALL",
  "sourceType": "ad_library",
  "region": [
    "all"
  ],
  "ages": [
    "all"
  ],
  "adReach": [
    "all"
  ],
  "adStatus": "0",
  "adType": "0",
  "gender": "ALL",
  "dateFrom": "2025-01-01",
  "dateTo": "2026-07-03",
  "searchQuery": "adidas",
  "sortBy": "last_shown_newest",
  "maxItems": 100,
  "extractDetails": false
}
```

## Output

```json
{
  "scrapedAt": {
    "label": "Scraped At",
    "format": "date"
  },
  "sourceType": {
    "label": "Source Type",
    "format": "text"
  },
  "region": {
    "label": "Region",
    "format": "text"
  },
  "dateFrom": {
    "label": "Date From",
    "format": "text"
  },
  "dateTo": {
    "label": "Date To",
    "format": "text"
  },
  "libraryUrl": {
    "label": "Library Url",
    "format": "link"
  },
  "adDetailUrl": {
    "label": "Ad Detail Url",
    "format": "link"
  },
  "adId": {
    "label": "Ad Id",
    "format": "text"
  },
  "advertiserName": {
    "label": "Advertiser Name",
    "format": "text"
  },
  "advertiserBusinessId": {
    "label": "Advertiser Business Id",
    "format": "text"
  },
  "adPaidForBy": {
    "label": "Ad Paid For By",
    "format": "text"
  },
  "auditStatus": {
    "label": "Audit Status",
    "format": "text"
  },
  "firstShownDate": {
    "label": "First Shown Date",
    "format": "date"
  },
  "lastShownDate": {
    "label": "Last Shown Date",
    "format": "date"
  },
  "estimatedAudience": {
    "label": "Estimated Audience",
    "format": "text"
  },
  "showMode": {
    "label": "Show Mode",
    "format": "number"
  },
  "videoUrl": {
    "label": "Video Url",
    "format": "link"
  },
  "thumbnailUrl": {
    "label": "Thumbnail Url",
    "format": "link"
  },
  "rejectionInfo": {
    "label": "Rejection Info",
    "format": "text"
  },
  "uniqueUsersSeen": {
    "label": "Unique Users Seen",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The TikTok Ad Library Scraper 🔥 $0.5/1K Actor is ready to run with the inputs already set for "How to Scrape TikTok Ads Library Without Getting Blocked". [Sign up or log in](https://console.apify.com/create-task-from-example/0pa3yLULUBRwzv2ZS) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "How to Scrape TikTok Ads Library Without Getting Blocked" task

The TikTok Ad Library Scraper 🔥 $0.5/1K Actor will start running based on the input automatically. You can also change all the input fields, like 🔗 library url, 🎬 mode, and more, to match your specific use case.

### 3. Receive the "How to Scrape TikTok Ads Library Without Getting Blocked" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as scraped at, source type, region, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "How to Scrape TikTok Ads Library Without Getting Blocked" task via API](https://apify.com/azzouzana/tiktok-ads-library.md).

## About this Actor

This example demonstrates how to use [TikTok Ad Library Scraper 🔥 $0.5/1K](https://apify.com/azzouzana/tiktok-ads-library.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/azzouzana/tiktok-ads-library.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/azzouzana/tiktok-ads-library.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
