VOOZH about

URL: https://apify.com/memo23/facebook-ads-library-scraper-cheerio

โ‡ฑ Facebook Ads Library Scraper [Reach Included] (Richest output) ยท Apify


๐Ÿ‘ Facebook Ads Library Scraper [Reach Included] (Richest output) avatar

Facebook Ads Library Scraper [Reach Included] (Richest output)

Pricing

$31.00/month + usage

Go to Apify Store

Facebook Ads Library Scraper [Reach Included] (Richest output)

Facebook Ads Library Scraper โ€” search the Meta Ad Library by keyword or page URL and export every ad: creatives, copy, spend & impressions, EU reach & transparency, advertiser pages, run dates. Richest schema on the Store. Filter by country, status & media type. Free trial.

Pricing

$31.00/month + usage

Rating

4.9

(10)

Developer

๐Ÿ‘ Muhamed Didovic

Muhamed Didovic

Maintained by Community

Actor stats

44

Bookmarked

763

Total users

37

Monthly active users

1.9 hours

Issues response

5 days ago

Last modified

Share

Facebook Ads Library Scraper

Scrape active Facebook ads with filters like keywords, dates, media type, and country


Overview

This actor scrapes Facebook's Ads Library to extract detailed information about active advertising campaigns. Ideal for marketers, competitors, and researchers analyzing ad strategies. Supports filtering by:

  • Keywords/phrases (e.g., "free shipping")
  • Date ranges (up to 2025-02-15)
  • Media types (video/image/text)
  • Countries (e.g., GB for UK-targeted ads)
  • Ad status (active/inactive)

Features

  • ๐Ÿ”Ž Keyword Search (no URL needed): Just enter search terms, countries, and status โ€” the actor builds the Meta Ad Library query for you. No hand-crafted URLs.
  • Flexible URL Input: Supports both Ads Library URLs and direct Facebook page URLs (e.g., https://www.facebook.com/SHEINOFFICIAL)
  • Automatic Page ID Extraction: Automatically extracts page IDs from Facebook page URLs and converts them to Ads Library format
  • Precision Filtering: Target ads by 10+ criteria including media type, country, and exact keywords
  • Dynamic Delays: Randomized delays (5-10s) between API calls to avoid detection
  • Residential Proxies: Built-in Apify residential proxy rotation
  • Retry Resilience: 100 retries per failed request
  • Concurrency Control: Process 1-10 pages simultaneously
  • Historical Range: Scrape ads up to future dates (2025-02-15 supported)

How to Use

  1. Configure Input: Set your filters in the input JSON (see configuration below)
  2. Run via Apify: Execute the actor on Apify platform
  3. Export Data: Download results as JSON, CSV, or Excel
  4. Analyze: Track ad creatives, sponsors, and run dates

Input Configuration

Easiest โ€” Search by keyword (no URL needed)

Just type what you want and the actor builds the Meta Ad Library query for you โ€” no need to hand-craft a URL.

{
"searchTerms":["nike","weight loss"],
"searchCountries":["US","GB"],
"adActiveStatus":"active",
"mediaType":"all",
"searchMode":"keyword_unordered",
"maxItems":100,
"proxy":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}
}
FieldWhat it does
searchTermsKeywords or brand names โ€” each term is searched separately
searchCountriesISO 2-letter codes (US, GB, โ€ฆ) or ALL; each is queried per term
adActiveStatusactive, inactive, or all
mediaTypeall, image, or video
searchModekeyword_unordered (broad โ€” any word) or keyword_exact_phrase (auto-quoted)
startDateMin / startDateMaxOnly ads that started in this date window (YYYY-MM-DD)

Need political/housing/employment ad categories, a specific publisher platform, or a content language? Paste a full Ads Library URL via startUrls instead (see the advanced examples below).

Example 1: Using Facebook Page URLs (Direct)

{
"startUrls":[
"https://www.facebook.com/SHEINOFFICIAL",
"https://www.facebook.com/Nike",
"https://www.facebook.com/usemotionapp"
],
"maxItems":100,
"minDelay":5,
"maxDelay":10,
"proxy":{
"useApifyProxy":true,
"apifyProxyGroups":["RESIDENTIAL"]
}
}

Example 2: Using Ads Library URLs (Advanced Filtering)

{
"startUrls":[
"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=GB&is_targeted_country=false&media_type=video&q=%22free%20shipping%22&search_type=keyword_exact_phrase&start_date[min]&start_date[max]=2025-02-15",
"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&view_all_page_id=103598131567301"
],
"maxItems":100,
"minDelay":5,
"maxDelay":10,
"maxConcurrency":10,
"minConcurrency":1,
"maxRequestRetries":100,
"proxy":{
"useApifyProxy":true,
"apifyProxyGroups":["RESIDENTIAL"]
}
}

