apify-facebook-ads-library-scraper

apify-facebook-ads-library-scraper is a skill for Claude Code from sickn33/agentic-awesome-skills. It costs 45 tokens per session (2,783 once invoked), scanned A, original, MIT.

A research and export tool for public advertisements in Meta's Ad Library, using an Apify scraper. Meta's Ad Library is a searchable record of ads run on Facebook and related services, including available creative, dates, reach, or spending details.

In plain words
What is it for?
Use it to research an advertiser's active ads, compare ad creative and run dates, export results, or review disclosed reach and spending.
Why use it?
It provides a structured way to compare advertisements by advertiser or keyword without using an advertiser's private account. It reads public ads and does not create, pause, or report on private ad campaigns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; mentions Codex.

Part of the agentic-awesome-skills plugin — 255 skills shipped together

Good fit Use it to research an advertiser's active ads, compare ad creative and run dates, export results, or review disclosed reach and spending.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 48,269 stars · on GitHub · aaskills.tech

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sickn33/agentic-awesome-skills --skill apify-facebook-ads-library-scraper
Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 255 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apify-facebook-ads-library-scraper

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apify-facebook-ads-library-scraper

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/apify-facebook-ads-library-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.02783
Opus 5.5 $0.00018 $0.01113
Sonnet 5.5 $0.00009 $0.00557
Haiku 4.5 $0.00005 $0.00278

Measured today against content hash 318f0dcfea92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

apify-facebook-ads-library-scraper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/agentic-awesome-skills-claude/skills/apify-facebook-ads-library-scraper/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Facebook Ads Library Scraper

Turn "what ads does X run" into one run of harshmaur/facebook-ads-library-scraper and return one row per ad. The Actor reads the public Meta Ad Library. It takes two kinds of input: an Ad Library search URL for a keyword, or a Facebook Page for one advertiser. The agent's job is to build the right URL and to cap the ad count.

Disclosure: the Actor is paid per result and is built by the skill author. Links carry no affiliate parameters.

When to Use

Use to research public Meta ads by advertiser or keyword, export ad creative and dates, or review disclosed reach and spending.

Example prompts

Prompts this skill handles:

  • "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 facebook.com/allbirds to a spreadsheet."
  • "How much did political advertisers in Germany spend on ads about energy?"

Out of scope (the boundary):

  • "Create or pause my Facebook ads" or "show my ad account ROAS" — use the Meta Marketing API with the user's own account.
  • "Find TikTok or Google ads" — other ad libraries; use a different Actor.

Prerequisites

  • Apify account (sign up). The free plan's monthly credit covers about 10,000 ads.
  • Authentication via one of:
  • Apify CLI (npm install -g apify-cli), or the Apify MCP server (see "Calling the Actor").

Workflow

Step 1 — Pick the input type

The user gives you Put in urls Notes
A brand, an advertiser, a Page link The Page URL: https://www.facebook.com/<handle>, a profile.php?id= link, or the numeric Page ID All ads of that advertiser. Filter with the scrapePageAds.* fields below.
A keyword, product or topic An Ad Library search URL (build it as shown below) All advertisers whose ads match the words in that country.
An Ad Library URL the user copied That URL, unchanged It keeps every filter the user set on the site.

Read the full file on GitHub · 199 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines 318f0dcfea92
  2. yesterday First seen · 198 lines · 45 tokens per session scan A 3b1074e39120

Subscribe to this mod's changes

apify-facebook-ads-library-scraper is a skill published in the GitHub repository sickn33/agentic-awesome-skills (48,269 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 2,783 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.