Data catalog › Social media & ads › Facebook Ad Library Public Ads Database
Social media & ads · public web tool
Facebook Ad Library Public Ads Database
Facebook 广告库表|公开广告
A spreadsheet of ads found in Meta's public Facebook Ad Library for a keyword or brand Page, one row per ad, collected after you order.
- Source
- Pages and data you supply
- Coverage
- Collect Facebook Ad Library creatives, media links and available advertiser details by keyword or Page across selected countries. Pay per delivered ad row plus a start fee.
- Collection modes
- Keyword search, Advertiser Page search
- Row contract
- 1 row = 1 entity. Each row is one ad from Meta’s public Facebook Ad Library, with its message and advertiser to compare.
- Columns
- 65 documented output fields; the free sample has 50 columns collected 2026-11-26
- Order size
- 1 to 100,000 rows per order on the shop (default 200)
Overview
You get a file with one row per ad, read from Meta's public Facebook Ad Library. You can compare ads found for a keyword or advertiser Page without a Facebook account.
You can read ad headlines, text and button wording, and see images, videos and destination links. Dates, platforms and running status help you compare campaigns. Advertiser details include Page names, descriptions and public profile links. Public contact details can be empty. Disclosure details can include reach or spending information that Meta makes public.
What the file contains
- Ad messages and media. You can compare headlines, ad text and button wording, with images, videos and links to the advertised pages.
- Dates and places ads ran. You can see start dates, platforms and whether each ad is running or stopped.
- Advertiser Pages. You can compare Page names, descriptions, categories and follower counts, with links to public profiles.
- Public contact details. You get public Page phone numbers, emails and addresses when the site shows it; they can be empty when access is restricted.
- Public ad disclosures. You can see the reach or spending details Meta publishes for an ad or Page, which can be empty and are not private account reports.
What does Facebook Ad Library Scraper do?
Facebook Ad Library Scraper collects ads from Meta's public Ad Library. Use it to compare advertiser creatives, organize campaign research or monitor newly seen ads. It returns one ad per row, not an advertiser directory or private account data.
- Keyword search: fill
searchQueryorsearchQuerieswith brands, products or topics. - Advertiser search: fill
pageIdsorpageUrlsto collect ads from particular Pages. Keywords and Pages can share a run. - Market filters: choose a two-letter
country, such asUS,GBorDE, orALLfor worldwide searches. - Details:
enrichDetailsis on by default. Available disclosure and public advertiser contact information is added to existing ad rows, not billed as separate contact rows. - Creative variants:
expandCollationsis off by default. Each expanded variant is another ad row and is billed at the same price.
What data can you extract from Facebook Ad Library?
All rows use rowType: "ad". Optional fields depend on what Meta discloses and whether enrichment succeeds.
| Field | Description | Example |
|---|---|---|
rowType | Entity represented by this row. | ad |
id | Stable row identifier, equal to the ad archive ID. | 123456789012345 |
adArchiveId | Meta's ad archive identifier. | 123456789012345 |
pageId | Advertiser Page identifier. | 1234567890 |
pageName | Advertiser name. | Example Shop |
pageProfileUrl | Advertiser's Facebook Page link. | https://www.facebook.com/example-shop/ |
title | Creative headline. | Explore our collection |
bodyText | Ad copy. | Browse this season's products. |
ctaText | Call-to-action label. | Shop Now |
linkUrl | Ad destination URL. | https://example.com/shop |
displayFormat | Creative format reported by Meta. | IMAGE |
imageUrls | Available image links. | [] |
videoUrls | Available video links. | [] |
cards | Carousel card content and links. | [] |
publisherPlatforms | Platforms named in the ad disclosure. | ["FACEBOOK", "INSTAGRAM"] |
startDate | Ad start time, when available. | 2026-10-01T00:00:00Z |
endDate | End time; omitted for an active ad. | 2026-10-12T00:00:00Z |
isActive | Active status, or null if not disclosed. | true |
spend | Disclosed spending range, not an estimate made by this Actor. | {"lowerBound":"100","upperBound":"199","currency":"USD"} |
impressions | Disclosed impression range. | {"lowerBound":"1000","upperBound":"4999"} |
euTotalReach | EU reach where disclosed. | 1200 |
euTransparency | Available EU audience disclosures. | {"euTotalReach":1200,"targetsEu":true} |
phones | Public advertiser phone entries, if available. | [] |
emails | Public advertiser email entries. | [{"value":"name@example.com","type":"business"}] |
address | Available advertiser address components. | {"full":null} |
org | Advertiser organization identity. | {"name":"Example Shop","id":"1234567890"} |
web | Advertiser website and social links. | {"website":"https://example.com","socials":[]} |
leadAbsences | Reasons contact fields are missing or unavailable. | {} |
assetKeys | Keys for successfully downloaded media files. | ["asset-123456789012345-image.jpg"] |
scrapedAt | Collection timestamp. | 2026-10-24T08:00:00Z |
searchQuery, searchType and searchedPageId identify the search that found a row. leadSource and leadReveal describe the available contact evidence. The current contact extraction leaves geo and person as null; it does not infer coordinates or named people.
How to scrape Facebook Ad Library
- Open Facebook Ad Library Scraper in Apify Console.
- Enter a keyword or advertiser Page, then choose the country.
- Set
maxResultsto a small number, such as3. - Click Start and inspect the run status and dataset.
- Download the rows or read them through the API.
With every target field empty, the Actor uses the form's sample keyword shopify and returns at most 3 rows. This example run uses normal pricing. Filling one target field selects the matching search automatically; there is no mode setting to choose.
Keyword search
Use searchQuery for one input or searchQueries for several. Duplicate keywords are merged. A brand keyword can also match ads from other advertisers that mention the brand.
Advertiser Page search
Use numeric IDs in pageIds, or Facebook Page links and exact Page names in pageUrls. Clear the prefilled keyword for a Page-only run. Unresolved Page names are skipped with a page_unresolved warning rather than replaced with another advertiser.
What you can do with it
- Sort by the start date to compare when advertisers began running ads.
- Filter ad text for discount terms to compare promotional offers.
- Count ads by advertiser Page to compare how many appear in your file.
Why use this Facebook Ad Library scraper?
- Pay for delivered rows. Row charges apply to ads written to the dataset, not unsuccessful searches; a start fee also applies.
- Keep delivered results. A run that reaches its timeout delivers the rows collected so far and gives you a cursor to continue.
- Understand missing data. Unavailable fields stay empty or absent instead of being invented.
- Combine inputs. Research several keywords and Pages in one run.
- Reduce setup. You do not need to set up proxies or supply a Facebook login.
中文简介
每条是 Meta 公开 Facebook 广告库中的一条广告,可比较广告内容和广告主。填写关键词或 Facebook 主页链接,再选择国家和“广告状态”,查找所需广告。
你会得到一份文件,每条是一条广告,来自 Meta 公开的 Facebook 广告库。无需 Facebook 账户,就能比较按关键词或广告主主页找到的广告。
你可以阅读广告标题、正文和按钮文字,查看图片、视频和目标链接。日期、平台和投放状态方便比较广告活动。广告主信息包括主页名称、介绍和公开主页链接;公开联系方式可能留空。披露信息可能包含 Meta 公开的触达人数或支出情况。
- 广告内容与媒体:你可以比较标题、广告正文和按钮文字,并查看图片、视频及广告页面的链接。
- 投放日期与平台:你可以查看开始日期、投放平台,以及每条广告正在投放还是已停止。
- 广告主主页:你可以比较主页名称、介绍、类别和关注人数,并查看公开主页链接。
- 公开联系方式:网站展示时会包含公开主页的电话、邮箱和地址;访问受限时可能留空。
- 公开广告披露:可查看 Meta 公布的广告或主页触达人数及支出信息;这些信息可能留空,不是私人账户报表。
用法:按开始日期排序,比较广告主何时开始投放广告。 在广告正文中筛选折扣词,比较促销优惠。 按广告主主页统计广告数,比较文件中各主页的广告数量。
Where to get it
Every link below is a direct link to the live channel page for this source.
| Channel | Link |
|---|---|
| OpenData Shop | Order as CSV or Excel (English product page) |
| OpenData Shop | 中文商品页 |
| Free sample | Online sample preview |
| Free sample | Download the sample CSV (no login) |
| Apify Store | Apify Actor facebook-ad-library-scraper |
| n8n | n8n-nodes-opendata-actors (OpenData Catalog node, source facebook-com) |
| Wiki | Encyclopedia article for this Actor / Worker |
| Wiki | Directory of all public Apify Actors and Workers |
| Hugging Face | Sample CSV on Hugging Face |
| Hugging Face | Product documentation on Hugging Face |
| GitHub | Product documentation on GitHub |
Encyclopedia article with every channel side by side: Facebook Ad Library Public Ads Database (wiki).
Input parameters
All 19 parameters of the Apify Actor lentic_clockss/facebook-ad-library-scraper, read from its input schema. The shop form, the MCP tool and the APIs accept the same fields.
| Parameter | Title | Type | Default and allowed values | What it does |
|---|---|---|---|---|
searchQuery | Search Query | string / textfield | form prefill "shopify" | Keyword to search. Leave empty when you only want Page searches. With no keyword and no Page the run searches 'shopify'. |
| Batch / Page search | ||||
searchQueries | Search Queries (batch) | array / stringList | — | More keywords in the same run; each ad carries the keyword that found it in searchQuery. maxResults applies to each keyword or Page. |
pageIds | Page IDs | array / stringList | — | Numeric Meta Page IDs (e.g. 1049581460176100), each searched as an advertiser Page. Keywords above still run too; clear searchQuery for a Page-only run. |
pageUrls | Page URLs | array / stringList | — | Facebook Page links, Ad Library links with view_all_page_id, or exact Page names. Unresolved names are skipped with a page_unresolved warning; groups, posts and links to other sites are rejected. |
country | Country | string / textfield | default "US" | ISO country code of the market the ads reached (e.g. US, GB, DE). 'ALL' searches worldwide and is capped at 50 ads per input. |
adType | Ad Type | string / select | default "all"all All ads, political_and_issue_ads Political and issue ads | Type of ads: 'all' or 'political_and_issue_ads'. |
activeStatus | Active Status | string / select | default "active"active Active ads only, inactive Inactive ads only, all Active and inactive | Filter by ad status. |
| Filters | ||||
mediaType | Media Type | string / select | default "all"all Any media, image Image, video Video | Filter creatives by media. Carousel ads are not a separate mediaType — use displayFormat after scrape. |
sortBy | Sort By | string / select | default "relevancy"relevancy Most relevant, newest Newest, impressions Most impressions | Choose relevance, newest or impressions ordering. Newest groups ads by month rather than guaranteeing exact date order. |
startDateFrom | Start date from | string / textfield | — | Keep ads that started on or after this date (YYYY-MM-DD or ISO date-time, UTC). With a date filter set, ads without a start date are left out. |
startDateTo | Start date to | string / textfield | — | Keep ads that started on or before this date; a bare YYYY-MM-DD includes the whole day (UTC). |
maxResults | Max rows per keyword or Page | integer | default 70form prefill 31 to 5000 | Maximum billed ad rows collected for each keyword or advertiser Page. Default 70. Larger numbers are collected in parts of 70. Ads and expanded collation variants all count together. The run stops at your maximum total charge. Free Apify plan: 200 rows per run and 10 runs. |
| Enrichment | ||||
enrichDetails | Enrich ad and advertiser details | boolean | default trueform prefill true | Add available ad disclosures and public advertiser contact details to each ad row. Missing contact fields stay empty; invalid or reserved phone numbers are discarded. |
maxDetails | Max detail enrichments | integer | default 250 to 500 | Limit how many ads receive detail and advertiser-contact enrichment; 0 means every collected ad. Ads beyond the limit are returned without those extra details. |
expandCollations | Expand collation variants | boolean | default falseform prefill false | Expand grouped creatives into separate ad rows when variants are available. Each variant counts toward maxResults and is billed at the same row price. |
downloadAssets | Download creative assets | boolean | default false | Store each ad's first image and first video in this run's key-value store as asset- -image. / asset- -video. (files over 9 MB are skipped). Each row lists its keys in assetKeys. |
| Monitoring | ||||
incremental | Incremental mode | boolean | default false | Return only ads not returned by an earlier incremental run of the same search (same keywords, Pages, country, adType and activeStatus). The history is kept in your named key-value store facebook-ad-library-checkpoints; ads dropped at your charge limit stay new for the next run. |
| Advanced | ||||
workerBaseUrl | Developer test setting | string / textfield | — | Leave empty. Used only by the developer for testing. |
cursor | Continue from cursor | string / textfield | — | Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty. |
Example input
Example input
{
"searchQuery": "shopify",
"country": "US",
"maxResults": 3
}
Example input
{
"pageUrls": [
"https://www.facebook.com/nike/"
],
"country": "US",
"maxResults": 3
}
Output fields
65 fields from the dataset schema. Optional fields stay empty when the source does not publish them; nothing is estimated.
| Field | Type | Title | Description | In sample |
|---|---|---|---|---|
rowType | string | Row type | Values: ad | yes |
id | string | Stable row ID | yes | |
adArchiveId | string | Ad archive ID | yes | |
pageId | string | Page ID | yes | |
pageName | string | Page name | yes | |
pageProfileUrl | string | Page profile URL | yes | |
pageProfilePictureUrl | string | Page profile picture URL | ||
bodyText | string | Ad body text | yes | |
title | string | Ad title | yes | |
linkUrl | string | Destination URL | yes | |
ctaText | string | CTA text | yes | |
displayFormat | string | Display format | yes | |
createdAt | string | Created at | yes | |
startDate | string | Start date | yes | |
endDate | string | End date | When the ad stopped running; absent while it still runs. | |
imageUrls | array | Image URLs | yes | |
videoUrls | array | Video URLs | yes | |
cards | array | Carousel cards | yes | |
publisherPlatforms | array | Publisher platforms | yes | |
categories | array | Categories | yes | |
spend | object | Disclosed spend range (political/issue ads when available) | ||
impressions | object | Disclosed impressions range (when available) | ||
currency | string | Currency | yes | |
collationId | string | Collation ID | yes | |
collationCount | integer | Collation count | yes | |
isActive | boolean | null | Is active | Whether Meta lists the ad as running; null when the Ad Library did not say. | yes |
searchQuery | string | Keyword or advertiser search label | yes | |
searchType | string | KEYWORD or PAGE | yes | |
searchedPageId | string | Page ID used for PAGE search | ||
euTotalReach | integer | EU total reach (when enriched) | yes | |
euTransparency | object | EU audience disclosures | yes | |
reachBreakdown | array | EU age/country/gender reach breakdown | yes | |
payerBeneficiary | array | Payer / beneficiary disclosure entries | ||
hasViolatingPayerBeneficiary | boolean | Has violating payer/beneficiary (EU) | yes | |
pageLikeCount | integer | Page like count (when enriched) | yes | |
pageCategory | string | Page category (About) | yes | |
pageVerification | string | Page verification status | yes | |
instagramUsername | string | Linked Instagram username | ||
instagramFollowers | integer | Linked Instagram followers | yes | |
pageAboutText | string | Page About text | yes | |
pageEntityType | string | Page entity type | yes | |
pageIsDeleted | boolean | Page is deleted | yes | |
pageIsRestricted | boolean | Page is restricted | yes | |
pageIsProfilePage | boolean | Page is a personal profile page | yes | |
pageAlias | string | Page alias / vanity | yes | |
pageCoverPhotoUrl | string | Page cover photo URL | yes | |
isPoliticalPage | boolean | Page flagged political by Ad Library | yes | |
pageSpend | object | Page political spend buckets (when disclosed) | yes | |
disclaimers | array | Disclaimer labels from political spend | ||
detailsEnriched | boolean | Ad details added | yes | |
phones | array | Advertiser phones | ||
emails | array | Advertiser emails | ||
address | object | Advertiser address | yes | |
geo | object | null | Advertiser coordinates | yes | |
person | object | null | Advertiser contact person | ||
org | object | null | Advertiser organization | yes | |
web | object | Advertiser website and social profiles | yes | |
leadSource | string | Contact information source | Values: search, detail, entity, contact, reveal-xhr | yes |
leadReveal | string | Contact information visibility | Values: visible, click, xhr, gated, image, absent | yes |
leadAbsences | object | Reasons contact fields are unavailable | yes | |
cardsCount | integer | Total cards when the list was capped at 50 | ||
imageUrlsCount | integer | Total image URLs when the list was capped at 50 | ||
videoUrlsCount | integer | Total video URLs when the list was capped at 50 | ||
assetKeys | array | Downloaded media record keys | ||
scrapedAt | string | Scraped at | yes |
Sample preview
All 3 rows of the free sample, collected 2026-11-26, shown one column per line. Columns that name or contact individual people were removed and email addresses masked before publishing. Download the full sample CSV.
| Column | Row 1 | Row 2 | Row 3 |
|---|---|---|---|
adArchiveId | 1339489931715040 | 2087216342231765 | 957889050704315 |
pageId | 71740214065 | 380039845369159 | 238939146624 |
pageName | KURU Footwear | SHEIN | On |
pageProfileUrl | https://facebook.com/kurufootwear | https://facebook.com/SHEINOFFICIAL | https://facebook.com/On |
bodyText | You saw the apocalypse. The zombies were scary. Now meet the shoes that make foot pain the real casualty. 🦶Built for Heel Pain Relief 🌟50,0… | Don't miss out. Shop SHEIN and find what you really wan | Discover performance-driven shoes, apparel and accessories. Designed to power your every move. |
title | Get Comfort in the Chaos | Adidas Black Letter Print T-Shirt Men's Gym Wear Workout Activewear Tops Round Neck Regular Fit Knitted Fabric Casual Comfortable Short Slee | Performance Long-T Black | Eclipse |
linkUrl | https://www.kurufootwear.com/pages/outbreak | https://m.shein.com/us/ark/default?scene=1&test=5051&ad_type=DPA&url_from=adhub2078091784470519811&pf=Facebook&placement={{placement}}&site… | http://www.on.com/ |
ctaText | Shop now | Shop now | Shop now |
displayFormat | DCO | DPA | DPA |
imageUrls | ["https://scontent-hou1-1.xx.fbcdn.net/v/t39.35426-6/735287112_941136988978881_7755665091702434084_n.jpg?_nc_cat=107&_nc_map=urlgen_bucketl… | ["https://scontent-hou1-1.xx.fbcdn.net/v/t39.35426-6/749355505_1060036969892479_6892401710408182803_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=… | ["https://scontent-hou1-1.xx.fbcdn.net/v/t39.35426-6/839531771_1753109839243001_6164504946887302702_n.jpg?stp=dst-jpg_s600x600_tt6&_nc_cat=… |
videoUrls | ["https://video-hou1-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQMU5hVt2lF9e9kVLPUttid_lM3coEezBlnEHFK6MZ69A-_vVafq5gh_vWaskP2BxtsZFtFNpFK0oDVKboF6XNX… | [] | [] |
cards | [{"bodyText":"You saw the apocalypse. The zombies were scary. Now meet the shoes that make foot pain the real casualty. \n🦶Built for Heel P… | [{"bodyText":"Don't miss out. Shop SHEIN and find what you really wan","title":"Adidas Black Letter Print T-Shirt Men's Gym Wear Workout Ac… | [{"bodyText":"Discover performance-driven shoes, apparel and accessories. Designed to power your every move.","title":"Performance Long-T B… |
publisherPlatforms | ["FACEBOOK","INSTAGRAM","AUDIENCE_NETWORK"] | ["FACEBOOK","INSTAGRAM"] | ["FACEBOOK","INSTAGRAM","AUDIENCE_NETWORK","THREADS"] |
categories | ["UNKNOWN"] | ["UNKNOWN"] | ["UNKNOWN"] |
currency | |||
collationId | 1962576714495079 | ||
collationCount | 1 | 1 | 1 |
isActive | true | true | true |
scrapedAt | 2026-11-26T00:07:29Z | 2026-11-26T00:07:29Z | 2026-11-26T00:07:29Z |
createdAt | 2026-07-06T07:00:00Z | 2026-07-17T07:00:00Z | 2026-10-07T07:00:00Z |
startDate | 2026-07-06T07:00:00Z | 2026-07-17T07:00:00Z | 2026-10-07T07:00:00Z |
address | {"street":null,"unit":null,"locality":null,"region":null,"postalCode":null,"country":null,"full":null} | {"street":null,"unit":null,"locality":null,"region":null,"postalCode":null,"country":null,"full":null} | {"street":null,"unit":null,"locality":null,"region":null,"postalCode":null,"country":null,"full":null} |
geo | |||
org | {"name":"KURU Footwear","id":"71740214065"} | {"name":"SHEIN","id":"380039845369159"} | {"name":"On","id":"238939146624"} |
web | {"website":"https://www.kurufootwear.com/","socials":["https://facebook.com/kurufootwear/"]} | {"website":"https://m.shein.com/","socials":["https://facebook.com/SHEINOFFICIAL/"]} | {"website":null,"socials":["https://facebook.com/On/"]} |
leadSource | entity | entity | entity |
leadReveal | gated | gated | gated |
leadAbsences | {"phones":"gated (Live About link missing on advertiser Page)","emails":"gated (Live About link missing on advertiser Page)","address":"gat… | {"phones":"gated (Live About link missing on advertiser Page)","emails":"gated (Live About link missing on advertiser Page)","address":"gat… | {"phones":"gated (Live About link missing on advertiser Page)","emails":"gated (Live About link missing on advertiser Page)","address":"gat… |
searchQuery | running shoes | running shoes | running shoes |
searchType | KEYWORD | KEYWORD | KEYWORD |
rowType | ad | ad | ad |
id | 1339489931715040 | 2087216342231765 | 957889050704315 |
euTransparency | {"euTotalReach":1,"ageAudience":null,"genderAudience":null,"locationAudience":null,"targetsEu":true} | {"euTotalReach":1,"ageAudience":null,"genderAudience":null,"locationAudience":null,"targetsEu":true} | |
euTotalReach | 1 | 1 | |
reachBreakdown | [{"country":"IT","age_gender_breakdowns":[{"age_range":"45-54","male":1,"female":null,"unknown":null}]}] | [{"country":"FR","age_gender_breakdowns":[{"age_range":"25-34","male":null,"female":1,"unknown":null}]}] | |
hasViolatingPayerBeneficiary | false | false | |
pageAboutText | Healthiest Shoes on Earth | Heel Better™ with KURU's revolutionary heel-hugging KURUSOLE technology. | 🌟Fashion for Everyone! 💕SHEIN offers endless finds at affordable prices, so you can get more of what you really love.#SHEINtrends #SHEINsav… | Igniting the human spirit through movement: www.on.com |
pageLikeCount | 186222 | 39609413 | 1300990 |
pageCategory | Footwear store | Clothing (Brand) | Sports & recreation |
pageVerification | NOT_VERIFIED | BLUE_VERIFIED | BLUE_VERIFIED |
instagramFollowers | 85801 | 42190909 | 4214154 |
pageEntityType | PERSON_PROFILE | PERSON_PROFILE | PERSON_PROFILE |
pageIsDeleted | false | false | false |
pageIsRestricted | false | false | false |
pageIsProfilePage | false | false | false |
pageAlias | kurufootwear | SHEINOFFICIAL | On |
pageCoverPhotoUrl | https://scontent-hou1-1.xx.fbcdn.net/v/t39.30808-6/898714567_1581476134016803_1742725530444118411_n.avif?stp=dst-jpg_tt6&_nc_cat=106&_nc_ma… | https://scontent-hou1-1.xx.fbcdn.net/v/t39.30808-6/487463069_1328998032586216_6970582690240455141_n.jpg?_nc_cat=109&_nc_map=urlgen_bucketle… | https://scontent-hou1-1.xx.fbcdn.net/v/t39.30808-6/670217975_1397389372416698_2958913590495482568_n.jpg?_nc_cat=106&_nc_map=urlgen_bucketle… |
isPoliticalPage | false | true | true |
detailsEnriched | true | true | true |
pageSpend | {"lifetimeByDisclaimer":[{"disclaimer":"","spend":66280}]} |
Public Page phone numbers, emails and addresses can be empty when the contact page is not accessible.
Use it from Claude and Gemini
This source is not on the OpenData MCP server yet. Claude and Gemini can still run the Apify Actor lentic_clockss/facebook-ad-library-scraper through the Apify MCP server with your own Apify token.
Prompt to collect data
Use the OpenData MCP server to collect Facebook Ad Library Public Ads Database data. Request: Keyword or brand to search ads for: running shoes; Country the ads were shown in: US; Ad status: Running now. Return up to 20 rows (one row per entity) as a table with these columns: adArchiveId, pageId, pageName, pageProfileUrl, pageProfilePictureUrl, bodyText, title, linkUrl, ctaText, displayFormat. Tell me how many rows were delivered and what they cost before showing them.Prompt to analyse the CSV
I attached a CSV export of Facebook Ad Library Public Ads Database (50 columns, one row per entity). Sort by the start date to compare when advertisers began running ads. Filter ad text for discount terms to compare promotional offers. Count ads by advertiser Page to compare how many appear in your file. Use only the values in the file and point out empty columns instead of guessing. Note: Public Page phone numbers, emails and addresses can be empty when the contact page is not accessible.n8n, Clay and Make
All three run the Apify Actor lentic_clockss/facebook-ad-library-scraper with your Apify token. Set a spending cap with maxTotalChargeUsd: the run stops when it reaches that amount, and you pay only for delivered rows.
Apify API (any tool that can send HTTP)
curl -X POST "https://api.apify.com/v2/acts/lentic_clockss~facebook-ad-library-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"searchQuery": "shopify", "country": "US", "maxResults": 3}'
n8n
- Add the Apify node (Apify n8n integration), choose Run an Actor and get dataset, and enter Actor
lentic_clockss/facebook-ad-library-scraper. - Paste the example input above as the Input JSON and set the memory and timeout you need.
- Or install the n8n-nodes-opendata-actors community node: it exposes the main inputs as fields and a Max Total Charge (USD) setting sent as
maxTotalChargeUsd(default $1). It covers a growing set of these Actors; use the Apify node for the rest.
Clay
Add the Run Apify Actor enrichment from Clay's Apify integration, choose the Actor and paste this input. Replace the {{…}} placeholder with a column reference (type / in Clay).
{
"actorId": "lentic_clockss/facebook-ad-library-scraper",
"input": {
"searchQuery": "{{Search Query}}",
"country": "US",
"maxResults": 3
}
}
Make
- Add the Apify module Run an Actor (Apify Make integration), pick
lentic_clockss/facebook-ad-library-scraper, paste the input JSON and turn on Run synchronously. - Add Get Dataset Items with the run's
defaultDatasetId. - Send the rows to Google Sheets, Airtable or your CRM with an iterator.
Pricing, billing and limits
- Billing unit: one delivered row is one billable unit on every channel. A confirmed empty result, an input error, a source failure or a timeout creates no billable rows.
- OpenData Shop: the first 1,000 rows cost $5.00 per 1,000 and additional rows $3.00 per 1,000, with a $1.00 minimum; the product page shows the exact price before you pay. If fewer rows are delivered than you paid for, the amount for the missing rows is credited to your account balance automatically (refund policy).
- Apify: $0.002 per delivered row on the Free plan plus a $0.005 start event per GB of memory; the run stops at your
maxTotalChargeUsd.
How much does it cost to scrape Facebook Ad Library?
The Actor uses pay-per-event pricing. Platform usage is included in these prices.
| Apify plan | Start event | Price per row | Price per 1,000 rows |
|---|---|---|---|
| Free | $0.005 | $0.002 | $2.00 |
| Starter | $0.005 | $0.0018 | $1.80 |
| Scale | $0.005 | $0.0016 | $1.60 |
| Business | $0.005 | $0.0014 | $1.40 |
| Platinum | $0.005 | $0.0014 | $1.40 |
| Diamond | $0.005 | $0.0014 | $1.40 |
The start charge counts one event per GB of memory, with a minimum of one event. At the default 512 MB, starting a run costs $0.005.
maxResultsapplies to each input, with a default of70. Larger requests are collected in parts of 70; expanded variants count toward the same limit.country: "ALL"caps each input at 50 rows regardless of a larger requested limit.- Free Apify plan runs are capped at 200 rows, with 10 total runs of this Actor.
- The whole run stops at Maximum cost per run, set through
maxTotalChargeUsdin the API. Available matches and this cap may reduce the number delivered. - The Apify Free plan includes $5.00 in monthly usage credit (about 2,499 rows at
$0.002per row across Free-plan runs capped at 200 rows per run).
Example: at 512 MB, three keywords delivering 5 rows each produce 15 rows. On the Free plan, the cost is 15 × $0.002 + $0.005 = $0.035. A run that delivers no rows has no row charge, but its start event can still be charged.
What happens when the run timeout is too short
If your run timeout ends before everything is collected, the run does not fail. It stops shortly before the timeout, delivers every row collected so far to the dataset, and finishes as SUCCEEDED. You are charged only for the rows it delivered.
To get the rest, run the Actor again with the same input and set cursor to the value of nextCursor from the run's RUN_SUMMARY record (key-value store). The new run first delivers rows that were already collected, then collects what is left. Rows are never delivered or charged twice. A cursor can be used once and is valid for 6 hours; after that, a run with the same input starts from the beginning.
RUN_SUMMARY also tells you why the run stopped early: partial: true and partialReason: "run_timeout".
Stopping a run yourself? Use Abort gracefully (Console) or POST /v2/actor-runs/{runId}/abort?gracefully=true (API). The run then keeps the rows collected so far and writes a cursor the same way. A plain abort stops the run immediately and delivers nothing.
Calling the Actor synchronously (run-sync, run-sync-get-dataset-items) works as usual: you get the rows delivered before the timeout.
Limitations
- Private ad spending, detailed audience targeting and custom audiences tracked on websites are excluded; political ads follow Meta disclosure rules.
- Public contacts can include personal profile Pages, but may be empty; no ads are placed and no Pages are contacted for you.
- ALL gives at most 50 ads; the general order range is 1 to 100,000 rows.
- Keyword searches and Page links return separate sets of ads, not only a Page's ads containing your keyword.
- This Actor collects Ad Library ads, not Facebook posts, groups, comments or private profiles. Non-Page target links are rejected.
- Results reflect available public disclosures, not a complete historical archive or guaranteed market coverage.
- Contact enrichment is enabled by default but does not guarantee phones, emails or addresses. Current extraction does not populate
geoorperson. - Source restrictions can reduce results or prevent collection. Disclosed spend and reach are not available for every ad.
- Creative lists are capped at 50 entries; fields such as
cardsCount,imageUrlsCountandvideoUrlsCountretain the original count when truncated. - Date filters exclude ads with no start date. Carousel is not a
mediaTypeoption; inspectdisplayFormatafter collection. - A plain (not graceful) abort stops the run immediately and delivers nothing.
Frequently asked questions
What information is in the Facebook Ad Library file?
Each row describes one public ad. You can compare advertiser Pages, ad headlines, text and button wording, with images, videos and links. Dates, platforms and running status help you compare campaigns. Public Page contacts can be empty. Public disclosure details may include reach or spending information, not private account reports. No Facebook account is needed. The sample on this page shows the exact column names.
How do I search the Facebook Ad Library for a brand or keyword?
Enter words from the ads in Keyword or brand to search ads for, or paste up to 3 Facebook Page links of advertisers, such as https://www.facebook.com/nike. Give Country the ads were shown in as a two-letter code such as US, GB or DE, or ALL for every country (at most 50 ads); left empty, it is US. Under Ad status choose Running now, Stopped or Running and stopped; there is no platform filter, so filter platforms in the sheet. Keyword searches and Page links return separate sets, not only a Page’s ads containing the words.
Does the Ad Library export include ad spend or targeting?
No private ad account spending, detailed audience targeting or custom audiences tracked on websites are included. You get public ad text, dates and platforms. Political and issue ads follow Meta's disclosure rules. Public Page phone numbers, emails and addresses can appear, including for personal profiles, but can be empty if access is restricted. An order can ask for 1 to 100,000 rows.
Can I audit a competitor's active Facebook ads?
Yes. Paste the competitor's Facebook Page link and choose Running now under Ad status. Sort by the creation date and read the ad text and button wording side by side. For offer research, search weight loss with country code US and filter ad text for promo codes or discounts. The shop does not place ads or contact Page administrators for you.
How long does a Facebook Ad Library order take?
The ads are collected from the public Ad Library after you pay, so the file shows what the library lists at that moment. Most orders arrive within 24–48 hours and every order within 72 hours of payment; download the file from the order page. If the search finds fewer ads than you paid for, the amount for the missing rows is credited to your account balance automatically.
Is it legal to scrape Facebook Ad Library?
This Actor collects public data, not private account content. You are responsible for complying with applicable terms and data-protection law. Publicly visible personal data still requires a lawful basis for your intended use. This is not legal advice.
Why did my run end as ABORTED?
Runs no longer pause as ABORTED when the timeout is too short; they end SUCCEEDED with partial results, as described above. ABORTED means the run was aborted. Use Abort gracefully to keep the rows collected so far and get a cursor.
How many results can I get?
maxResults accepts up to 5000 per keyword or Page, not a guaranteed number of matches. Worldwide searches allow at most 50 per input. Free-plan limits, available matches and your maximum cost can reduce the total.
Why are some fields empty?
Meta does not disclose every field for every ad. Contact details vary by advertiser; enrichment may be unavailable or stop before completion. leadAbsences explains missing contact data. A missing active-status flag remains null .
Why do `leadAbsences` reasons look different from earlier runs?
From November 2026 each reason is an English code. Earlier runs returned Chinese labels: Earlier label (JSON-escaped) Now "\u672a\u9a8c\u8bc1" not_verified "\u672c\u7ad9\u65e0\uff08\u8be5\u5e7f\u544a\u4e3b Contact \u9875\uff09" not_verified (no found on the advertiser Contact page) , where is phone number , email address , US street address or website or social profile link "\u95f8\u95e8\u9501\uff08 \uff09" gated ( ) , such as gated (Live About link missing on advertiser Page) Gate reasons were already English except "\u5e7f\u544a\u7ed3\u679c\u7f3a\u5c11\u5e7f\u544a\u4e3b\u4e3b\u9875\u8eab\u4efd" , which is now Advertiser Page identity missing on ad result .
Does this return ad performance metrics?
It returns disclosed spend and impression ranges when available, commonly for political or issue ads. It does not provide private Ads Manager metrics such as click-through rate or conversions. An active ad is not proof that it performs well.
Can I monitor only new ads?
Set incremental to true . History is shared across matching keywords, Pages, country, adType and activeStatus in facebook-ad-library-checkpoints . Only delivered ads are marked seen. History retains the latest 10,000 IDs per search scope, so this is not an unlimited archive.