Supported URL Formats

The scraper accepts two types of URLs:

1. Direct Facebook Page URLs

https://www.facebook.com/SHEINOFFICIAL
https://www.facebook.com/Nike
https://www.facebook.com/usemotionapp

How it works:

  • The scraper automatically fetches the page with authentication
  • Extracts the page ID (e.g., 100064280965738 for SHEIN)
  • Converts to Ads Library URL format
  • Fetches all ads for that page

2. Facebook Ads Library URLs (with filters)

https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=GB&media_type=video&q=keyword
https://www.facebook.com/ads/library/?active_status=all&search_type=page&view_all_page_id=123456

Benefits:

  • Apply advanced filters (country, media type, keywords, date ranges)
  • Search by page ID directly
  • Filter by active/inactive status

Input Parameters

ParameterTypeDescriptionDefault
startUrlsArrayFacebook page URLs (e.g., https://www.facebook.com/SHEINOFFICIAL) or Ads Library URLs with filtersRequired
maxItemsIntegerMax ads to scrape per run100
minDelayIntegerMinimum delay (seconds) between API calls5
maxDelayIntegerMaximum delay (seconds) between API calls10
maxConcurrencyIntegerMax parallel page processing threads10
minConcurrencyIntegerMinimum parallel threads1
maxRequestRetriesIntegerRetry attempts for failed requests100
proxyObjectResidential proxy configurationApify Proxy

Output Structure

{
"FB AD Link":"https://www.facebook.com/ads/library/?id=554396010944539",
"FB Link":"https://www.facebook.com/usemotionapp/",
"Company Name":"Motion",
"Website":"usemotion.com",
"ad_archive_id":"554396010944539",
"ad_id":null,
"archive_types":[],
"categories":[
"UNKNOWN"
],
"collation_count":3,
"collation_id":"693850463625155",
"contains_digital_created_media":false,
"contains_sensitive_content":false,
"currency":"",
"end_date":1750921200,
"entity_type":"PERSON_PROFILE",
"fev_info":null,
"finserv_ad_data":null,
"gated_type":"ELIGIBLE",
"has_user_reported":false,
"hidden_safety_data":false,
"hide_data_status":"NONE",
"impressions_with_index":{
"impressions_text":null,
"impressions_index":-1
},
"is_aaa_eligible":true,
"is_active":true,
"is_profile_page":false,
"menu_items":[],
"page_id":"103598131567301",
"page_is_deleted":false,
"page_name":"Motion",
"political_countries":[],
"publisher_platform":[
"FACEBOOK",
"INSTAGRAM"
],
"reach_estimate":null,
"regional_regulation_data":{
"finserv":{
"is_deemed_finserv":false,
"is_limited_delivery":false
},
"tw_anti_scam":{
"is_limited_delivery":false
}
},
"report_count":null,
"snapshot":{
"body":{
"text":"Be 137% more productive."
},
"branded_content":null,
"brazil_tax_id":null,
"byline":null,
"caption":"usemotion.com",
"cards":[],
"cta_text":"Saznajte viลกe",
"cta_type":"LEARN_MORE",
"country_iso_code":null,
"current_page_name":"Motion",
"disclaimer_label":null,
"display_format":"IMAGE",
"event":null,
"images":[
{
"original_image_url":"https://scontent.fhan3-3.fna.fbcdn.net/v/t39.35426-6/502492793_1054293803317783_201280583862847808_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=79MpJoaVUG4Q7kNvwGzgwMb&_nc_oc=AdmiCbM4h7hHcjzS78hBXhh-kqbqOiyZbu5YcnjTmYi8fJyxiRCghxaZKOkyGakvKAg&_nc_zt=14&_nc_ht=scontent.fhan3-3.fna&_nc_gid=NsTWAzJgoGosAcGMska1iA&oh=00_AfOBxg0zBZE5I8h5tQ7QlqjO3BHFUqgBjNGOIwlhhhXnmQ&oe=6863D5BA",
"resized_image_url":"https://scontent.fhan3-3.fna.fbcdn.net/v/t39.35426-6/502652905_549954111382058_5494539714617214349_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=101&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=11YsJKhHL9gQ7kNvwFQyF27&_nc_oc=AdmwIyTGYmabIQ3WHIslhtAT6bmK-pIkXvG6fem73EUvNaeqpRlhhRrs6w-ml-ufqI8&_nc_zt=14&_nc_ht=scontent.fhan3-3.fna&_nc_gid=NsTWAzJgoGosAcGMska1iA&oh=00_AfN41oyHr6YPW3Oq9j2P4jT45pOn01uFJHcFHeXyg51a7A&oe=6863D380",
"watermarked_resized_image_url":"",
"image_crops":[]
}
],
"is_reshared":false,
"link_description":"Motion Teams | Automatically prioritize tasks, schedule meetings, and resolve calendar conflicts. Used by over 10k CEOs and professionals to improve focus, get more done, and streamline workday.",
"link_url":"https://www.usemotion.com/teams",
"page_categories":[
"Software"
],
"page_entity_type":"PERSON_PROFILE",
"page_id":"103598131567301",
"page_is_deleted":false,
"page_is_profile_page":false,
"page_like_count":41998,
"page_name":"Motion",
"page_profile_picture_url":"https://scontent.fhan4-5.fna.fbcdn.net/v/t39.35426-6/508816737_586512144117458_1442892662474165395_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=pC-2Jifxs-kQ7kNvwHYxKPV&_nc_oc=AdlONKKEnKB8H5DdW-UAjQiF6v_oiF5LX2Nu7VArJ_JATWPzqPzqwORlya5VUYCpafM&_nc_zt=14&_nc_ht=scontent.fhan4-5.fna&_nc_gid=NsTWAzJgoGosAcGMska1iA&oh=00_AfPizUrkt_Gl03E8xTDQCz3GBlbeCfXWC_Mkr_YRLNHjBQ&oe=6863E1F2",
"page_profile_uri":"https://www.facebook.com/usemotionapp/",
"root_reshared_post":null,
"title":"AI Project Management",
"videos":[],
"additional_info":null,
"ec_certificates":[],
"extra_images":[],
"extra_links":[],
"extra_texts":[],
"extra_videos":[]
},
"spend":null,
"start_date":1750921200,
"state_media_run_label":null,
"targeted_or_reached_countries":[],
"total_active_time":71587,
"data_reach":{
"advertiser":{
"page":{
"about":{
"text":"Motion increases productivity by 137%\n\nWith automation and AI that intelligently plan your day, sched"
},
"is_delegate_page_with_linked_primary_profile":false,
"id":"103598131567301"
},
"ad_library_page_info":null
},
"aaa_info":{
"targets_eu":true,
"location_audience":[
{
"name":"Nizozemska",
"num_obfuscated":0,
"type":"countries",
"excluded":false
},
{
"name":"Njemaฤka",
"num_obfuscated":0,
"type":"countries",
"excluded":false
}
],
"gender_audience":"Svi",
"age_audience":{
"min":18,
"max":65
},
"eu_total_reach":16,
"age_country_gender_reach_breakdown":[
{
"country":"NL",
"age_gender_breakdowns":[
{
"age_range":"35-44",
"male":1,
"female":1,
"unknown":null
},
{
"age_range":"55-64",
"male":1,
"female":null,
"unknown":null
},
{
"age_range":"18-24",
"male":1,
"female":null,
"unknown":null
},
{
"age_range":"25-34",
"male":1,
"female":1,
"unknown":null
}
]
},
{
"country":"DE",
"age_gender_breakdowns":[
{
"age_range":"55-64",
"male":2,
"female":null,
"unknown":null
},
{
"age_range":"18-24",
"male":1,
"female":3,
"unknown":null
},
{
"age_range":"35-44",
"male":null,
"female":4,
"unknown":null
}
]
}
],
"payer_beneficiary_data":[
{
"payer":"Motion",
"beneficiary":"Motion"
}
],
"has_violating_payer_beneficiary":false,
"is_ad_taken_down":false
},
"violation_types":[],
"verified_voice_context":null,
"transparency_by_location":null
}
}

Basic Ad Information

FieldTypeDescription
FB AD LinkStringDirect URL to ad in Facebook's Transparency Library
FB LinkStringPermanent link to advertiser's Facebook profile/page
Company NameStringRegistered name of advertising entity (matches page_name)
WebsiteStringMain website domain from the ad's link (e.g., usemotion.com)

Ad Identification

FieldTypeDescription
ad_archive_idStringFacebook's internal archive identifier (unique per ad)
ad_idNullLegacy field (deprecated by Facebook)
archive_typesArrayEmpty array in sample, used for ad classification
categoriesArrayFacebook's classification (e.g., ["UNKNOWN"])
collation_idStringGroup ID for related ads in same campaign
collation_countIntegerNumber of ads in this campaign group
page_idStringUnique Facebook ID of advertiser's page

Ad Status & Timing

FieldTypeDescription
is_activeBooleantrue = Currently running, false = Inactive
start_dateIntegerUnix timestamp (seconds) of ad start date
end_dateIntegerUnix timestamp (seconds) of planned end date
total_active_timeIntegerDuration in seconds the ad has been active
is_aaa_eligibleBooleanIndicates if ad is eligible for automated ads

Ad Content & Format

FieldTypeDescription
snapshot.body.textStringFull text content of ad
snapshot.titleStringHeadline/title of ad
snapshot.display_formatStringIMAGE for static image ads
snapshot.cta_textStringCall-to-action button text (e.g., "Saznajte viลกe")
snapshot.cta_typeStringType of CTA (e.g., "LEARN_MORE")
snapshot.link_urlStringDestination URL when clicking ad
snapshot.link_descriptionStringDescription text shown in link preview
snapshot.imagesArrayArray containing image objects with URLs
snapshot.images[].original_image_urlStringFull resolution image URL
snapshot.images[].resized_image_urlStringResized version of the image
snapshot.videosArrayEmpty array for non-video ads

Page/Advertiser Insights

FieldTypeDescription
page_nameStringName of Facebook page running ad
page_like_countIntegerTotal page followers/likes
page_profile_picture_urlStringCurrent profile image URL
page_profile_uriStringDirect link to page profile
page_categoriesArrayFacebook's business classification (e.g., ["Software"])
page_entity_typeStringType of page (e.g., PERSON_PROFILE)
page_is_deletedBooleanIndicates if the page has been deleted
page_is_profile_pageBooleanIndicates if this is a personal profile page

Technical Metadata

FieldTypeDescription
entity_typeStringPERSON_PROFILE (individual) or BUSINESS
publisher_platformArrayPlatforms where ad appears (e.g., ["FACEBOOK", "INSTAGRAM"])
contains_digital_created_mediaBooleanfalse if contains only original media
gated_typeStringAge/gender gating status (e.g., ELIGIBLE)
hide_data_statusStringNONE = Full visibility
is_resharedBooleanfalse if this is an original post

Compliance & Regulations

FieldTypeDescription
political_countriesArrayEmpty array in sample, indicates countries where ad is political
regional_regulation_dataObjectContains compliance flags
regional_regulation_data.finservObjectFinancial services compliance data
regional_regulation_data.finserv.is_deemed_finservBooleanIf ad is considered financial service
regional_regulation_data.finserv.is_limited_deliveryBooleanIf ad has delivery restrictions
regional_regulation_data.tw_anti_scamObjectTaiwan anti-scam regulations
state_media_run_labelNullFor government-affiliated ads

User Interaction Data

FieldTypeDescription
report_countNullNumber of user reports (restricted)
has_user_reportedBooleanfalse if current user hasn't reported the ad
finserv_ad_dataNullFinancial service ad data (restricted)
fev_infoNullFact-checking verification data

Monetization & Reach

FieldTypeDescription
spendNullAd budget (restricted)
reach_estimateNullPotential audience size (restricted)
currencyStringEmpty string when spend data is restricted
impressions_with_indexObjectContains impression data
impressions_with_index.impressions_textNullFormatted impressions text
impressions_with_index.impressions_indexInteger-1 when data is restricted

System Flags

FieldTypeDescription
contains_sensitive_contentBooleanfalse if content is not flagged as sensitive
hidden_safety_dataBooleanfalse if no safety restrictions are applied
is_profile_pageBooleanfalse if not a profile page ad
menu_itemsArrayEmpty array in sample

Audience & Targeting

FieldTypeDescription
targeted_or_reached_countriesArrayEmpty array in sample
data_reachObjectDetailed audience reach data
data_reach.advertiserObjectInformation about the advertiser
data_reach.advertiser.page.about.textStringPage description text
data_reach.aaa_infoObjectDetailed audience analytics
data_reach.aaa_info.targets_euBooleantrue if targeting EU countries
data_reach.aaa_info.location_audienceArrayTargeted locations
data_reach.aaa_info.gender_audienceStringTargeted gender (e.g., "Svi" for all)
data_reach.aaa_info.age_audienceObject{min, max} age range
data_reach.aaa_info.eu_total_reachIntegerEstimated reach in EU
data_reach.aaa_info.age_country_gender_reach_breakdownArrayDetailed breakdown by country, age, and gender

Key Notes

  1. Timestamps: Convert Unix timestamps (e.g., 1750921200 โ†’ 2025-02-24T23:00:00Z)
  2. Null Fields: Indicate restricted data per Facebook's policies
  3. Media URLs: May expire - download promptly
  4. Audience Data: Includes detailed demographic breakdowns when available
  5. Compliance: Contains regulatory information for different regions

Key fields include:

  • Ad creative (text/images/video URLs)
  • Sponsor page details and metrics
  • Detailed audience targeting information
  • Active dates and duration
  • Compliance and regulation data
  • Call-to-action configuration

Why This Scraper?

  • Compliance: Follows Facebook's rate limits and robots.txt
  • Stealth: Residential proxies + random delays mimic human behavior
  • Depth: Captures 30+ data points per ad including edits history
  • Future-Proof: Handles Facebook's frequent UI/API changes

Use Cases

  • Track competitor ad strategies in real-time
  • Analyze seasonal campaign patterns
  • Archive political ads for transparency
  • Monitor trademark violations

Explore More Scrapers

If you found this Apify Smartbuyglasses Scraper useful, be sure to check out our other powerful scrapers and actors at memo23's Apify profile. We offer a wide range of tools to enhance your web scraping and automation needs across various platforms and use cases.

Support

Additional Services

You might also like

Meta (Facebook) Ad Library Scraper - Efficient & Fast

automly/facebook-ad-library-scraper

Scrape the Meta Ad Library for Facebook and Instagram ads. Extract ad copy, images, videos, spend, impressions, and advertiser transparency data. No account or API key required.

Facebook Ads Library Scraper โ€” Meta Ads + Instagram Data

sourabhbgp/facebook-ads-scraper

Scrape Facebook Ads Library (Meta Ad Library) with 57 fields per ad โ€” no login needed. Get ad copy, images, videos, CTAs, run dates, Instagram followers, page verification, AI-content flag, EU transparency. Search by keyword, advertiser, or paste any Ad Library URL.

86

Facebook Ad Library Scraper

corner_cutter/facebook-ad-library-scraper

Comprehensive Meta ad library tool that fetches all ads for a given Facebook Ad Library URL or page URL. Extract ad creatives, copy, targeting info, and more.

601

3.9

Facebook Ads Library Scraper

scraper-engine/facebook-ads-library-scraper

The Facebook Ads Library Scraper extracts ad data from Facebookโ€™s Ad Library, including advertiser details, ad text, impressions, and targeting info. Ideal for ad research, marketing insights, and competitor analysis, it delivers clean, structured data for analysis or integration via API.

๐Ÿ‘ User avatar

Scraper Engine

399

4.2

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

scrapeio/meta-facebook-ad-scrapper-using-ad-library-url-premium

Scrape every Meta ad (Facebook, Instagram, Messenger, Audience Network) from the Ad Library by keyword, Facebook Page ID, or Ad Library URL. Sort by total impressions or most recent. Extract creatives, copy, CTAs, impressions, and spend ranges. 100+ languages. No Meta Graph API or developer app.

887

4.8

Facebook Ads Library Scraper

automation-lab/facebook-ads-library

Scrape Facebook / Meta Ad Library for competitor ad monitoring. Search by keyword, Page URL, pasted Ads Library URL, country, status, and media type. Extract creatives, copy, links, media, platforms, spend. No login or Meta API token required.

๐Ÿ‘ User avatar

Stas Persiianenko

509

5.0

Facebook Ads Library Scraper API

api_creators/facebook-ads-library-scraper-api

$1 per 1000 ads! Scrape Facebook Ad Library: Extract ad data, copy & creatives from FB & Instagram. Powerful Facebook Ads Scraper for competitor research & ad intelligence. Search by keyword or Page ID. Export JSON, CSV, or Excel. Fast, reliable, and cheap Facebook Ad Library API.

144

5.0

META Ads Library Scraper

leadsbrary/meta-ads-library-scraper

Scrape the Meta (Facebook & Instagram) Ads Library. Paste any Ad Library search URL or Facebook page URL. Get ad text, CTA, publisher platforms, language signals, dates and full advertiser page data. No login required.

๐Ÿ‘ User avatar

Alexandre Manguis

871

2.9

Facebook & Meta Ads Library Scraper โ€” Ad Intelligence Tool

aiscraperdev/facebook-meta-ads-library-scraper

Scrape Facebook & Instagram ads by keyword, brand, or country. Extract ad copy, creatives, CTA, video URLs & advertiser data. No login required.

๐Ÿ‘ User avatar

Randeep Dhillon

43

5.0