LAGIC
Lead Audience Growth Intelligence Computing
F

Facebook Ads Library Scraper API — Facebook | Lagic

Built For

Extract competitor ad creative, copy, and targeting data from the Facebook Ads Library.

Curated by Lagic·Verified working

Configure Agent

Facebook Ads Library URLs to scrape (e.g., )

Maximum number of ads to scrape per start URL. Set to 0 for unlimited.

Maximum total number of ads to scrape across all URLs. Set to 0 for unlimited.

By selecting a proxy country, the Agent will use residential proxy group to get country-specific data. Note that using country-specific proxies might slow down your runs.

Results to deliver

100 credits

This agent actively searches live listings — results may vary. You are only charged for what is delivered, up to this number.

Lagic Proxy

Country auto-rotated. Need a specific region? Contact support.

Pricing

1 credit per result
✓ 30 free credits on signup✓ Refund if 0 results✓ No card required

Sample Data Preview

Ad Archive IDAdvertiser Page Name and IDAdvertiser Page Like CountAd Status (Active/Inactive)Ad Run Dates (Start and End)Estimated Ad Spend Range (e.g., '$100-$199')
10099Sample Text...655Value...2026-04-05Value...
10091Sample Text...282Value...2026-04-05Value...
..................
Exports as:CSVXLSXJSON

Overview

Scrape the Facebook Ads Library for competitor ad creative, copy, spend estimates, and targeting details. Use this data to analyze competitor strategies and improve your own campaigns.

The Facebook Ads Library is a public repository of all active and inactive ads running across Meta's platforms, but it's designed for manual browsing, not for data analysis. This tool automates the process of extracting that public data, turning the library into a structured dataset for competitive intelligence. By providing a search URL from the Ads Library, you can collect detailed information on your competitors' advertising campaigns. The extractor gathers everything from the ad creative itself—including video and image URLs, ad copy, and headlines—to metadata like estimated spend, impression counts, run dates, and the platforms where the ad was shown (e.g., Facebook, Instagram, Messenger). ### Who benefits from this data? * **Marketing Agencies:** Conduct comprehensive competitive analysis for clients, identify market trends, and build data-backed pitches for new business. * **E-commerce Brands:** Monitor competitor promotions, product launches, and creative strategies to find inspiration and identify gaps in the market. * **Performance Marketers:** Reverse-engineer successful campaigns by analyzing the copy, creative, and calls-to-action that are performing well in your niche. * **Political Campaigns & Advocacy Groups:** Track messaging, spend, and targeting from opposing campaigns and organizations in near real-time. This tool also allows you to scrape data as if you were in a specific country by using a residential proxy. This is crucial for understanding how international brands tailor their advertising for different local markets.

Key Capabilities

  • Ad Archive ID
  • Advertiser Page Name and ID
  • Advertiser Page Like Count
  • Ad Status (Active/Inactive)
  • Ad Run Dates (Start and End)
  • Estimated Ad Spend Range (e.g., '$100-$199')
  • Estimated Impressions Range
  • Targeted or Reached Countries
  • Platforms where ad was shown (Facebook, Instagram, etc.)
  • Ad Creative, including direct URLs to images and videos
  • Ad Copy, Headline, and Link Description
  • Call-to-Action Text (e.g., 'Shop Now', 'Learn More')
  • Ad Destination URL
  • Analyze Competitor Ad Creative: An e-commerce brand downloads all ads from a direct competitor to analyze their visual style, ad copy, and promotional offers for an upcoming product launch.
  • Build a Client Competitor Report: A marketing agency scrapes ads from three of a new client's top competitors to create a benchmark report on their messaging and market positioning.
  • Monitor Political Ad Spending: A journalism or advocacy group tracks all political ads in a specific country to analyze messaging trends and spending patterns during an election cycle.
  • Find B2B Ad Copy Inspiration: A SaaS company searches for ads using keywords related to their industry to see how other B2B advertisers frame their value propositions and calls-to-action.
  • Identify Ad Format Trends: A content strategist scrapes ads in their niche to identify whether video, carousel, or static image ads are most common, informing their own creative strategy.
  • Research International Ad Campaigns: A global brand uses the country-specific filter to see how competitors adapt their advertising for different regions, such as the US versus Japan.

Field Dictionary

How To Run This Extractor

1

Go to the Facebook Ads Library and perform a search for the advertiser or keywords you want to track.

2

Copy the complete URL from your browser's address bar once the results are displayed.

3

Paste one or more Ads Library URLs into the 'Start URLs' field.

4

Set the maximum number of ads you want to retrieve per URL and in total.

5

Optionally, select a country from the dropdown to view ads from that specific region's perspective.

6

Run the tool and download the collected ad data in CSV, JSON, or Excel format.

Frequently Asked Questions

Do I need to be a developer to use this?
No. You just need to find the ads you want in the Facebook Ads Library, copy the URL from your browser, and paste it into the tool.
What format does the data come in?
Is it legal to scrape the Facebook Ads Library?
How many ads can I scrape?
Can I use this for client work?
How is this different from a spy tool like AdSpy?
How reliable is the data?
Can I schedule this to run automatically?
Does this tool provide the exact ad spend?
Can I download the ad videos and images?
What is the 'Scrape as in a country' filter for?