Dataslayer
Facebook

Facebook Ads Library Scraper

Search public Facebook Ads Library records by keyword or advertiser, export structured ad and creative data, and optionally retrieve bounded ad details.

runs · 30d
17
success · 30d
100.0%
runs all time
25
users · 30d
1
POST/v2/acts/data-slayer~facebook-ads-library-scraper/run-sync-get-dataset-items
request
curl -X POST "https://api.apify.com/v2/acts/data-slayer~facebook-ads-library-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchTerms": [],
    "advertiserQueries": []
  }'
each result row23 fields
{
  "recordType": string,
  "adId": string,
  "adLibraryUrl": string,
  "creativeId": string,
  "advertiser": object,
  "isActive": boolean,
  "startedAt": string,
  "endedAt": string,
  "platforms": array,
  "countries": array,
  "creativeIds": array,
  "body": string,
  "headline": string,
  "description": string,
  // + 9 more fields
}

Output fields

23 documented fields per record. Showing the first 23.

FieldTypeDescription
recordTypestring · nullable
adIdstring · nullable
adLibraryUrlstring · nullable
creativeIdstring · nullable
advertiserobject · nullable
isActiveboolean · nullable
startedAtstring · nullable
endedAtstring · nullable
platformsarray · nullable
countriesarray · nullable
creativeIdsarray · nullable
bodystring · nullable
headlinestring · nullable
descriptionstring · nullable
callToActionstring · nullable
destinationUrlstring · nullable
formatstring · nullable
imageUrlsarray · nullable
videoUrlsarray · nullable
transparencyobject · nullable
detailStatusstring · nullable
retrievedAtstring · nullable
inputobject · nullable

Related scrapers

Frequently asked questions

What does Facebook Ads Library Scraper return?+

Search public Facebook Ads Library records by keyword or advertiser, export structured ad and creative data, and optionally retrieve bounded ad details. It returns 23 documented fields per record.

How much does Facebook Ads Library Scraper cost?+

It is priced at $1.20 per 1,000 results (lowest tier), billed through your Apify account. Failed runs are not billed as results.

What format does the data come back in?+

Typed JSON records by default. You can also download a run's dataset as CSV or Excel, or stream it into your own stack.

How reliable is this scraper?+

Over the last 30 days it ran 17 times with a 100.0% success rate.

How do I run it?+

POST a JSON body to the actor's run endpoint with your Apify token, or open it on Apify and start a run from the console.

Run Facebook Ads Library Scraper on Apify

One request, structured rows back. Pay per result through your Apify account.