Facebook Ads Library Scraper | $0.25/1K Ads | Pay Per Result avatar

Facebook Ads Library Scraper | $0.25/1K Ads | Pay Per Result

Pricing

from $0.25 / 1,000 results

Go to Apify Store
Facebook Ads Library Scraper | $0.25/1K Ads | Pay Per Result

Facebook Ads Library Scraper | $0.25/1K Ads | Pay Per Result

Search the Facebook (Meta) Ad Library for every ad a page is running. Add a page or search term and get ad copy, page name, live status, dates, CTA, landing URL, and platforms. Export to JSON or CSV, run it via API, or plug it into your agent. $0.25 per 1,000 ads, pay per result. Served by AnyAPI.

Pricing

from $0.25 / 1,000 results

Rating

0.0

(0)

Developer

AnyAPI

AnyAPI

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

17 hours ago

Last modified

Share

Searches the Meta Ad Library and returns one row per ad: ad ID, library URL, advertiser page ID and name, whether the ad is running, start and end dates, ad copy, headline, call to action, destination link, display format, the platforms it runs on, how many variants share the creative, and the creative media. It keeps paging until it reaches the number of ads you asked for.

Input

FieldTypeRequiredDescription
querystringyesKeyword to search the Meta Ad Library for.
countrystringnoTwo letter country code to scope results. Leave empty for all countries.
statusstringnoWhich ads to include. One of: ALL, ACTIVE, INACTIVE. Defaults to ACTIVE.
mediaTypestringnoCreative media type filter. One of: ALL, IMAGE, VIDEO, MEME, IMAGE_AND_MEME, NONE.
searchTypestringnoLoose keyword match, or the exact phrase. One of: keyword_unordered, keyword_exact_phrase.
adTypestringnoAll ads, or only political and issue ads. One of: all, political_and_issue_ads.
sortBystringnoOrder results by impressions or by recency. One of: impressions, recent.
startDatestringnoOnly ads with impressions on or after this date, written as YYYY-MM-DD.
endDatestringnoOnly ads with impressions on or before this date, written as YYYY-MM-DD.
maxItemsintegernoStop after this many results. Defaults to 100. Each result is charged once.

Output

Every result row is written to the dataset as one JSON object:

{
"id": "1234567890123456",
"sourceUrl": "https://www.facebook.com/ads/library/?id=1234567890123456",
"pageId": "15087023444",
"pageName": "Nike",
"active": true,
"startDate": 1771891200,
"endDate": 0,
"text": "Built for the long run.",
"title": "Nike Pegasus 42",
"ctaText": "Shop Now",
"ctaType": "SHOP_NOW",
"linkUrl": "https://www.nike.com/",
"displayFormat": "VIDEO",
"platforms": [
"FACEBOOK",
"INSTAGRAM"
],
"adCount": 14,
"pageProfilePicture": "https://scontent.xx.fbcdn.net/example.jpg",
"media": [],
"source": "AnyAPI"
}

Standby mode

This Actor also runs in Standby mode. Send the same input as a JSON body in a POST request and it answers with { "items": [ ... ] }, the same rows a standard run would write, charged the same way.

Pricing

This Actor is billed per result, plus one small fixed charge per run. A result event is charged for every row it writes, and the Actor Start event is charged once when the run begins. A run that finds nothing, or that comes back with an empty list, writes no rows and pays the start charge only. Both prices are on this Actor's Apify Store page.

Support

Something wrong with this Actor, a field you need, or a platform you want added? Open an issue on this Actor, or email support@getanyapi.com and a human will answer.

One shape across every platform

This Actor belongs to a set of sixteen on this account that read YouTube, Instagram, TikTok, X, Reddit, Threads, Facebook Ads Library and Google News. They take the same kind of input, write the same kind of row, bill the same way, and stamp every row with "source": "AnyAPI", so a pipeline written against one of them reads all of them without a second parser.

PlatformActors
YouTubesearch, channel videos, comments, transcripts
Instagramprofile posts, post comments
TikTokprofile videos, keyword search, video comments
Xprofile, user tweets
Redditsearch, post comments
OtherThreads posts, Facebook Ads Library, Google News