Agent skill

Facebook Ads Library Search

by browser-act in browser-act/skills

Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach…

MITAuto-check passedMarketing & SEO

Install Facebook Ads Library Search

skills CLI
$ npx skills add browser-act/skills --skill facebook-ads-library-search -a claude-code

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

GitHub CLI
$ gh skill install browser-act/skills facebook-ads-library-search --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/browser-act/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/solutions/social-listening/facebook-ads-library-search .claude/skills/facebook-ads-library-search && 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
facebook-ads-library-search
GitHub stars
6.1k
Token cost
~2.3k tokens
SKILL.md length
814 words
Files
2 (incl. scripts)
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach…

  • User mentions Meta Ad Library
  • SKILL.md covers Language, Objective, Prerequisites and Pre-execution Checks, plus 7 more sections
  • Runs Python scripts from its folder; calls python; reaches facebook.com and scontent.xx.fbcdn.net
  • Facebook ads scraper

What it does

Facebook Ads Library Search is an agent skill from browser-act/skills. Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach estimates, and page transparency info. Use when user mentions Meta Ad Library, Facebook ads scraper, Instagram ads data, FB ad library, search Facebook ads, get ads from a Facebook page, scrape Meta ads, Facebook advertising data, ad creative extraction, competitor ads analysis, brand ads monitoring, Meta advertising…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/search-ads.py`).

It sits in Marketing & SEO, covering Paid advertising and Web scraping. It works with Meta Ads, Instagram, WhatsApp and Python. The repository describes itself as: Browser automation CLI built for AI agents. Break through anti-bot walls, hand off to humans across platforms when stuck. Parallel multi-task execution, independent multi-session… The licence is MIT.

When your agent uses it

  • User mentions Meta Ad Library
  • Facebook ads scraper
  • Instagram ads data
  • Search Facebook ads

Example prompts

  • “Use the facebook-ads-library-search skill to search Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad…”
  • “/facebook-ads-library-search”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 11c057b. 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:

    • python

    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
    • scontent.xx.fbcdn.net
    • nike.com

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Facebook Ads Library Search loads about 2.3k tokens when it runs. Until then it costs about 181 tokens; SKILL.md has 814 words of instructions outside code blocks.

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

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 browser-act/skills at commit 11c057b, republished under its MIT licence (© browser-act). 814 words, ~2,252 tokens.

Download SKILL.mdSave it as .claude/skills/facebook-ads-library-search/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
facebook-ads-library-search
description
Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach estimates, and page transparency info. Use when user mentions Meta Ad Library, Facebook ads scraper, Instagram ads data, FB ad library, search Facebook ads, get ads from a Facebook page, scrape Meta ads, Facebook advertising data, ad creative extraction, competitor ads analysis, brand ads monitoring, Meta advertising transparency, political ads Facebook, housing ads Facebook, view all ads from a page, facebook ads search, fb ads library api, facebook ad archive, instagram ad data, get ad creatives.

Meta Ad Library — Search Ads

keyword or page ID → ad list with creatives, metrics, and pagination cursor

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Fetch ads from Meta Ad Library for a keyword search or a specific Facebook page, returning structured ad data with all available fields.

Prerequisites

  • Browser is open on any Facebook page: https://www.facebook.com/
  • No login required for this capability

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.

API: search ads by keyword

eval "$(python scripts/search-ads.py --query '{keyword}' --country {country} --first {count})"

Parameters:

  • --query: keyword to search (mutually exclusive with --page-id)
  • --country: 2-letter ISO country code or ALL, default ALL
  • --active-status: active | inactive | all, default active
  • --ad-type: ALL | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS, default ALL
  • --media-type: all | image | video | meme, default all
  • --platforms: space-separated list, e.g. facebook instagram, default all platforms
  • --cursor: pagination cursor from previous response's end_cursor, default first page
  • --first: number of ads to return per page, default 10

Output example:

json
{
  "error": false,
  "count": 10,
  "has_next_page": true,
  "end_cursor": "AQHSmvKYSBolzAS9Wq8VSnt4...",
  "ads": [
    {
      "ad_archive_id": "1869276447125570",  // unique ad archive ID
      "ad_id": null,                         // ad ID (null for some ads)
      "page_id": "15087023444",              // advertiser's Facebook page ID
      "page_name": "Nike",                   // advertiser's page name
      "page_profile_uri": "https://facebook.com/nike",
      "page_profile_picture_url": "https://scontent.xx.fbcdn.net/...",
      "is_active": true,                     // whether ad is currently running
      "start_date": 1773730800,              // ad start date (unix timestamp)
      "end_date": 1779692400,                // ad end date (unix timestamp), null if still active
      "publisher_platform": ["facebook", "instagram"],  // platforms the ad runs on
      "currency": "USD",                     // spend currency, null if not disclosed
      "spend": null,                         // estimated spend range, null if not disclosed
      "impressions_with_index": null,        // impression estimate, null if not disclosed
      "reach_estimate": null,                // reach estimate, null if not disclosed
      "categories": [],                      // ad categories
      "contains_sensitive_content": false,
      "body": "Get the gear that never misses.",  // main ad body text
      "caption": "nike.com",                // ad caption
      "title": "Nike Air Monarch IV",        // ad title
      "cta_text": "Shop Now",               // CTA button text
      "cta_type": "SHOP_NOW",               // CTA button type
      "link_url": "https://www.nike.com/...",// destination URL
      "display_format": "carousel",          // ad format
      "cards": [...],                        // carousel cards (each has body, title, cta_type, link_url, original_image_url, video_hd_url)
      "images": [...],                       // image creatives
      "videos": [...]                        // video creatives
    }
  ]
}
API: search ads by page ID

eval "$(python scripts/search-ads.py --page-id '{page_id}' --country {country} --first {count})"

Parameters:

  • --page-id: Facebook page ID (mutually exclusive with --query). To find a page ID: navigate to the Facebook page, the ID appears in the URL or in the page's "About" section
  • All other parameters same as keyword search above

Output example: same structure as keyword search above.

Enum Parameters

--active-status: active | inactive | all

--ad-type: ALL | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS

--media-type: all | image | video | meme

--platforms: facebook | instagram | whatsapp | messenger | audience_network | threads (pass multiple values space-separated)

--country: ISO 2-letter country code (e.g. US, GB, DE, ALL) [collection partially done — full list of supported country codes follows ISO 3166-1 alpha-2 standard]

Pagination

API Pagination: --cursor, type: cursor, start value: omit for first page. Next page value source: end_cursor field in response. Termination: has_next_page: false.

Success Criteria

error = false AND count >= 0 AND has_next_page field present

(count may be 0 for valid queries that return no results; this is not an error)

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

Known Limitations

  • spend, impressions_with_index, reach_estimate fields are frequently null — Meta only discloses these for political/social issue ads or at their discretion
  • ad_id is often null — ad_archive_id is the reliable unique identifier
  • Rate limiting may occur with very high-frequency requests; add 1-2 second delays between requests in batch scripts
  • Private or restricted ads may not appear in results
  • The doc_id (27201872659451053) is a compiled query ID that may change when Meta updates their frontend; if errors occur, re-explore to find the updated ID

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through the command templates serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Refer to rate information in "Known Limitations" above to add appropriate intervals. To increase throughput, open multiple stealth browser sessions and distribute work across them — each session has an independent fingerprint so rate limits apply per session
  • Test before batch execution: After writing a batch script, you must first test with 1-2 items to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly
  • Reduce redundant pre-operations: When multiple steps depend on the same prerequisite state, complete them in batch under that state to avoid repeatedly establishing the same state
  • Error resumption: Save results item by item during batch processing; on failure, resume from the breakpoint rather than starting over

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/facebook-ads-scraper-facebook-ads-library-search.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory)

Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.

After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line: {YYYY-MM-DD}: {what happened} -> {conclusion}

Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.

© browser-act, 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 1 other file (scripts) in solutions/social-listening/facebook-ads-library-search of browser-act/skills.

  • SKILL.md
  • scripts/search-ads.py

Open the folder on GitHubat commit 11c057b

Compare with similar skills

Facebook Ads Library Search 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.

Facebook Ads Library Search compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Facebook Ads Library Search this skillbrowser-act/skills6.1k—~2.3kAutomated safety check: PassMIT
Meta Adshoodini/ai-agents-skills282—~4.2kAutomated safety check: NotesNone
Meta Ad Builderkrusemediallc/arcads-claude-code1.6k—~1.7kAutomated safety check: NotesMIT
Mena Adsgrowthack88/growth-marketing-os116—~2.5kAutomated safety check: PassMIT
AdsCesarjoquin/Marketing-Skills2021 repos~3.5kAutomated safety check: PassMIT
Adscoreyhaines31/marketingskills54k1 repos~7kAutomated safety check: PassMIT

Similar skills

  • Meta Ads

    hoodini/ai-agents-skills

    Pull, analyze, manage, and CREATE Meta ads (Facebook, Instagram, Messenger, Threads, Click-to-WhatsApp) via the Marketing API.

    282 GitHub stars~4.2k tokensUpdated 3 mo ago
    Marketing & SEOAuto-check: notes
  • Meta Ad Builder

    krusemediallc/arcads-claude-code

    Publish finished creatives as live Meta (Facebook/Instagram) ads via the Meta Marketing API, plus research and ad-copy support.

    1.6k GitHub stars~1.7k tokensUpdated 18 days ago
    Marketing & SEOAuto-check: notes
  • Mena Ads

    growthack88/growth-marketing-os

    MENA Ads Command Center — a complete paid-ads operating system for the Arab world (Egypt, KSA, UAE, GCC, Levant, North Africa) and global accounts.

    116 GitHub stars~2.5k tokensUpdated 8 days ago
    Marketing & SEOAuto-check passed
  • Ads

    Cesarjoquin/Marketing-Skills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    202 GitHub starsUsed in 1 repo~3.5k tokens
    Marketing & SEOAuto-check passed
  • Ads

    coreyhaines31/marketingskills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    54k GitHub starsUsed in 1 repo~7k tokens
    Marketing & SEOAuto-check passed
  • Meta Ads Connect

    LeoYeAI/openclaw-marketing-skills

    Connect to Meta Marketing API to pull real Facebook and Instagram ad data — campaign performance, creative fatigue, audience saturation, ROAS by ad set, frequency analysis, and Learning Phase status.

    1k GitHub starsUsed in 1 repo~2k tokens
    Marketing & SEOAuto-check passed

More from browser-act/skills

All 87 skills in this repo
  • Amazon ASIN Lookup

    browser-act/skills

    Fetches structured Amazon product details such as title, price, ratings and availability for a given ASIN through BrowserAct's lookup API template.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Amazon Best Sellers Finder

    browser-act/skills

    Extracts structured Amazon product data for a keyword and marketplace through the BrowserAct API, including titles, prices, ratings, reviews, sales volume and promotions.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Amazon Buy Box Monitor

    browser-act/skills

    Pulls Amazon product details, competing seller prices and seller ratings for a given ASIN through the BrowserAct API, without browser automation.

    6.1k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Analyzes a competitor's Amazon listing by ASIN with BrowserAct data extraction, then reports what it does well, where the market has gaps and opportunity points for your own listing.

    6.1k GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Pulls structured Amazon search results (titles, ASINs, prices, ratings, specifications) for a keyword and brand through BrowserAct's Amazon Product API template.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Collects structured product data from Amazon search results for a keyword and optional brand, using a BrowserAct script, for market and competitor research.

    6.1k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Categories

Questions about Facebook Ads Library Search

What does Facebook Ads Library Search do?

Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach…. Facebook Ads Library Search is an agent skill from browser-act/skills. Searches Meta Ad Library (Facebook/Instagram/WhatsApp ads) by keyword or Facebook page ID and extracts ad details including creatives, copy, CTA, publisher platforms, spend, impressions, reach estimates, and page transparency info.

When should I use Facebook Ads Library Search?

Facebook Ads Library Search fits situations like: user mentions Meta Ad Library; facebook ads scraper; instagram ads data; search Facebook ads.

How do I install Facebook Ads Library Search in Claude Code?

Run `npx skills add browser-act/skills --skill facebook-ads-library-search -a claude-code`. Or copy the skill folder (solutions/social-listening/facebook-ads-library-search in browser-act/skills) into .claude/skills/facebook-ads-library-search in your project. Claude Code loads it when a task matches its description.

How do I install Facebook Ads Library Search in Codex?

Run `npx skills add browser-act/skills --skill facebook-ads-library-search -a codex`. Or copy the skill folder (solutions/social-listening/facebook-ads-library-search in browser-act/skills) into .agents/skills/facebook-ads-library-search in your project. Codex loads it when a task matches its description.

Can I use Facebook Ads Library Search 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 browser-act/skills --skill facebook-ads-library-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/facebook-ads-library-search, .gemini/skills/facebook-ads-library-search, .github/skills/facebook-ads-library-search and .opencode/skills/facebook-ads-library-search in your project.

What does Facebook Ads Library Search need to run?

Going by SKILL.md and its folder, Facebook Ads Library Search needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Facebook Ads Library Search access the network?

SKILL.md names 3 domains. In commands or code: facebook.com, scontent.xx.fbcdn.net 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 Facebook Ads Library Search 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 Facebook Ads Library Search use?

Facebook Ads Library Search 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 Facebook Ads Library Search use?

About 2.3k tokens (SKILL.md is roughly 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 Facebook Ads Library Search?

Skills that share tags, products or a category with Facebook Ads Library Search: Meta Ads (hoodini/ai-agents-skills, 282 stars), Meta Ad Builder (krusemediallc/arcads-claude-code, 1.6k stars), Mena Ads (growthack88/growth-marketing-os, 116 stars) and Ads (Cesarjoquin/Marketing-Skills, 202 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Facebook Ads Library Search?

browser-act (a GitHub organization) maintains it in browser-act/skills, which has 6,126 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on August 24, 2026.

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