# Scan Market Ads by Keyword

**Use case:** 

Search Meta Ad Library for ads matching a market phrase and review the creatives, platforms, and summary fields.

## Input

```json
{
  "searchQuery": "running shoes",
  "searchQueries": [],
  "countries": [
    "US"
  ],
  "adStatus": "ALL",
  "adType": "ALL",
  "mediaType": "ALL",
  "maxResults": 10,
  "sortBy": "impressions_desc",
  "enrichAds": true,
  "providerFallbackEnabled": true,
  "onlyCount": false,
  "advertiserPageIds": [],
  "startUrls": [],
  "contentLanguages": [],
  "publisherPlatforms": [
    "facebook",
    "instagram"
  ],
  "searchType": "KEYWORD_UNORDERED",
  "metaAccessTokens": [],
  "proxyUrls": []
}
```

## Output

```json
{
  "page_name": {
    "label": "Page Name (Advertiser)",
    "format": "string"
  },
  "ad_creative_body": {
    "label": "Ad Body Text",
    "format": "string"
  },
  "ad_creative_link_title": {
    "label": "Headline",
    "format": "string"
  },
  "landing_page_domain": {
    "label": "Landing Page Domain",
    "format": "string"
  },
  "cta_type": {
    "label": "CTA Type (from Facebook)",
    "format": "string"
  },
  "detected_cta": {
    "label": "Detected CTA",
    "format": "string"
  },
  "ad_category": {
    "label": "Ad Category",
    "format": "string"
  },
  "image_urls": {
    "label": "Image URLs",
    "format": "array"
  },
  "video_urls": {
    "label": "Video URLs",
    "format": "array"
  },
  "is_active": {
    "label": "Is Active",
    "format": "boolean"
  },
  "running_days": {
    "label": "Running Days",
    "format": "integer"
  },
  "spend_lower": {
    "label": "Spend Lower Bound",
    "format": "integer"
  },
  "spend_upper": {
    "label": "Spend Upper Bound",
    "format": "integer"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "impressions_lower": {
    "label": "Impressions Lower Bound",
    "format": "integer"
  },
  "impressions_upper": {
    "label": "Impressions Upper Bound",
    "format": "integer"
  },
  "ad_summary": {
    "label": "Ad Summary (LLM-ready)",
    "format": "string"
  },
  "data_mode": {
    "label": "Data Mode",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Meta Ad Library Scraper — Ad Creatives, Spend & Targeting](https://apify.com/khadinakbar/meta-ad-library-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/khadinakbar/meta-ad-library-scraper) to learn more, explore other use cases, and run it yourself.