GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FlowExtractAPI/facebook-ads-scraper-pro: Scrape Facebook's Ad Library by keyword, advertiser, page ID or pasted URL: ad text, creatives, CTA, dates, platforms and countries, plus optional EU reach, age and gender targeting, payer and advertiser details. Real-time results and a live API.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 

Repository files navigation

Facebook Ads Scraper Pro extracts ads from Facebook's Ad Library — by keyword, advertiser / page ID or pasted Ad Library URL — with ad text, creatives (images and videos), CTA, dates, platforms and countries, plus optional EU reach, age/gender targeting, payer/beneficiary and advertiser details. Results stream into your dataset as they are collected, and the same engine answers as a live HTTP API.

Perfect for marketers, agencies and competitive-intelligence teams who track what competitors run on Facebook and Instagram.

https://www.youtube.com/watch?v=yNSIhZcDlNY

What does Facebook Ads Scraper Pro do?

  • Three search modes — Ad Library URLs (every filter in the URL is applied), keywords, and advertiser names or page IDs; combine them in one run.
  • Full ad data — text, title, caption, link and CTA, media (images and videos), extra assets, start/end dates, active status, platforms, countries and category.
  • Ad-detail enrichment (optional) — advertiser page info, Instagram followers, EU targeting (location, age, gender, total EU reach), payer/beneficiary and policy violations.
  • Filters — countries, languages, platforms, active status, ad type, media type, date range and sort order.
  • Real-time delivery — results appear in the dataset batch by batch.
  • Live API — stream NDJSON from a warm server with no run to start.

What data can you extract from the Facebook Ad Library?

Category Fields
Ad id, text, title, caption, link_url, cta_text, ad_category, contains_sensitive_content
Advertiser page_id, page_name, page_url, page_profile_picture_url, page_likes, page_category
Media media.type, primary_thumbnail, images, videos, additional_assets
Timing & reach start_date, end_date, is_active, platforms, countries, scraped_at
Enrichment (optional) ad_details.advertiser (about, Instagram, verification, cover), ad_details.aaa_info (EU reach, age/gender/location audience, payer/beneficiary), violation_types

Who uses it?

  • Competitive intelligence — competitors' creatives, messaging, platforms and run lengths.
  • Campaign optimization — what formats and offers stay live longest in your market.
  • Market research — ad activity by country, language and category.

Why use Facebook Ads Scraper Pro on Apify?

Running it on Apify gives you API access, scheduling, monitoring, integrations (Make, Zapier, n8n, webhooks) and automatic proxy selection without managing infrastructure.

How to scrape the Facebook Ad Library

  1. Open Facebook Ads Scraper Pro in Apify Console.
  2. Paste Ad Library URLs into URLAds, and/or add search queries or advertisers (names or page IDs).
  3. Set Max results per query (start small: 10) and any filters — countries, languages, platforms, dates.
  4. Turn on Enrich with ad details if you need EU reach, targeting and payer data.
  5. Click Start and watch results arrive, then download them as JSON, CSV or Excel, or fetch them over the API.

How much does it cost to scrape Facebook ads?

You pay per ad delivered:

Event FREE BRONZE SILVER GOLD
Ad result $0.0006 $0.00055 $0.0005 $0.0004
Ad result with full details (enrichWithAdDetails) $0.0025 $0.001 $0.0008 $0.0006
  • 1,000 ads cost about $0.60 on the FREE plan price and $0.40 on GOLD; with full details, $2.50 and $0.60.
  • On Apify's FREE plan a run returns at most 200 results in total (a sample of the full set) and still finishes SUCCEEDED; paid plans have no cap and use a dedicated proxy. You're never charged for results you don't receive.

Input and output examples

Input

{
  "URLAds": [
    { "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=nike&media_type=video" }
  ],
  "searchQueries": ["marketing"],
  "searchAdvertisers": ["Nike", "15087023444"],
  "maxResultsPerQuery": 100,
  "countries": ["US"],
  "enrichWithAdDetails": true
}
Parameter Default Description
URLAds [] Facebook Ad Library URLs; all their filters are applied
searchQueries [] Keywords
searchAdvertisers [] Advertiser names or page IDs
maxResultsPerQuery 10 Ads per URL / query / advertiser
countries ["ALL"] ISO country codes, e.g. ["US", "GB"]
contentLanguages [] Language codes, e.g. ["en", "es"]
publisherPlatforms [] Facebook, Instagram, Messenger, Audience Network, Threads…
activeStatus / adType / mediaType ALL Activity, category and media filters
sortBy SORT_BY_TOTAL_IMPRESSIONS Sort order
startDate / endDate — Date range (YYYY-MM-DD)
enrichWithAdDetails false One extra request per ad for the full detail record

At least one of URLAds, searchQueries or searchAdvertisers is required; URLs run first, then advertisers, then keywords.

Output

