VOOZH about

URL: https://apify.com/api_creators/facebook-ads-library-scraper-api

โ‡ฑ Facebook Ads Library Scraper API ยท Apify


Pricing

from $0.80 / 1,000 results

Go to Apify Store

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.

Pricing

from $0.80 / 1,000 results

Rating

5.0

(5)

Developer

๐Ÿ‘ API Creators

API Creators

Maintained by Community

Actor stats

7

Bookmarked

149

Total users

34

Monthly active users

15 days ago

Last modified

Share

๐Ÿš€ Facebook Ads Library Scraper

Find, collect, and analyze ads from Facebook Ads Library โ€” fast, repeatably, and at scale. ๐Ÿ“ˆโœจ

Perfect for:

  • ๐Ÿ•ต๏ธ Competitor research (what they run, when, and how)
  • ๐Ÿ”Ž Keyword / brand monitoring across markets
  • ๐Ÿ“Š Building datasets for BI dashboards, reporting, and analytics
  • โฑ๏ธ Automated tracking on a schedule (daily/weekly monitoring)

Just paste one or more Facebook Ads Library search URLs, hit Start โ–ถ๏ธ, and get a clean dataset of ads you can export to JSON/CSV/Excel. โœ…

What Youโ€™ll Get โœ…

  • ๐Ÿ“ฆ One dataset item per ad (ready for analysis)
  • ๐Ÿ”„ Automatic pagination + infinite scrolling
  • ๐Ÿงน Deduplicated results (no repeats)
  • ๐ŸŽ›๏ธ Limits you control (per URL + total)

How To Use ๐Ÿงญ

Run in Apify Console ๐Ÿ–ฅ๏ธ

  1. Open the Actor in Apify Console
  2. Paste your Ads Library URL(s) into the input
  3. Click Start โ–ถ๏ธ
  4. Download results from the Dataset tab (JSON/CSV/Excel) ๐Ÿ“ฅ

Run via Apify API ๐Ÿ”Œ

You can run the Actor from any backend and then fetch dataset items.

  1. Start a run:
curl-X POST "https://api.apify.com/v2/acts/<YOUR_USERNAME>~<YOUR_ACTOR_NAME>/runs?token=<APIFY_TOKEN>"\
-H"Content-Type: application/json"\
-d'{
"start_urls": [
{"url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered"}
],
"max_results_per_url": 100,
"total_max_results": 500,
"proxy_country": "us"
}'
  1. When the run finishes, download dataset items from the runโ€™s dataset URL (shown in the run details in Apify Console).

Input โš™๏ธ

start_urls (required) ๐ŸŒ

List of Facebook Ads Library search URLs.

  • Provide URLs exactly as you would open them in the browser (including filters like country, status, media type, and query).
  • Each URL is processed independently.

Example:

{
"start_urls":[
{
"url":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered"
}
]
}

max_results_per_url (optional) ๐ŸŽฏ

Maximum number of ads to collect for each URL.

  • Default: 100
  • Set to 0 for unlimited (not recommended for very broad searches)

total_max_results (optional) ๐Ÿงฎ

Maximum total number of ads collected across all URLs.

  • Default: 500
  • Set to 0 for unlimited

proxy_country (optional) ๐ŸŒ

See the ads Facebook hides from you.

Facebook often only shows you ads relevant to your location. If you are in the US, you won't see ads running in Germany, even if you search for them.

  • What this does: It routes your request through a residential proxy in the country you choose. This tricks Facebook into thinking you are a local user, so you can see all the ads active in that region.
  • Why use it: To see exactly what competitors are running in other countries without being blocked or filtered.
  • Default: "" (Uses a random high-quality proxy)
  • Select a country code: Use the 2-letter ISO code (e.g., us, gb, de, br).
  • Note: This is a free feature, but it might be slightly slower because it routes traffic through real device connections.

Output ๐Ÿ“ค

Results are saved to the default dataset.

Each item represents one ad and includes fields like:

  • ad_archive_id
  • page_id, page_name
  • is_active, start_date, end_date
  • publisher_platform
  • impressions_text, spend, currency (when available)
  • snapshot (creative payload: text, images, videos, cards, links)

Example item:

{
"ad_archive_id":"886864580481392",
"page_name":"Example Page",
"page_id":"123456789",
"is_active":true,
"start_date":1766995200,
"end_date":1767772800,
"publisher_platform":["FACEBOOK","INSTAGRAM"],
"impressions_text":"<100",
"spend":null,
"currency":"",
"snapshot":{
"caption":"example.com",
"cta_text":"Learn More",
"title":"Example Ad",
"cards":[],
"images":[],
"videos":[]
}
}

Pro Tips ๐Ÿ’ก

  • ๐ŸŽฏ Narrow your search (country, status, query) to reduce runtime and cost.
  • ๐Ÿ—“๏ธ For monitoring, run the Actor on a schedule and append results to a dataset.
  • ๐Ÿงช Start small (low limits) to validate your search URL, then scale up.

Notes & Responsible Use ๐Ÿ›ก๏ธ

  • ๐Ÿ“Œ Data availability depends on what Facebook Ads Library returns for the given search URL.
  • ๐Ÿข Some searches may be slower or yield fewer results depending on Facebook-side constraints.
  • โš–๏ธ Make sure your usage complies with Facebookโ€™s terms and applicable laws.

License

Apache-2.0

You might also like

Facebook Ad Library Scraper

practicaltools/facebook-ad-library-scraper

Scrapes ads from the Facebook Ad Library. Accepts search URLs or Facebook page URLs and returns structured ad data.

๐Ÿ‘ User avatar

Practical Tools

44

Facebook Ad Library Scraper

apipi/facebook-ad-library-scraper

Ultra-fast Facebook Ads Library scraper with advanced filtering. Extract ads from Meta Ads Library in seconds! Perfect for competitor analysis, market research, and ad intelligence.

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

Facebook Ad Library Scraper

agenscrape/facebook-ad-library-scraper

Extract ads from Facebook Ad Library instantly. Get complete ad details, images, videos, page info, impressions, and targeting data. Just paste the Ad Library URL and run. Fast, reliable extraction for competitor research and market analysis.

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 โ€” 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

curious_coder/facebook-ads-library-scraper

Scrape facebook ads from ad library search results and ads run by facebook pages - Fast and lightweight. $0.75 per 1000 results

30K

4.8

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

Facebook Ads Library Scraper

easyapi/facebook-ads-library-scraper

Extract detailed information about active Facebook ads including content, images, targeting data and more. Perfect for market research, competitor analysis and ad intelligence. Supports all countries and ad categories with anti-detection measures.

1.7K

2.2

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.