# Find Facebook Ads by Keyword in Any Country

**Use case:** 

Search Facebook's Ad Library by keyword and country to see who's advertising in your niche and what creatives they're running.

## Input

```json
{
  "URLAds": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&content_languages[0]=en&country=ALL&is_targeted_country=false&media_type=video&publisher_platforms[0]=facebook&q=pokemon&search_type=keyword_unordered&sort_data[mode]=relevancy_monthly_grouped&sort_data[direction]=desc&source=fb-logo&start_date[min]=2026-01-27&start_date[max]=2026-01-28"
    },
    {
      "url": "https://www.facebook.com/ads/library/?id=907653308384731"
    }
  ],
  "searchQueries": [
    "summer sale"
  ],
  "searchAdvertisers": [
    "Nike",
    "15087023444"
  ],
  "maxResultsPerQuery": 50,
  "enrichWithAdDetails": false,
  "sortBy": "SORT_BY_TOTAL_IMPRESSIONS",
  "countries": "US",
  "activeStatus": "ALL",
  "adType": "ALL",
  "mediaType": "ALL"
}
```

## Output

```json
{
  "media.primary_thumbnail": {
    "label": "🖼️ Primary Thumbnail",
    "format": "image"
  },
  "ad_url": {
    "label": "🔗 Ad Library URL",
    "format": "link"
  },
  "id": {
    "label": "🆔 Ad ID",
    "format": "text"
  },
  "page_name": {
    "label": "📄 Page Name",
    "format": "text"
  },
  "title": {
    "label": "📹 Ad Title",
    "format": "text"
  },
  "text": {
    "label": "📝 Ad Text",
    "format": "text"
  },
  "caption": {
    "label": "📄 Caption",
    "format": "text"
  },
  "link_url": {
    "label": "🌐 Landing URL",
    "format": "link"
  },
  "cta_text": {
    "label": "🎯 CTA Text",
    "format": "text"
  },
  "media.type": {
    "label": "🎨 Media Type",
    "format": "text"
  },
  "additional_assets": {
    "label": "📎 Additional Assets",
    "format": "object"
  },
  "contains_sensitive_content": {
    "label": "⚠️ Sensitive Content",
    "format": "boolean"
  }
}
```

## About this Actor

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