# Export recent TikTok ads by keyword

**Use case:** 

Get the latest TikTok ads for any keyword, sorted by last shown date. Ideal for trend spotting and competitive creative analysis.

## Input

```json
{
  "query": "ecommerce",
  "maxPages": 2,
  "country": "DE",
  "sortBy": "last_shown_date,desc",
  "quickSearch": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "adId": {
    "label": "Ad ID",
    "format": "text"
  },
  "advertiserName": {
    "label": "Advertiser Name",
    "format": "text"
  },
  "adTitle": {
    "label": "Ad Title",
    "format": "text"
  },
  "adImpressions": {
    "label": "Ad Impressions Range",
    "format": "text"
  },
  "adLandingUrl": {
    "label": "Ad Landing URL",
    "format": "link"
  },
  "adVideoUrl": {
    "label": "Ad Video URL",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [TikTok Ads Scraper](https://apify.com/lexis-solutions/tiktok-ads-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lexis-solutions/tiktok-ads-scraper) to learn more, explore other use cases, and run it yourself.