# Get TikTok Ad Targeting & Audience Data

**Use case:** 

Extract per-region impressions, age and gender breakdowns, and audience size for any TikTok advertiser or keyword.

## Input

```json
{
  "maxResults": 20,
  "fetchAdDetail": true,
  "downloadMedia": false,
  "startUrls": [
    {
      "url": "https://library.tiktok.com/ads?region=DE&adv_name=nike&sort_type=last_shown_date,desc"
    }
  ],
  "keywords": [
    {
      "query": "fitness app",
      "region": "all",
      "searchAsAdvertiser": false,
      "sortOrder": "popular"
    }
  ]
}
```

## Output

```json
{
  "id": {
    "label": "Ad ID",
    "format": "string"
  },
  "name": {
    "label": "Advertiser",
    "format": "string"
  },
  "details.ad.title": {
    "label": "Creative Title",
    "format": "text"
  },
  "details.ad.advertising_objective": {
    "label": "Objective",
    "format": "text"
  },
  "details.advertiser.registry_location": {
    "label": "Registry",
    "format": "text"
  },
  "details.advertiser.adv_biz_ids": {
    "label": "Advertiser ID",
    "format": "text"
  },
  "details.targeting.target_audience_size": {
    "label": "Audience Size",
    "format": "text"
  },
  "details.targeting.countries": {
    "label": "Countries",
    "format": "array"
  },
  "details.targeting.location": {
    "label": "Location"
  },
  "source_url": {
    "label": "Source",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [TikTok Ad Library - Free To Use](https://apify.com/dz_omar/tiktok-ad-library-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/dz_omar/tiktok-ad-library-scraper) to learn more, explore other use cases, and run it yourself.