Przejdź do treści
Biblioteka skilli
Marketing i treści · Research

meta-ad-scraper

/meta-ad-scraper

Pobiera reklamy konkurencji z biblioteki reklam Meta (Facebook, Instagram, Messenger, Threads, WhatsApp) według firmy, strony lub słowa kluczowego, zwracając kreacje, szacunki wydatków i zasięgu.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
4
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/search_meta_ads.py

Co robi i kiedy

Pobiera reklamy konkurencji z biblioteki reklam Meta (Facebook, Instagram, Messenger, Threads, WhatsApp) według firmy, strony lub słowa kluczowego, zwracając kreacje, szacunki wydatków i zasięgu.

Oryginalny opis (EN)

Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp). Search by company name, Facebook Page URL, or keyword. Returns ad creatives, spend estimates, reach, impressions, and campaign details. Use for competitive ad research, messaging analysis, and creative inspiration.

Jak działa

  1. Quick Start
  2. How It Works
  3. Resolving Company Name → Ads
  4. CLI Reference
  5. Output Fields
  6. Cost
  7. Common Workflows
  8. Important Notes
  9. Configuration
Sekcje z nagłówków SKILL.md, w oryginale · 133 linii, 592 słów
Podgląd SKILL.md
---
name: meta-ad-scraper
description: Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp). Search by company name, Facebook Page URL, or keyword. Returns ad creatives, spend estimates, reach, impressions, and campaign details. Use for competitive ad research, messaging analysis, and creative inspiration.
---

# Meta Ad Library Scraper

Scrape ads from Meta's Ad Library using the Apify `apify/facebook-ads-scraper` actor. Covers Facebook, Instagram, Messenger, Threads, and WhatsApp.

## Quick Start

Requires `APIFY_API_TOKEN` env var (or `--token` flag). Install dependency: `pip install requests`.

```bash
# Search ads by company name
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "Nike"

# Search with country filter
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "Shopify" --country US

# Search by keyword (broader than company name)
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "project management software"

# Limit results
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "HubSpot" --max-ads 20

# Search by Facebook Page URL directly
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --page-url "https://www.facebook.com/nike"

# Only active ads (default), or all ads
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "Salesforce" --ad-status all

# Human-readable summary
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "Stripe" --output summary
```

## How It Works

1. Takes a company name, keyword, or Facebook Page URL
2. Constructs a Meta Ad Library URL with the search query and filters
3. Calls the Apify `apify/facebook-ads-scraper` actor via REST API
4. Polls until the run completes, then fetches the dataset
5. Parses and outputs ad data as JSON or human-readable summary

## Resolving Company Name → Ads

The script handles the advertiser lookup automatically:
- **Company name**: Constructs a search URL like `facebook.com/ads/library/?q=CompanyName` — the Apify actor searches Meta's Ad Library for matching advertisers
- **Page URL**: If you have the Facebook Page URL, pass it via `--page-url` for exact matching
- **Domain**: You can also pass a domain and the script will search for it

No need to manually find Page IDs. The Apify actor resolves the search internally.

## CLI Reference

| Flag | Default | Description |
|------|---------|-------------|
| `--company` | *required** | Company name or keyword to search |
| `--page-url` | none | Facebook Page URL for exact advertiser match |
| `--country` | ALL | 2-letter country code (US, GB, DE, etc.) or ALL |
| `--ad-status` | active | `active` or `all` (includes inactive) |
| `--max-ads` | 50 | Maximum number of ads to return |
| `--output` | json | Output format: `json` or `summary` |
| `--token` | env var | Apify token (prefer `APIFY_API_TOKEN` env var) |
| `--timeout` | 300 | Max seconds to wait for the Apify run |

*Either `--company` or `--page-url` is required.

## Output Fields

Each ad in the output contains:

```json
{
  "ad_id": "123456789",
  "page_name": "Nike",
  "page_id": "123456789",
  "ad_text": "Just Do It. Shop the latest...",
  "ad_creative_link_title": "Nike.com",
  "ad_creative_link_description": "Free shipping on orders...",
  "ad_creative_link_url": "https://nike.com/...",
  "image_url": "https://...",
  "video_url": "https://...",
  "ad_delivery_start_time": "2026-01-15",
  "ad_delivery_stop_time": null,
  "currency": "USD",
  "spend_lower": 100,
  "spend_upper": 499,
  "impressions_lower": 1000,
  "impressions_upper": 4999,
  "platforms": ["facebook", "instagram"],
  "status": "ACTIVE"
}
```

## Cost

~$5 per 1,000 ads scraped on Apify Free plan. Paid plans are cheaper ($3.40-$5/1K).

## Common Workflows

### 1. Competitor Ad Research

```bash
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "Competitor Name" --country US --max-ads 100 --output summary
```

### 2. Industry Ad Landscape

```bash
# Search by keyword to see all advertisers in a space
python3 skills/meta-ad-scraper/scripts/search_meta_ads.py \
  --company "CRM software" --max-ads 50
```

### 3. Compare Multiple Competitors

Run the script multiple times for each competitor and compare creative approaches, messaging, and spend ranges.

## Important Notes

- **EU/UK ads are most complete**: Meta archives all ads shown in EU/UK. For US-only ads, coverage may be limited to political/issue ads.
- **Active vs All**: By default only active ads are returned. Use `--ad-status all` to include historical ads.
- **Rate limits**: Apify handles rate limiting internally. For large scrapes, increase `--timeout`.

## Configuration

See `references/apify-config.md` for detailed API configuration, token setup, and rate limits.
Pliki w paczce (3)
  • SKILL.md 5 KB
  • skill.meta.json 1 KB
  • scripts/search_meta_ads.py 8 KB

Wersje

W bazie nie ma innych skilli o nazwie meta-ad-scraper.

Migawka bazy z 13.11.2026 · wersja paczki fdb3f204705d (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100facebook-ads-library-search
    Przeszukuje Meta Ad Library po słowie kluczowym lub ID strony i wyciąga szczegóły reklam: kreacje, teksty, CTA, platformy, wydatki, zasięgi i dane przejrzystości strony.
  • 100google-ad-scraper
    Pobiera reklamy konkurencji z Google Ads dla podanej domeny: kreacje, formaty i szczegóły kampanii, do badania konkurencji i analizy przekazu.
  • 90ad-library-scraper
    Przeszukuje publiczne biblioteki reklam Meta, Google, LinkedIn, TikTok i Reddit przez serwer MCP ToolRouter, by zobaczyć reklamy konkurencji i ich kreacje.
  • 100ad-library-research
    Bada reklamy konkurencji w bibliotekach Meta, Google i LinkedIn: aktywne reklamy, kreacje, treści i strony docelowe.
  • 100ad-library-teardown
    Analizuje reklamy konkurencji w bibliotekach Meta i LinkedIn: czas działania, hooki, oferty, CTA, strony i transkrypcje wideo.
  • 100scrollhound-competitor-ads
    Pokazuje wszystkie reklamy firmy z bibliotek Meta, TikToka, Google i LinkedIn, pogrupowane według oferty i wezwania do działania, z cytatami. Przydaje się przy analizie konkurencji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.