Meta Brand Ad Scrapper avatar
Meta Brand Ad Scrapper

Pricing

Pay per event

Go to Store
Meta Brand Ad Scrapper

Meta Brand Ad Scrapper

Developed by

Shop Intel

Shop Intel

Maintained by Community

Scrape Meta ads in seconds! Just drop the brand’s Ad Library URL, choose how many ads you want, and boom — instant access to ad creatives and insights. No fluff, no setup. Perfect for marketers, analysts, and creatives hunting for inspiration or competitor data. Fast, simple, and insanely useful.

0.0 (0)

Pricing

Pay per event

0

Total users

1

Monthly users

0

Last modified

2 days ago

Meta Ad Library Scraper

An Apify actor that scrapes ads from Meta's Ad Library for a given page URL.

Description

This actor allows you to scrape ads from Meta's Ad Library for any Facebook page. It extracts detailed information about each ad, including:

  • Basic ad information (ID, page ID, page name)
  • Ad creation and delivery times
  • Ad content (body, links, titles)
  • Performance metrics (impressions, spend)
  • Distribution data (demographics, regions, platforms)

Input

The actor accepts the following input parameters:

{
"adLibraryUrl": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=123456789",
"maxResults": 100
}
  • adLibraryUrl (required): The Meta Ad Library URL to scrape
  • maxResults (optional): Maximum number of ads to scrape (default: 100)

Output

The actor stores all scraped ads in the Apify dataset. Each ad in the dataset contains detailed information about the ad.

Additionally, the actor sets an output value with summary information:

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

Development

Local Development

  1. Install the Apify CLI:
$npm install -g apify-cli
  1. Create a new actor:
$apify create
  1. Install dependencies:
$pip install -r requirements.txt
  1. Run the actor locally:
$apify run

Deployment

To deploy the actor to the Apify platform:

$apify push

Environment Variables

No environment variables are required for basic operation.

Rate Limiting

The actor implements rate limiting and retry logic to handle Meta's API restrictions. It will automatically:

  • Wait between requests to avoid rate limiting
  • Retry failed requests up to 3 times
  • Handle rate limit responses with exponential backoff

License

MIT