Skip to content

Facebook Ads Library Scraper

Pulls public Meta Ad Library ads by advertiser or keyword into a structured export via Apify.

Stars
49,023
Licence
MIT
Files
2 files

What it does

When installed, the agent can research ads that brands and advertisers run on Facebook and Instagram using Meta's public Ad Library. It builds the right search link, runs a paid Apify scraper (harshmaur/facebook-ads-library-scraper) to collect the ads, and returns one row per ad with dates, creative text, links, and any spend or reach figures Meta has disclosed. The skill also tells the agent to set ad-count caps and check costs before running.

Great for

  • Marketers checking what competitors are currently running on Meta
  • Researchers studying political or issue ad spending where Meta discloses it
  • Analysts who want an exported spreadsheet of ads from a specific advertiser or keyword

Skip it if

  • Managing or pausing your own Facebook ads, or reading your ad account ROAS: the skill says to use the Meta Marketing API instead, because it only reads public library data
  • Finding TikTok or Google ads: the skill covers only the Meta Ad Library and would need a different scraper
  • Unbounded or large scrapes without a budget: the scraper is paid per ad and the agent could run up costs if the count is not capped

Try asking

  • “Pull every active ad Gymshark runs in the US and sort them by how long they have been live.”
  • “Find ads for 'protein powder' in the UK that have run for more than 60 days, with their video links.”
  • “Export the last 30 days of ads from a given Facebook Page to a spreadsheet.”
Step-by-step guide: how to use Facebook Ads Library ScraperInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 2 original files, the MIT licence and an attribution note.

    apify-facebook-ads-library-scraper.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip apify-facebook-ads-library-scraper.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip apify-facebook-ads-library-scraper.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Always set a finite count and a per-URL limit, and check current Apify pricing before running; the skill's price table is only historical.
  • Use scrapeAdDetails only when you need EU/UK reach and demographic data, since it makes runs slower.
  • Give the agent an exact advertiser page or a copied Ad Library URL when you can, which is more precise than a broad keyword.

What's inside

  • references/gotchas.md
  • SKILL.md

Redistributed unmodified from sickn33/agentic-awesome-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.