Meta Ad Scrapper (Using Meta Ad Library URL) (Premium) avatar
Meta Ad Scrapper (Using Meta Ad Library URL) (Premium)

Pricing

$0.50 / 1,000 results

Go to Store
Meta Ad Scrapper (Using Meta Ad Library URL) (Premium)

Meta Ad Scrapper (Using Meta Ad Library URL) (Premium)

Developed by

Shop Intel

Shop Intel

Maintained by Community

Scrape Meta ads instantly using any brand’s Ad Library URL. Just enter the URL and number of ads you want — get structured, real-time ad data in seconds. Ideal for marketers, analysts, and creators. Fast, simple, and pay-per-result. No fluff, just the ads you need.

5.0 (1)

Pricing

$0.50 / 1,000 results

2

Total users

14

Monthly users

14

Runs succeeded

90%

Last modified

a day ago

🎯 Meta Brand Ad Scraper

A powerful Apify actor that scrapes detailed ad information from Meta's Ad Library for brands, pages, and keyword searches.

✨ Features

  • Multiple Search Types:

    • Page-based search (by Facebook Page ID)
    • Keyword exact phrase search
    • Keyword unordered search
    • Regular keyword search
  • Comprehensive Data Collection:

    • 📊 Performance metrics (spend, impressions, reach)
    • 📝 Ad content (body, titles, links, media)
    • 🎯 Distribution data (platforms, countries)
    • 📅 Timing information (start/end dates)
    • 🔍 Page metadata (categories, entity type)
    • 📈 Additional metrics (AAA eligibility, reshare status)
  • Smart Features:

    • Automatic rate limiting
    • Retry mechanism with exponential backoff
    • Detailed logging
    • Progress tracking
    • Error handling

🚀 Quick Start

Input Format

{
"adLibraryUrl": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=123456789",
"maxResults": 200
}

Input Parameters

ParameterTypeRequiredDescription
adLibraryUrlstringYesMeta Ad Library URL to scrape
maxResultsintegerNoMaximum number of ads to scrape (default: 100)

Output Structure

{
"summary": {
"totalAds": 100,
"searchType": "page",
"identifier": "123456789",
"adLibraryUrl": "https://www.facebook.com/ads/library/...",
"urlParams": {
"status": "ALL",
"country": "ALL",
"media_type": "all",
"ad_type": "all"
},
"totalSpend": 5000.00,
"totalImpressions": 100000,
"uniquePlatforms": ["Facebook", "Instagram"]
},
"data": {
"ads": [
{
"metadata": { ... },
"ad_content": { ... },
"timing": { ... },
"performance": { ... },
"distribution": { ... },
"status": { ... },
"additional_info": { ... }
}
]
}
}

🛠️ Development

Prerequisites

  • Python 3.9+
  • Apify CLI
  • Docker (for containerized development)

Local Setup

  1. Install Dependencies
$pip install -r requirements.txt
  1. Run Tests
$python -m src.test_scraper
  1. Run Locally
$apify run

Deployment

Deploy to Apify platform:

$apify push

🔧 Configuration

URL Parameters

The actor supports various URL parameters:

ParameterDescriptionDefault
active_statusAd status filterALL
countryTarget countryALL
media_typeMedia type filterall
ad_typeAd type filterall
is_targeted_countryCountry targetingfalse

⚡ Performance

  • Rate Limiting: Automatic handling of Meta's rate limits
  • Retry Logic: Up to 3 retries with exponential backoff
  • Error Handling: Comprehensive error catching and reporting
  • Progress Tracking: Real-time progress updates

📝 License

MIT License - feel free to use this actor for your projects!

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📧 Support

For support, please open an issue in the repository or contact the maintainers.