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.
npx skills add iradoweck/antigravity-awesome-skills --skill apify-facebook-ads-library-scrapergit clone --depth 1 https://github.com/iradoweck/antigravity-awesome-skillsWrote 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.
[](https://agentmods.dev/skills/iradoweck/antigravity-awesome-skills/apify-facebook-ads-library-scraper)<a href="https://agentmods.dev/skills/iradoweck/antigravity-awesome-skills/apify-facebook-ads-library-scraper"><img src="https://agentmods.dev/badge/skills/iradoweck/antigravity-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.
<a href="https://agentmods.dev/skills/iradoweck/antigravity-awesome-skills/apify-facebook-ads-library-scraper"><img src="https://agentmods.dev/badge/skills/iradoweck/antigravity-awesome-skills/apify-facebook-ads-library-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once 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 |
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.
This is a copy
100% identical to apify-facebook-ads-library-scraper — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
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 login(OAuth, if you use the Apify CLI)APIFY_TOKENenvironment variable- Token from Apify Console → Settings → Integrations
- 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. |
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.
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.
- today First seen · 199 lines · 45 tokens per session scan A 318f0dcfea92
apify-facebook-ads-library-scraper is a skill published in the GitHub repository iradoweck/antigravity-awesome-skills (30 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. It is 100% identical to apify-facebook-ads-library-scraper, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
apify-facebook-ads-library-scraper
Research Meta Ad Library ads by advertiser or keyword with creative links, dates and disclosed reach or spend through the harshmaur/facebook-ads-library-scraper Apify Actor.
apify-reddit-scraper
Scrape Reddit posts, comments, subreddits and users with the harshmaur/reddit-scraper Apify Actor. No Reddit API key. Keyword search, date windows, full threads.
apify-linkedin-jobs-scraper
Search and export LinkedIn job postings with salary, seniority, recruiter and company fields using the harshmaur/linkedin-jobs-scraper Apify Actor. No LinkedIn login.
apify-tiktok-scraper
Research TikTok videos, profiles, hashtags, comments and followers with engagement statistics through the harshmaur/tiktok-scraper Apify Actor. No TikTok login.
apify-youtube-transcript-scraper
Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.
banini-tracker
A workflow for tracking Facebook posts associated with the Ba Nini counter-indicator and analysing them in Chinese. A counter-indicator treats a person or group’s public views as signals that may point in the opposite direction.