
Facebook Ad Library
Pay $0.70 for 1,000 ads
This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?
See alternative Actors
Facebook Ad Library
Pay $0.70 for 1,000 ads
Scrape Facebook ads library efficiently!
Actor Metrics
13 monthly users
4.0 / 5 (1)
8 bookmarks
>99% runs succeeded
6.7 hours response time
Created in Sep 2024
Modified a month ago
You can access the Facebook Ad Library programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1echo '{
2 "facebook_ad_library_search_url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=real estate&search_type=keyword_unordered&media_type=all",
3 "proxySettings": {
4 "useApifyProxy": true,
5 "apifyProxyGroups": [
6 "RESIDENTIAL"
7 ]
8 }
9}' |
10apify call insight_api_labs/facebook-ad-library --silent --output-dataset
Facebook Ad Library API through CLI
The Apify CLI is the official tool that allows you to use Facebook Ad Library locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
1npm i -g apify-cli
2apify login
Other API clients include: