Skip to content
//Facebook Ad Library Scraper example\\

Active US ads for running shoes, 10 ads

Ads from an Ad Library keyword search.

Updated December 4, 2026

What this example returns

This example returns up to 10 ads.

The dataset’s “Ads” view shows 11 columns: Page, Title, Ad text, Active, Platforms, Started, Ended, Landing page, Archive id, Total ads, and Input URL. See every output field.

What each setting does

The input this example runs Facebook Ad Library Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Page or ad library URLs startUrls

https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=running%20shoes&search_type=keyword_unordered&media_type=all

Facebook page URL, page name, or a Meta Ad Library search URL. Filters already present in an ad library URL are kept.

Ads per URL resultsLimit

10

Maximum ads to save for each URL.

.json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=running%20shoes&search_type=keyword_unordered&media_type=all"
    }
  ],
  "resultsLimit": 10
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Adfrom $0.001479One ad saved from the Meta Ad Library.
  • Product pagefrom $0.001088One landing page that returned a public product name and a price or image.

Full pricing

When to use this example

From the Facebook Ad Library Scraper readme:

Known limit

🔢 Each URL returns at most the number in Ads per URL and at most what the library itself lists for that search.

Other ways to run Facebook Ad Library Scraper

All examples of Facebook Ad Library Scraper

About Facebook Ad Library Scraper

Extract public ads from the Meta Ad Library by Facebook page, keyword, or ad-library URL. Returns creative, dates, platforms, delivery status, and optional page transparency.

Price:
From $1.48 / 1,000 results
Developer:
Echofield

Facebook Ad Library Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.