Meta (Facebook) Ad Library Scraper - Fast & Reliable
by whoareyouanas
Scrape Meta ads in seconds - no fluff, just instant access to the ad data and insights you need. Get detailed ad information including title, descri...
Opens on Apify.com
About Meta (Facebook) Ad Library Scraper - Fast & Reliable
Scrape Meta ads in seconds - no fluff, just instant access to the ad data and insights you need. Get detailed ad information including title, description, images, videos, CTA, Social platform and metadata
What does this actor do?
Meta (Facebook) Ad Library Scraper - Fast & Reliable 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
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Meta Ads Scraper A powerful Apify actor that scrapes Meta/Facebook ads from the ad library, extracting detailed information including images, videos, and metadata. ## Features - Comprehensive Ad Data: Extracts brand, body text, CTA, links, images, videos, and metadata - Multiple Platform Support: Tracks ads across different platforms - Robust Scraping: Handles dynamic content loading and multiple selectors - Error Handling: Gracefully handles failures and logs detailed information - Scalable: Configurable concurrency and timeout settings ## Input Parameters ### Required - targetUrl (string): Meta ad library URL to scrape ### Optional - maxConcurrency (integer): Maximum number of concurrent requests (default: 1, max: 10) - requestHandlerTimeoutSecs (integer): Timeout for each request in seconds (default: 300, max: 600) ## Output Format The actor outputs structured data for each scraped ad: json { [ { "libraryID": "12345678900", "brand": "Example Brand", "industry": "Technology", "active": true, "platforms": ["Facebook", "Instagram"], "totalPlatforms": 2, "similarAdCount": 3, "multipleVersions": true, "body": "Check out our amazing new product!", "linkTitle": "Amazing Product", "linkUrl": "https://example.com/product", "linkDescription": "The best product you'll ever use", "ctaText": "Shop Now", "ctaUrl": "https://example.com/shop", "images": [ { "url": "https://example.com/image1.jpg" } ], "videos": [ { "url": "https://example.com/video1.mp4", "duration": 30 } ], "scrapeDate": "2024-01-01T12:00:00.000Z", "startDate": "2024-01-01T00:00:00.000Z", "endDate": "2024-01-31T23:59:59.000Z", "runningTAT": 30, "format": "video" } ] } ## Usage Examples ### Basic Usage json { "targetUrl": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&media_type=all" } ### Advanced Usage json { "targetUrls": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&media_type=all" , "maxConcurrency": 2, "requestHandlerTimeoutSecs": 300 } ## Error Handling The actor includes comprehensive error handling: - Failed URLs are logged and saved to key-value store - Individual ad parsing errors don't stop the entire process - Detailed console logging for debugging - Graceful handling of page loading issues ## Performance Considerations - Concurrency: Start with maxConcurrency: 1 and increase based on your needs - Timeout: Adjust requestHandlerTimeoutSecs based on page complexity - Rate Limiting: The actor respects website rate limits and includes delays ## Common Issues 1. No ads found: Check if the URL is accessible and contains ads 2. Timeout errors: Increase requestHandlerTimeoutSecs for slow-loading pages 3. Selector changes: Facebook may update their CSS selectors; the actor uses multiple fallback selectors ## Technical Details - Built with Apify SDK and Crawlee - Uses Puppeteer for browser automation - Handles dynamic content loading with scroll-based pagination - Implements duplicate detection to avoid scraping the same ad multiple times ## Support For issues or questions, please check the Apify Console logs for detailed error information. Contact - anas5678go@gmail.com for enterprise support
Categories
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 Meta (Facebook) Ad Library Scraper - Fast & Reliable now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- whoareyouanas
- Pricing
- Paid
- Total Runs
- 3,370
- Active Users
- 291
Related Actors
YouTube Video Transcript
by starvibe
Reddit Scraper
by macrocosmos
Perplexity 2.0
by winbayai
Idealista.com
by lukass
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support