Facebook Ad Library Scraper

Facebook Ad Library Scraper

by apipi

Ultra-fast Facebook Ads Library scraper with advanced filtering. Extract ads from Meta Ads Library in seconds! Perfect for competitor analysis, market...

6,044 runs
81 users
Try This Actor

Opens on Apify.com

About Facebook Ad Library Scraper

Ultra-fast Facebook Ads Library scraper with advanced filtering. Extract ads from Meta Ads Library in seconds! Perfect for competitor analysis, market research, and ad intelligence.

What does this actor do?

Facebook Ad Library Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Facebook Ad Library Scraper πŸš€ Ultra-fast Facebook Ads Library scraper with advanced filtering. Extract ads from Meta Ads Library in seconds! Perfect for competitor analysis, market research, and ad intelligence. πŸ“Š Scrape detailed ad data from Facebook Ad Library API (Meta Ads Library API) with support for all countries, languages, and ad types. Get images, videos, ad copy, targeting data, and performance metrics in clean JSON format. The fastest Facebook Ad Library scraper on Apify! ⚑ ## Why Choose This Scraper? ⚑ - πŸ”₯ Lightning Fast - Scrape 100+ ads in under 10 seconds - 🎯 Advanced Filtering - Filter by language, media type, date range, and more - 🌍 All Countries Supported - Works with any country's Facebook Ad Library - πŸ“Š Rich Data Extraction - Get complete ad details including creatives, targeting, and performance - πŸ”„ Automatic Pagination - Scrape unlimited ads with smart pagination - πŸ’Ž Clean JSON Output - Well-structured data ready for analysis ## Features ✨ - βœ… Meta Ads Library API Access - Direct access to Facebook Ad Library data - βœ… Multiple Search Types - Exact phrase or keyword matching - βœ… Media Filtering - Filter by images, videos, or all media types - βœ… Date Range Support - Target specific ad campaign periods - βœ… Language Detection - Filter ads by language - βœ… Bulk Scraping - Extract up to 1000+ ads per run - βœ… Real-time Data - Get the latest active ads from Facebook Ads Library ## πŸ“Š What Data You Get from Facebook Ads Library Extract comprehensive ad intelligence from the Facebook Ad Library API: - Ad Identification: Archive ID, page ID, ad status - Creative Assets: Ad copy, images URLs, video links, carousel cards - Campaign Details: Start date, end date, active status - Targeting Data: Publisher platforms (Facebook, Instagram, Messenger, Audience Network) - Performance Metrics: Impressions range, reach estimates - Page Information: Page name, category, profile picture, likes count - Call-to-Action: CTA text, CTA type, destination URL - Rich Snapshot: Complete ad creative in JSON format ## πŸš€ Quick Start - Facebook Ad Library Scraper ### Required Input - query (required): Search keyword, brand name, or phrase to find in Facebook Ads Library ### Optional Filters for Meta Ads Library - country: Country code (default: US) - Search any country's Facebook Ad Library - max_results: Number of ads to scrape (default: 30, max: 1000) - keyword_type: KEYWORD_EXACT_PHRASE or keyword_unordered - languages: Filter by language - e.g., ["en", "es"] for English and Spanish ads - media_type: all, IMAGE (images only), or VIDEO (videos only) - start_date_min: Filter ads by start date (format: YYYY-MM-DD) - start_date_max: Filter ads by end date (format: YYYY-MM-DD) ## πŸ“ Input Examples ### Basic Search json { "query": "Nike", "country": "US", "max_results": 100 } ### Search with Filters json { "query": "running shoes", "country": "US", "max_results": 200, "keyword_type": "KEYWORD_EXACT_PHRASE", "languages": ["en"], "media_type": "IMAGE", "start_date_min": "2024-01-01", "start_date_max": "2024-12-31" } ### Multi-language Search json { "query": "hotel", "country": "ES", "max_results": 150, "languages": ["en", "es", "de"] } ### Video Ads Only json { "query": "brand campaign", "country": "US", "max_results": 50, "media_type": "VIDEO" } ## 🌍 Supported Countries Use standard ISO country codes: - US - United States - GB - United Kingdom - DE - Germany - FR - France - ES - Spain - IT - Italy - CA - Canada - AU - Australia - And many more... ## πŸ—£οΈ Supported Languages Filter by language using ISO 639-1 codes: - en - English - es - Spanish - de - German - fr - French - it - Italian - pt - Portuguese - ru - Russian - zh - Chinese - ja - Japanese - ko - Korean - And others... ## πŸ“¦ Output Format json { "ad_archive_id": "1805241386799255", "page_id": "112663631773139", "page_name": "Beautiful-sunflower.be", "is_active": true, "start_date": 1761634800, "end_date": 1761634800, "snapshot": { "branded_content": null, "page_id": "112663631773139", "page_is_deleted": false, "page_profile_uri": "https://www.facebook.com/100090208388488/", "root_reshared_post": null, "byline": null, "disclaimer_label": null, "page_name": "Beautiful-sunflower.be", "page_profile_picture_url": "https://scontent-waw2-2.xx.fbcdn.net/v/t39.35426-6/571129675_820183734271297_815979828536297806_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=sORaBlqgqcAQ7kNvwHmCXMa&_nc_oc=AdkftOJHyhsAiaL06ibnoaPefvj4KHZMOabWSnvu5nSN5_RfqLWijQZXYSTg2wcPSwprNi1CGNb3O9Nv9pvbw-qU&_nc_zt=14&_nc_ht=scontent-waw2-2.xx&_nc_gid=kfx9Ulbb4t_XsjfIElJ7ig&oh=00_AfcEqUiFACRa8k8dj6KdGU0IljPPvDtTVyM59Cnp-6Aq5g&oe=69069F8E", "event": null, "caption": "beautiful-sunflower.com", "cta_text": "Jetzt kaufen", "cards": [], "body": { "text": "πŸš΄β€β™‚οΈ Ride into the spirit of the season!\nThe Grand Cycling Adventure Advent Calendar 2025 brings 24 days of pure excitement inspired by the world’s greatest race β€” a tribute to endurance, freedom, and passion on two wheels." }, "cta_type": "SHOP_NOW", "display_format": "IMAGE", "link_description": "πŸš΄β€β™‚οΈπŸŒŸ The Tour de France Advent Calendar 2025 Collector’s Edition is officially launched, celebrating the glory and passion of cycling fans across the worldπŸ’₯ Each drawer unveils exclusive Tour de France treasures β€” from mini racing bikes and team helmets to champion figu...", "link_url": "https://www.beautiful-sunflower.com/products/tour-de-france-advent-calendar-2025-2173411442236", "images": [ { "image_crops": [], "original_image_url": "https://scontent-waw2-1.xx.fbcdn.net/v/t39.35426-6/571164864_1886139212287452_6157224743190712048_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=ZbsD2y3CgM8Q7kNvwEziJLk&_nc_oc=Admqc3TGp5A4uu3YG6dMGl_Qyg_k3_fItFngth9wHErpuZcBqDmTQANf7S8UHhuZBoDzhvSdIfCaMEvZx14mYAsE&_nc_zt=14&_nc_ht=scontent-waw2-1.xx&_nc_gid=kfx9Ulbb4t_XsjfIElJ7ig&oh=00_AfcKrxy3oWf7hZisQ_gS8LzqCr34weNELATMJSphoY5u5g&oe=6906A6C2", "resized_image_url": "https://scontent-waw2-2.xx.fbcdn.net/v/t39.35426-6/571201344_1782071335815707_1285150469390277666_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=5I07KULskHgQ7kNvwHfnNZJ&_nc_oc=AdlohxSgOWrvadO05cWac2dEf14p6WSEk8cCF78GvnpJ6o6b23-WpxJc5UeuG_ZBOmbK3swu1FN8GF0H03UxVZkb&_nc_zt=14&_nc_ht=scontent-waw2-2.xx&_nc_gid=kfx9Ulbb4t_XsjfIElJ7ig&oh=00_AfcXnT3pAJgYB2mD-A0A3XX8pzQefMWHhNUsWXjh2zJrvg&oe=6906BA28", "watermarked_resized_image_url": "" } ], "page_categories": [ "Product/service" ], "page_like_count": 1301, "title": "Tour de France Advent Calendar 2025", "videos": [], "is_reshared": false, "extra_links": [], "extra_texts": [], "extra_images": [], "extra_videos": [], "country_iso_code": null, "brazil_tax_id": null, "additional_info": null, "ec_certificates": [] }, "publisher_platform": [ "FACEBOOK", "INSTAGRAM", "AUDIENCE_NETWORK", "MESSENGER", "THREADS" ], "impressions": { "impressions_text": null, "impressions_index": -1 }, "currency": "" }, ## πŸ’‘ Use Cases for Facebook Ads Library Data ### 🎯 Competitive Intelligence Monitor competitors' Facebook advertising strategies in real-time. Track their ad copy, creative assets, and campaign frequency using Meta Ads Library data. ### πŸ“Š Market Research Analyze advertising trends across your industry. Discover what products, messages, and creative formats perform best in the Facebook Ad Library. ### 🎨 Creative Inspiration Study successful ad campaigns from top brands. Extract images, videos, and copy from the Facebook Ads Library for creative inspiration. ### πŸ“ˆ Campaign Tracking Track brand campaigns over time using the Facebook Ad Library API. Monitor ad launch dates, duration, and creative variations. ### 🌍 Regional Analysis Compare advertising strategies across different countries. See how brands adapt their messages for different markets using Meta Ads Library. ### πŸ” Brand Monitoring Get alerts when specific brands launch new campaigns. Track your own brand mentions in the Facebook Ad Library. ## ⚑ Performance - Ultra-Fast Facebook Ad Library Scraping ### Speed Benchmarks πŸš€ - 30 ads β†’ Less than 3 seconds ⚑ - 100 ads β†’ Under 10 seconds πŸ”₯ - 500 ads β†’ Approximately 30 seconds πŸ’¨ - 1000 ads β†’ Around 1 minute ⏱️ ### Why So Fast? - βœ… Optimized Meta Ads Library API requests - βœ… Smart pagination with automatic cursor management - βœ… Parallel data processing - βœ… Minimal overhead - direct JSON output - βœ… No browser automation needed ### Reliability - πŸ›‘οΈ Built-in error handling and automatic retries - πŸ”„ Handles Facebook Ad Library rate limits automatically - πŸ“Š Consistent data quality - βœ… 99%+ success rate ## πŸ“‹ Best Practices for Facebook Ad Library Scraping ### 1. Optimize Your Queries 🎯 Use specific brand names or product keywords for better Facebook Ads Library results: - βœ… Good: "Nike Air Max" - specific product - βœ… Better: "Nike" - brand name - ❌ Too broad: "shoes" - generic term ### 2. Start Small, Scale Up πŸ“ˆ Test with 30-50 ads first, then increase to 100-500+ for comprehensive Meta Ads Library data extraction. ### 3. Use Smart Filters πŸ” Leverage advanced filtering for precise Facebook Ad Library data: - Languages: Target specific markets (["en", "es"]) - Media Type: Filter for IMAGE or VIDEO ads only - Date Range: Focus on recent campaigns or specific periods - Countries: Scrape from any country's Facebook Ad Library ### 4. Regular Monitoring πŸ“Š Set up daily/weekly scrapes to track competitors' Facebook advertising strategies over time. ## ⚠️ Limitations - Rate limiting: ~1 request per second - Some ads may have limited data availability - Date filters apply to ad start dates - Historical data availability varies by region --- Tags: facebook-ad-library facebook-ads meta-ads ad-scraper competitive-intelligence market-research facebook-api meta-api ad-intelligence facebook-advertising

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Facebook Ad Library Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
apipi
Pricing
Paid
Total Runs
6,044
Active Users
81
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support