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…
Skill by sickn33
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sickn33-apify-facebook-ads-library-scraper
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: marketing, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/apify-facebook-ads-library-scraper
What's inside
- Skill name
apify-facebook-ads-library-scraper- Description
- 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.
- License
- MIT
- Instructions
- 183 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- gotchas.md · references/
SKILL.md (first lines)
# 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](https://apify.com)). Verify current account credit, plan and Actor pricing before running.
- Authentication via one of:
- `apify login` (OAuth, if you use the Apify CLI)
- `APIFY_TOKEN` environment variable
- Token from [Apify Console → Settings → Integrations](https://console.apify.com/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. |
Build a keyword search URL like this. Change only `country`, `q`, `active_status` and `search_type`:
```
https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=protein%20powder&search_type=keyword_unordered&media_type=all
```
- `country`: a 2-letter code (`US`, `GB`, `DE`), or `ALL`.
- `q`: URL-encoded words.
- `search_type`: `keyword_unordered` (all words, any order) or `keyword_exact_phrase`.
- `active_status`: `active`, `inactive` or `all`.
- `ad_type=political_and_issue_ads`: political and social-issue ads. Only these carry spend and impressions outside the EU and UK.
Filters for Page URLs only:
| Field | Values |
|---|---|
| `scrapePageAds.activeStatus` | `all` (default), `active`, `inactive` |
| `scrapePageAds.period` | `""` (all time), `last24h`, `last7d`, `last14d`, `last30d` |
| `scrapePageAds.sortBy` | `impressions_desc` (default), `most_recent` |
| `scrapePageAds.countryCode` | 2-letter code or `ALL` (default) |
Amounts and extras:
| Field | Meaning |
|---|---|
| `count` | Most ads for the whole run, over all URLs. Default 100. `0` means no limit: never send `0` without a cost check. |
| `limitPerSource` | Most ads per URL, so one big advertiser does not use up `count`. |
| `scrapeAdDetails` | `true` adds the advertiser text and the EU and UK transparency data: reach, age range, gender, countries. It makes the run slower. |
| `runTag` | A label copied onto every row. Useful when you merge runs. |
### Step 2 — Build the input
```json
{
"urls": [{ "url": "https://www.facebook.com/gymshark" }],
"scrapePageAds.activeStatus": "active",
"scrapePageAds.countryCode": "US",
"count": 200
}
```
Note the field names with a dot, for example `"scrapePageAds.activeStatus"`. They are flat keys, not nested objects. Fetch the live schema when a field is in doubt:
```bash
apify actors info "harshmaur/facebook-ads-library-scraper" --input --json \
--user-agent apify-awesome-skills/apify-facebook-ads-library-scraper
```
### Step 3 — Estimate the cost, then run
The price is per ad in the dataset. There is no start fee, and `scrapeAdDetails` costs nothing extra:
| Apify plan | Per 1,000 ads |
|---|---|
| Free | $0.50 |
| Starter | $0.47 |
| Scale | $0.43 |
| Business and higher | $0.40 |
The table is a historical example, not a live quote or spending authorization. Inspect current pricing, set a finite count and an explicit authorized budget before running, including retries and detail options. Never infer permission from a 4,000-ad threshold or use unlimited count without a hard cap.
```bash
apify actors call "harshmaur/facebook-ads-library-scraper" \
-i '{"urls":[{"url":"https://www.facebook.com/gymshark"}],"scrapePageAds.activeStatus":"active","count":200}' \
--json \
--user-agent apify-awesome-skills/apify-facebook-ads-library-scraper
```
The output gives `status` and the dataset ID at `storage.defaultDatasetId`. A measured run of 12 ads from two URLs took 8 seconds. Large runs with `scrapeAdDetails` take minutes; start them without waiting and poll with `apify runs info "RUN_ID" --json --user-agent apify-awesome-skills/apify-facebook-ads-library-scraper `.
### Step 4 — Fetch and report
```bash
EXPORT_DIR="$(mktemp -d)" || exit 1
apify datasets get-items "DATASET_ID" --format json \
--user-agent apify-awesome-skills/apify-facebook-ads-library-scraper \From sickn33/agentic-awesome-skills, MIT.
More from sickn33/agentic-awesome-skills
- 0.881score
asset-inventory
devops-skills
Maintain IT asset inventory and configuration management database.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.881score
arm-templates
devops-skills
Deploy Azure resources with ARM templates and Bicep.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.881score
access-review
devops-skills
Conduct periodic access reviews and certifications.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.878score
ai-coding-agent-guardrails
devops-skills
Secure AI coding agents (Claude Code, Cursor, Codex, Copilot) with permission boundaries, secret protection, code review gates, and safe sandbox…
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.878score
agents-generator
OJPalenzuela
Generate project-specific AGENTS.md and companion rules by analyzing a codebase.
SkillAFreshness: A★ 48.4KClaude Code - 0.876score
aws-lambda
devops-skills
Build and deploy serverless functions on AWS Lambda.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
aws-s3
devops-skills
Configure S3 buckets, policies, and lifecycle rules.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
aws-iam
devops-skills
Manage IAM users, roles, and policies.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
aws-rds
devops-skills
Provision and manage RDS databases.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
azure-aks
devops-skills
Deploy and manage Azure Kubernetes Service clusters.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
aws-vpc
devops-skills
Design and implement VPCs and networking.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.876score
aws-ecs-fargate
devops-skills
Deploy containers on ECS and Fargate.
SkillAFreshness: A★ 48.4KClaude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 48,428
- Forks
- 7,039
- Open issues
- 0
- Last commit (this folder)
- Oct 24, 2026 (3 days ago)
- Last release
- Oct 24, 2026 (3 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- aaskills.tech/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sickn33
- 0.665score
agentphone
sickn33
Build AI phone agents with AgentPhone API.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.665score
ai-seo
sickn33
Optimize content for AI search and LLM citations across AI Overviews, ChatGPT, Perplexity, Claude, Gemini, and similar systems.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.665score
agent-evaluation
sickn33
Evaluate agent behavior with versioned cases and explicit verifiers.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.665score
agent-memory-systems
sickn33
Design tenant-scoped memory, retrieval and retention for agents.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.665score
add-app-clip
sickn33
Add an iOS App Clip target to an Expo app.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.665score
angular-best-practices
sickn33
Angular performance optimization and best practices guide.
SkillAFreshness: A★ 48.4KClaude Code +9
Cite this page
apify-facebook-ads-library-scraper skill. Agent Mart. https://agentmart.dev/skills/sickn33-apify-facebook-ads-library-scraper (last updated 2026-10-24)