Meta Ads Library Scraper avatar

Meta Ads Library Scraper

Pricing

Pay per usage

Go to Apify Store
Meta Ads Library Scraper

Meta Ads Library Scraper

Scrapes the public Meta (Facebook) Ads Library by keyword, advertiser page, or Ad Library URL. Uses curl_cffi Chrome TLS impersonation and GraphQL pagination. No Facebook login required.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Man Mohit verma

Man Mohit verma

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

24 days ago

Last modified

Share

Apify Actor that collects public ad data from the Meta (Facebook) Ads Library.

Features

  • Search by keyword, advertiser page URL/ID, or pasted Ad Library URL
  • Apify Proxy support with per-search sticky sessions (direct-first, proxy on block)
  • Structured JSON output with ad copy, status, platforms, dates, and creative details

Quick start

cd as-facebook-ads-scrapper
uv sync
apify run

Local input: storage/key_value_stores/default/INPUT.json or inputs/default.json fallback.

Example input

{
"queries": ["nike"],
"country": "US",
"adActiveStatus": "ACTIVE",
"maxResultsPerSource": 50,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "US"
}
}

Output fields

Each ad row includes adArchiveID, pageName, adStatus, adText, publisherPlatforms, startDate, endDate, searchType, search, adLibraryURL, CTA link, headline, creative media in snapshot, and related fields.

Development

uv sync --extra dev
pytest