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

Nike ads with shop product data, 5 ads

Ads enriched with linked e-commerce product info.

Updated December 4, 2026

What this example returns

This example returns up to 5 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/nike

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

5

Maximum ads to save for each URL.

Default: 10 → this example uses 5

Total count only onlyTotal

No

Save one row per URL with the total ad count and the first page of ads nested inside it.

Page transparency includeAboutPage

No

Add the page about text, confirmed owner, admin locations, and page history when the library publishes them.

Ad detail view isDetailsPerAd

No

Open each ad's detail record and add advertiser, Instagram, and transparency fields under ad_details.

Product pages enrichWithEcommerceData

Yes

Follow each ad's landing URL and attach public product name, price, and image when the page publishes them. Charged per product URL.

Default: No → this example uses Yes

.json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/nike"
    }
  ],
  "resultsLimit": 5,
  "enrichWithEcommerceData": true,
  "activeStatus": "",
  "sorting": "",
  "onlyTotal": false,
  "includeAboutPage": false,
  "isDetailsPerAd": false
}

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.

Known limit

🏢 Page transparency works for a page search, not for a keyword that mixes many advertisers.

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.