Agent skill

Meta Ad Scraper

by gooseworks-ai in gooseworks-ai/goose-skills

Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp).

MITAuto-check passedData & Analytics

Install Meta Ad Scraper

skills CLI
$ npx skills add gooseworks-ai/goose-skills --skill meta-ad-scraper -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install gooseworks-ai/goose-skills meta-ad-scraper --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/gooseworks-ai/goose-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ads/capabilities/meta-ad-scraper .claude/skills/meta-ad-scraper && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
meta-ad-scraper
GitHub stars
1.2k
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
363 words
Files
3 (incl. scripts)
Skills in repo
273
Repo updated
First seen
Licence
MIT

At a glance

Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp).

  • Works in 3 steps: Competitor Ad Research → Industry Ad Landscape → Compare Multiple Competitors
  • Competitive ad research
  • SKILL.md covers Quick Start, How It Works, Resolving Company Name → Ads and CLI Reference, plus 5 more sections
  • Runs Python scripts from its folder; calls python3 and pip; reaches facebook.com and nike.com; needs APIFY_API_TOKEN

What it does

Meta Ad Scraper is an agent skill from gooseworks-ai/goose-skills. 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.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/search_meta_ads.py` and `skill.meta.json`).

It sits in Data & Analytics, covering Web scraping. It works with Instagram, WhatsApp and Apify. The repository describes itself as: Library of Growth & GTM skills + data APIs for Claude Code, Codex, Cursor to run ads, social, content, lead gen, seo and data scraping. The licence is MIT.

When your agent uses it

  • Competitive ad research
  • Messaging analysis
  • Creative inspiration

Example prompts

  • “/meta-ad-scraper”

Requirements

  • Python 3
  • A credential in APIFY_API_TOKEN

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Competitor Ad Research
  2. Industry Ad Landscape
  3. Compare Multiple Competitors

What it can do on your machine

Read from SKILL.md and the folder at commit c650c6d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • facebook.com
    • nike.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • APIFY_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Meta Ad Scraper loads about 1.2k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 363 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from gooseworks-ai/goose-skills at commit c650c6d, republished under its MIT licence (© gooseworks-ai). 363 words, ~1,214 tokens.

Download SKILL.mdSave it as .claude/skills/meta-ad-scraper/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
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

FlagDefaultDescription
--companyrequired*Company name or keyword to search
--page-urlnoneFacebook Page URL for exact advertiser match
--countryALL2-letter country code (US, GB, DE, etc.) or ALL
--ad-statusactiveactive or all (includes inactive)
--max-ads50Maximum number of ads to return
--outputjsonOutput format: json or summary
--tokenenv varApify token (prefer APIFY_API_TOKEN env var)
--timeout300Max seconds to wait for the Apify run

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

Show full SKILL.md (118 more words)Show less

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.

© gooseworks-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in skills/ads/capabilities/meta-ad-scraper of gooseworks-ai/goose-skills.

  • SKILL.md
  • scripts/search_meta_ads.py
  • skill.meta.json

Open the folder on GitHubat commit c650c6d

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in gooseworks-ai/goose-skills, which our catalogue first saw on October 9, 2026.

Compare with similar skills

Meta Ad Scraper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Meta Ad Scraper compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Meta Ad Scraper this skillgooseworks-ai/goose-skills1.2k1 repos~1.2kAutomated safety check: PassMIT
Ig Audience Insightssergebulaev/instagram-skills347—~1.3kAutomated safety check: PassMIT
Apify Google Maps Leadsapify/awesome-skills266—~3.8kAutomated safety check: PassApache-2.0
Apify Ultimate Scrapersickn33/agentic-awesome-skills47k2 repos~2.7kAutomated safety check: NotesMIT
Apify Audience Analysissickn33/agentic-awesome-skills47k2 repos~1.3kAutomated safety check: NotesMIT
Apify Brand Reputation Monitoringsickn33/agentic-awesome-skills47k2 repos~1.2kAutomated safety check: NotesMIT

Similar skills

  • Ig Audience Insights

    sergebulaev/instagram-skills

    Read your Instagram niche and profile from real data via Apify, no login.

    347 GitHub stars~1.3k tokensUpdated 4 days ago
    Data & AnalyticsAuto-check passed
  • Apify Google Maps Leads

    apify/awesome-skills

    Official

    Build a local-business lead database from Google Maps in one Apify pipeline: search by target audience + geography, enrich each place with company contacts from its website, leads enrichment (names…

    266 GitHub stars~3.8k tokensUpdated 18 days ago
    Data & AnalyticsAuto-check passed
  • Apify Ultimate Scraper

    sickn33/agentic-awesome-skills

    AI-driven data extraction from 55+ Actors across all major platforms.

    47k GitHub starsUsed in 2 repos~2.7k tokens
    Data & AnalyticsAuto-check: notes
  • Apify Audience Analysis

    sickn33/agentic-awesome-skills

    Understand audience demographics, preferences, behavior patterns, and engagement quality across Facebook, Instagram, YouTube, and TikTok.

    47k GitHub starsUsed in 2 repos~1.3k tokens
    Data & AnalyticsAuto-check: notes
  • Apify Brand Reputation Monitoring

    sickn33/agentic-awesome-skills

    Scrape reviews, ratings, and brand mentions from multiple platforms using Apify Actors.

    47k GitHub starsUsed in 2 repos~1.2k tokens
    Data & AnalyticsAuto-check: notes
  • Apify Content Analytics

    sickn33/agentic-awesome-skills

    Track engagement metrics, measure campaign ROI, and analyze content performance across Instagram, Facebook, YouTube, and TikTok.

    47k GitHub starsUsed in 2 repos~1.2k tokens
    Data & AnalyticsAuto-check: notes

More from gooseworks-ai/goose-skills

All 273 skills in this repo
  • Reddit Post Finder

    gooseworks-ai/goose-skills

    Scrape and search Reddit posts using Apify. An agent skill from gooseworks-ai/goose-skills.

    1.2k GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Create Image Fal

    gooseworks-ai/goose-skills

    Generate or edit an image via any FAL image model (nano-banana edit, gpt-image, flux, ...), ROUTED THROUGH THE fal-proxy so it bills the Ads agent.

    1.2k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Render Hook Replacement

    gooseworks-ai/goose-skills

    Replace an existing video's opening with a supplied clip or free kinetic text hook while retaining and verifying every original body frame, audio, captions and ending.

    1.2k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Blog Feed Monitor

    gooseworks-ai/goose-skills

    Scrape blog posts via RSS feeds (free, no API key) with Apify fallback for JS-heavy sites.

    1.2k GitHub starsUsed in 1 repo~578 tokens
    Auto-check passed
  • Competitor Post Engagers

    gooseworks-ai/goose-skills

    Find leads by scraping engagers from a competitor's top LinkedIn posts.

    1.2k GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check: notes
  • Render Chatgpt Chat

    gooseworks-ai/goose-skills

    Assemble a ChatGPT chat-reveal video ad from a thread + timeline JSON — one continuous Playwright recording of a ChatGPT mobile chat (user types with the iOS keyboard up → taps send → keyboard…

    1.2k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed

Questions about Meta Ad Scraper

What does Meta Ad Scraper do?

Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp). Meta Ad Scraper is an agent skill from gooseworks-ai/goose-skills. Scrape competitor ads from Meta's Ad Library (Facebook, Instagram, Messenger, Threads, WhatsApp).

When should I use Meta Ad Scraper?

Meta Ad Scraper fits situations like: competitive ad research; messaging analysis; creative inspiration.

How do I install Meta Ad Scraper in Claude Code?

Run `npx skills add gooseworks-ai/goose-skills --skill meta-ad-scraper -a claude-code`. Or copy the skill folder (skills/ads/capabilities/meta-ad-scraper in gooseworks-ai/goose-skills) into .claude/skills/meta-ad-scraper in your project. Claude Code loads it when a task matches its description.

How do I install Meta Ad Scraper in Codex?

Run `npx skills add gooseworks-ai/goose-skills --skill meta-ad-scraper -a codex`. Or copy the skill folder (skills/ads/capabilities/meta-ad-scraper in gooseworks-ai/goose-skills) into .agents/skills/meta-ad-scraper in your project. Codex loads it when a task matches its description.

Can I use Meta Ad Scraper in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gooseworks-ai/goose-skills --skill meta-ad-scraper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/meta-ad-scraper, .gemini/skills/meta-ad-scraper, .github/skills/meta-ad-scraper and .opencode/skills/meta-ad-scraper in your project.

What does Meta Ad Scraper need to run?

Going by SKILL.md and its folder, Meta Ad Scraper needs Python for the scripts in its folder, the command-line tools its instructions call (python3 and pip) and credentials named APIFY_API_TOKEN. Our summary lists: Python 3; A credential in APIFY_API_TOKEN.

Does Meta Ad Scraper access the network?

SKILL.md names 2 domains. In commands or code: facebook.com and nike.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Meta Ad Scraper safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Meta Ad Scraper use?

Meta Ad Scraper is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Meta Ad Scraper use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Meta Ad Scraper?

Skills that share tags, products or a category with Meta Ad Scraper: Ig Audience Insights (sergebulaev/instagram-skills, 347 stars), Apify Google Maps Leads (apify/awesome-skills, 266 stars), Apify Ultimate Scraper (sickn33/agentic-awesome-skills, 47k stars) and Apify Audience Analysis (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Meta Ad Scraper?

gooseworks-ai (a GitHub organization) maintains it in gooseworks-ai/goose-skills, which has 1,240 GitHub stars. The repository holds 273 skills in this directory. The repository was last updated on October 8, 2026.

Source: gooseworks-ai/goose-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.