Facebook Ad Library avatar

Facebook Ad Library

Try for free

Pay $0.50 for 1,000 ads

View all Actors
Facebook Ad Library

Facebook Ad Library

insight_api_labs/facebook-ad-library
Try for free

Pay $0.50 for 1,000 ads

Scrape facebook ad library!

You can access the Facebook Ad Library programmatically from your own applications by using the Apify API. You can 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}' |
4apify 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:

Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 2 stars
  • 100.0% runs succeeded
  • Created in Sep 2024
  • Modified about 22 hours ago