Facebook Ads Library Scraper | $0.25/1K Ads | Pay Per Result
Pricing
from $0.25 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
17 hours ago
Last modified
Categories
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
| Field | Type | Required | Description |
|---|---|---|---|
query | string | yes | Keyword to search the Meta Ad Library for. |
country | string | no | Two letter country code to scope results. Leave empty for all countries. |
status | string | no | Which ads to include. One of: ALL, ACTIVE, INACTIVE. Defaults to ACTIVE. |
mediaType | string | no | Creative media type filter. One of: ALL, IMAGE, VIDEO, MEME, IMAGE_AND_MEME, NONE. |
searchType | string | no | Loose keyword match, or the exact phrase. One of: keyword_unordered, keyword_exact_phrase. |
adType | string | no | All ads, or only political and issue ads. One of: all, political_and_issue_ads. |
sortBy | string | no | Order results by impressions or by recency. One of: impressions, recent. |
startDate | string | no | Only ads with impressions on or after this date, written as YYYY-MM-DD. |
endDate | string | no | Only ads with impressions on or before this date, written as YYYY-MM-DD. |
maxItems | integer | no | Stop 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.
| Platform | Actors |
|---|---|
| YouTube | search, channel videos, comments, transcripts |
| profile posts, post comments | |
| TikTok | profile videos, keyword search, video comments |
| X | profile, user tweets |
| search, post comments | |
| Other | Threads posts, Facebook Ads Library, Google News |