{
  "id": "606497791453836",
  "page_id": "15087023444",
  "page_name": "Nike",
  "page_url": "https://facebook.com/Nike",
  "page_likes": 5000000,
  "page_category": "Brand",
  "text": "Just Do It campaign",
  "title": "Ad Title",
  "caption": "Visit our store",
  "link_url": "https://nike.com",
  "cta_text": "Learn More",
  "media": { "type": "video", "primary_thumbnail": "https://...", "images": ["..."], "videos": ["..."] },
  "start_date": "2024-01-15",
  "end_date": "2024-02-15",
  "is_active": true,
  "platforms": ["FACEBOOK", "INSTAGRAM"],
  "countries": ["US", "GB", "CA"],
  "ad_category": "MARKETING",
  "contains_sensitive_content": false,
  "scraped_at": "2026-01-25T23:14:50Z",
  "ad_details": {
    "advertiser": {
      "ad_library_page_info": {
        "page_info": { "ig_username": "nike", "ig_followers": 306000000, "ig_verification": true, "page_verification": "BLUE_VERIFIED" }
      }
    },
    "aaa_info": {
      "targets_eu": true,
      "gender_audience": "All",
      "age_audience": { "min": 18, "max": 65 },
      "eu_total_reach": 500000,
      "location_audience": [{ "name": "France", "type": "countries" }],
      "payer_beneficiary_data": [{ "payer": "Nike Inc.", "beneficiary": "Nike" }]
    },
    "violation_types": []
  }
}

ad_details is present only with enrichWithAdDetails: true.

Call it as an API

The Actor also runs as a warm HTTP server that streams results as NDJSON (log lines, ad batches, completion and summary events):

curl -X POST "https://dz-omar--facebook-ads-scraper-pro.apify.actor?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["nike", "adidas"], "searchAdvertisers": ["15087023444"], "maxResultsPerQuery": 100}'

If the server migrates, it sends a migrating event and closes gracefully — reconnect to resume.

Other Actors you might need

Actor What it adds
Facebook Comment Scraper Comments & threaded replies from Facebook reels, videos, photos, posts & groups
Facebook Posts Scraper Groups & Profiles & NO COOKIES
Facebook Ads URL Parser Copy any Facebook Ad Library URL and instantly extract ads data.
Facebook Reviews Scraper Recommendations & Owner Replies
LinkedIn Ads Scraper Impressions, Targeting & Many Searches

Frequently asked questions

Why did I get only 200 results?

That's the FREE-plan cap: 200 results per run in total, across all queries, after which the run finishes successfully and the log shows a "FREE PLAN SAMPLE" banner. Subscribe to any paid Apify plan and re-run the same input — the Actor detects the upgrade automatically.

How do I copy a search from the Ad Library?

Set up your search on the Facebook Ad Library, copy the URL from your browser and paste it into URLAds — country, language, dates, media type, platforms and sort order are extracted automatically. Single ad links (?id=…) work too.

Why are there no results?

Try broader keywords, check the spelling, use ISO 2-letter country codes (US, not USA) or ALL, and widen the date range — some ads aren't shown in every region, and recent ads may be indexed with a delay.

How are errors handled?

Failed queries are retried up to 3 times with exponential back-off; a query that still fails is logged and the rest of the job continues.

Do I need a Facebook account?

No. The Ad Library is public — no login and no cookies.

Is it legal to scrape the Facebook Ad Library?

The Ad Library is a public transparency tool. Comply with Meta's terms and data-protection laws. This is not legal advice.

Can I use Facebook Ads Scraper Pro in Make, Zapier, n8n or my own code?

Yes — through Apify's integrations, the Apify API and client libraries, or the live API above. To start from saved Ad Library URLs only, see Facebook Ads URL Parser.

Support

  • 🌐 Website: flowextractapi.com
  • 📧 Email: [email protected]
  • 💬 GitHub: FlowExtractAPI
  • 💼 LinkedIn: flowextract-api
  • 🐦 X (Twitter): @FlowExtractAPI
  • 📱 Facebook: flowextractapi
  • 🎵 TikTok: @flowextractapi

Legal & compliance

  • Public data only — the public Facebook Ad Library, no login, no cookies.
  • Rate limiting — paced requests with retries and back-off.
  • Data protection — no storage of personal information or unauthorized data collection.
  • Commercial use — suitable for business intelligence and research.
  • No affiliation with or endorsement by Facebook or Meta is implied.

Facebook Ads Scraper Pro — by FlowExtract API. Turn any website into structured data.

About

Scrape Facebook's Ad Library by keyword, advertiser, page ID or pasted URL: ad text, creatives, CTA, dates, platforms and countries, plus optional EU reach, age and gender targeting, payer and advertiser details. Real-time results and a live API.

apify.com/dz_omar/facebook-ads-scraper-pro?fpr=smcx63

Topics

actorad-libraryapifydata-extractionfacebookfacebook-adsfacebook-ads-scraper-promarketing-toolsndjsonnodejsscrapersocial-mediastandby-mode

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.