Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Pricing

from $0.45 / 1,000 ads

Go to Apify Store
Facebook Ads Library Scraper

Facebook Ads Library Scraper

Facebook Ads Library scraper for collecting public ads from search results and advertiser pages. Extract ad creatives, advertiser details, dates, platforms, and available metrics for ad research and monitoring.

Pricing

from $0.45 / 1,000 ads

Rating

5.0

(1)

Developer

laisi

laisi

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

2

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Collect publicly available ads from Facebook Ad Library search results and advertiser pages. Add one or more Facebook URLs, choose your filters, and find the collected ad records in the run's default dataset.

✨ Features

  • 🔎 Search URLs can target keywords or other Ad Library query criteria.
  • 📄 Public Facebook page URLs can be used to find ads associated with a page.
  • 🔗 Process multiple URLs in one run.
  • 📊 Get ad identifiers, advertiser page information, creative data, and available delivery or impression information.
  • 🧾 Collect additional advertiser and AAA-related information when available.
  • 🛡️ Uses residential proxies by default; no proxy setup or separate proxy fee is required.

📊 Dataset results

Each dataset item represents an ad returned for an input URL. Depending on the ad and the data available from Facebook, a result can include the following fields:

FieldDescription
Ad Archive IDArchive identifier for locating the ad entry in the Ad Library.
Archive TypesArchive classification values associated with the record.
CategoriesCategory labels attached to the ad or its advertiser.
Contains Digitally Created MediaIndicator for whether the creative is identified as digitally created or altered.
Collation CountNumber of ad variants represented in a grouped result.
Collation IDIdentifier used to associate related ad variants.
CurrencyCurrency code associated with reported financial values.
End DateReported end date for the ad's delivery.
Entity TypeType of advertiser or page entity.
Gated TypeAudience or content gating classification, when provided.
Has User ReportedIndicator of whether the ad has a user report flag.
Hidden Safety DataSafety-related data returned by the source.
Hide Data StatusStatus information for fields hidden or restricted by the source.
Impressions With IndexImpression range or indexed impression value.
Is AAA EligibleIndicator for eligibility in the source's AAA-related reporting.
Is ActiveIndicates whether the ad is currently active.
Is Profile PageIndicates whether the advertiser is represented as a profile page.
Page IDIdentifier of the advertiser's page.
Page NameDisplay name of the advertiser's page.
Political CountriesCountries associated with political or social-issue ad classification.
Reach EstimateEstimated audience reach, when the source provides it.
Report CountNumber of reports or report-related records available for the ad.
Snapshot of Ad CreativesCreative payload, which may contain text, images, videos, or other format details.
SpendReported spending range or amount, when available.
Start DateReported date when the ad began running.
State Media Run LabelLabel indicating a state-affiliated media designation, when present.
Publisher PlatformPlatforms where the ad is shown, such as Facebook or Instagram.
Menu ItemsAdditional menu or action metadata associated with the ad record.
AdvertiserAdvertiser details returned by the source;availability may depend on scrapeAdDetails.
InsightsPerformance or delivery insights included in the response.
AAA InfoAdditional AAA-related details; availability may depend on scrapeAdDetails.

⚙️ Actor input

urls (required)

Type: array of strings

Facebook page URLs or Facebook Ad Library search URLs. To create a search URL, open the Ad Library, set the desired query filters, and use the resulting URL.

Example:

[
"https://www.facebook.com/Meta",
"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=coffee&search_type=keyword_unordered"
]

scrapeAdDetails

Type: boolean

When enabled, request additional ad detail data, including advertiser or AAA-related fields when the source makes them available. Defaults to false.

limitPerSource

Type: integer

Maximum number of ads to collect for each URL. Leave it unset or use 0 for no per-URL limit beyond what the source provides.

count

Type: integer

Maximum total number of ads to collect across all URLs. If unset or 0, no run-wide count limit is applied.

period

Type: string

Date window for page-based ad searches. Available values: all, last24h, last7d, last14d, and last30d. Defaults to all.

activeStatus

Type: string

Choose which ads to include: all, active, or inactive. Defaults to all.

sortBy

Type: string

Choose impressions_desc to order by impressions or most_recent to prioritize recent ads. Defaults to impressions_desc.

countryCode

Type: string

Country filter for page-based searches. Use an uppercase two-letter country code such as US or IN, or use ALL for all countries. Defaults to ALL.

🧪 Example input

{
"urls": [
"https://www.facebook.com/Meta",
"https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&is_targeted_country=false&media_type=all&q=coffee&search_type=keyword_unordered&sort_data[mode]=total_impressions&sort_data[direction]=desc"
],
"scrapeAdDetails": false,
"limitPerSource": 50,
"count": 100,
"period": "last30d",
"activeStatus": "all",
"sortBy": "impressions_desc",
"countryCode": "ALL"
}

Not every field is available for every ad. Values and formats depend on the source record, country, ad type, and the data returned during the run. Creative and source-specific metadata may also appear inside snapshot.

🚀 How to run

  1. Add one or more Facebook page or Ad Library URLs to urls.
  2. Set optional limits and filters for the run.
  3. Enable scrapeAdDetails if you need additional detail fields.
  4. Start the Actor and review the results in the default dataset.

⚠️ Notes

  • This Actor is intended for publicly visible Ad Library information.
  • Use collected data in accordance with applicable laws, privacy requirements, and the source platform's terms.
  • Facebook may change its pages or data formats, which can affect availability and structure.

keywords: facebook ads scraper, meta ads scraper, facebook ads library scraper, scrape facebook ads