---
title: "Meta Ad Library Scraper | ScrapeCrate"
description: "Ads running on Facebook and Instagram, from the Meta Ad Library. $0.17 per 1,000 ads, free monthly credit to try it. Run it from the web, the API or MCP."
url: https://scrapecrate.com/apps/meta-ads
markdown: https://scrapecrate.com/apps/meta-ads.md
---

# Meta Ad Library Scraper

Ads running on Facebook and Instagram, from the Meta Ad Library.

**Price:** $0.17 per 1,000 ads.

Search the Meta Ad Library by keyword or advertiser: creatives, copy, landing pages, platforms, start dates and how long each ad has been running.

## Input

- `q` (string, optional): Keyword (required unless page_id is set)
- `country` (string, optional, default ALL): Two-letter country code or ALL
- `status` (enum, optional, default active): Ad status
- `media_type` (enum, optional, default all): Creative type

## Use it from your code

```bash
curl -X POST "https://api.scrapecrate.com/v1/apps/meta-ads/runs?wait=60" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"q":"running shoes","country":"ALL","status":"active","media_type":"all"},"max_items":100}'
```

```javascript
const res = await fetch("https://api.scrapecrate.com/v1/apps/meta-ads/runs?wait=60", {
  method: "POST",
  headers: { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "q": "running shoes",
      "country": "ALL",
      "status": "active",
      "media_type": "all"
    },
    "max_items": 100
  }),
});
const { run } = await res.json();
console.log(run.status, run.result_count);

// The results
const items = await fetch(`https://api.scrapecrate.com/v1/runs/${run.id}/items?format=json`, {
  headers: { "X-API-Key": process.env.API_KEY },
}).then((r) => r.json());
```

```python
import os, requests

res = requests.post(
    "https://api.scrapecrate.com/v1/apps/meta-ads/runs?wait=60",
    headers={"X-API-Key": os.environ["API_KEY"]},
    json={
      "input": {
        "q": "running shoes",
        "country": "ALL",
        "status": "active",
        "media_type": "all"
      },
      "max_items": 100
    },
)
run = res.json()["run"]
print(run["status"], run["result_count"])

items = requests.get(
    f"https://api.scrapecrate.com/v1/runs/{run['id']}/items?format=json",
    headers={"X-API-Key": os.environ["API_KEY"]},
).json()["items"]
```

```bash
# Claude Code
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp

# Then ask, in Claude, ChatGPT or Cursor:
Active Facebook ads about running shoes in Italy
```

## Output example

```json
{
  "id": "1234567890123456",
  "url": "https://www.facebook.com/ads/library/?id=1234567890123456",
  "page": {
    "id": "102030405060708",
    "name": "Example Shoes"
  },
  "status": "active",
  "started_at": "2026-10-15",
  "days_active": 38,
  "winning_score": 35,
  "platforms": [
    "facebook",
    "instagram"
  ],
  "format": "image",
  "body": "Run further with our new trainers.",
  "title": "New collection",
  "link_url": "https://example.com/shoes",
  "cta": {
    "text": "Shop now",
    "type": "SHOP_NOW"
  },
  "images": [
    {
      "type": "image",
      "url": "https://example.com/creative.jpg"
    }
  ]
}
```

[API reference](https://scrapecrate.com/meta-ad-library-api.md)

You pay only for the results you get. Results are kept 30 days.
