Facebook Ad Library

Facebook Ad Library

Scrape Facebook ads library efficiently!

ECOMMERCESOCIAL_MEDIAApify

Our scraper is ready to dive into Facebook's Ad Library and collect a treasure trove of information for each ad. To get started, you'll need to provide a valid Facebook Ad Library search URL. Here's how to do it:

  1. 🌐 Visit https://www.facebook.com/ads/library/
  2. 🔍 Perform your desired search, adjusting all the filters to your liking
  3. 📋 Copy the resulting URL from your browser's address bar

Make sure that the search URL starts with "https://www.facebook.com/ads/library/" and includes a query keyword (q=...) within it.

You can also programmatically adjust the parameters within the search URL at your workflow via Apify API integration for more flexibility. This opens up exciting possibilities for an automated processing of facebook ad library searches.

The actor is running in pay-per-result mode. In this mode, the ad search must list at least 100 ads to successfully return a result (due to the actor's break-even cost). Additionally, the actor relies solely on Apify proxies, which are prone to being blocked. To use your own (private or residential) proxies, please subscribe to the rental plan here.

📊 Data Fields Explained: A Deep Dive into Ad Metrics

🎯 Ad Identification

  • adArchiveID: Unique identifier for each ad
  • archiveTypes: Types of archives this ad belongs to
  • categories: Ad categories for easy classification

📈 Ad Performance

  • impressionsWithIndex: Insights into ad visibility
  • reachEstimate: Estimated audience reach
  • spend: Investment made in the ad campaign

📅 Timeline

  • startDate: When the ad campaign kicked off
  • endDate: The campaign's conclusion date

💼 Business Details

  • pageID & pageName: Identifies the advertising entity
  • pageInfo: Additional details about the advertiser
  • currency: The monetary unit used for the campaign

🔍 Ad Characteristics

  • containsDigitallyCreatedMedia: Flags AI-generated content
  • containsSensitiveContent: Highlights potentially sensitive material
  • gatedType: Indicates any access restrictions
  • publisherPlatform: Where the ad is being displayed

🏛️ Compliance & Reporting

  • politicalCountries: Relevant for political ad transparency
  • isAAAEligible: Relates to ad archive access
  • reportCount: User feedback on the ad
  • stateMediaRunLabel: Important for state media transparency

📸 Content Snapshot

  • snapshot: A goldmine of ad details! 🏆

    FieldDescription
    📝 Ad TextBody, title, and captions
    🔗 URLsLink destinations and CTAs
    🖼️ ImagesOriginal, resized, and watermarked versions
    🎥 VideosHD and SD video links (when available)
    📊 Page InfoAdvertiser details, categories, and stats
    🌐 InstagramRelated Instagram account data
    ⏰ TimestampsCreation time and version history

    Unlock the full potential of your ad analysis with this comprehensive snapshot! 🚀

🔗 Direct Access

  • url: Direct link to the ad in Facebook's Ad Library

Plus many more fields that provide a comprehensive view of each ad! 🚀

Here’s the input and output JSON examples for clarity:

Input Example

1{
2  "facebook_ad_library_search_url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=TR&q=real estate&search_type=keyword_unordered&media_type=all",
3  "proxySettings": {
4    "useApifyProxy": true,
5    "apifyProxyGroups": ["RESIDENTIAL"]
6  },
7  "total_ads": 100
8}

Output Example

1[
2  {
3    "adArchiveID": "607401198534818",
4    "adArchiveId": "607401198534818",
5    "adID": null,
6    "adId": null,
7    "archiveTypes": [],
8    "categories": ["UNKNOWN"],
9    "containsDigitalCreatedMedia": false,
10    "containsDigitallyCreatedMedia": false,
11    "containsSensitiveContent": false,
12    "collationCount": 1,
13    "collationID": "941830434036402",
14    "collationId": "941830434036402",
15    "currency": "",
16    "endDate": 1734595200,
17    "endDataFormatted": null,
18    "entityType": "PERSON_PROFILE",
19    "fevInfo": null,
20    "finServAdData": {
21      "is_deemed_finserv": false,
22      "is_limited_delivery": false
23    },
24    "finservAdData": {
25      "is_deemed_finserv": false,
26      "is_limited_delivery": false
27    },
28    "gatedType": "ELIGIBLE",
29    "hasUserReported": false,
30    "hiddenSafetyData": false,
31    "hideDataStatus": "NONE",
32    "impressionsWithIndex": {
33      "impressions_text": null,
34      "impressions_index": -1
35    },
36    "isAAAEligible": true,
37    "isAaaEligible": true,
38    "isAdAccountActioned": null,
39    "isActive": true,
40    "isProfilePage": false,
41    "pageID": "110341895329134",
42    "pageId": "110341895329134",
43    "pageInfo": "see snapshot for more info about advertiser page",
44    "pageIsDeleted": false,
45    "pageName": "Good Story",
46    "politicalCountries": [],
47    "reachEstimate": null,
48    "reportCount": null,
49    "snapshot": {
50      "body": {
51        "text": "Hello"
52      },
53      "branded_content": null,
54      "brazil_tax_id": null,
55      "byline": null,
56      "caption": "fbweb.moboreader.net",
57      "cards": [],
58      "cta_text": "Learn more",
59      "cta_type": "LEARN_MORE",
60      "country_iso_code": null,
61      "current_page_name": "Good Story",
62      "disclaimer_label": null,
63      "display_format": "VIDEO",
64      "event": null,
65      "images": [],
66      "is_reshared": false,
67      "link_description": null,
68      "link_url": "https://fbweb.moboreader.net/64194322-fb_contact-encp30_2-1214-core2.html?adid={{ad.id}}&char=331118&accid=638434121690371&rawadid=120217696994320091",
69      "page_categories": ["Book"],
70      "page_entity_type": "PERSON_PROFILE",
71      "page_id": "110341895329134",
72      "page_is_deleted": false,
73      "page_is_profile_page": false,
74      "page_like_count": 777,
75      "page_name": "Good Story",
76      "page_profile_picture_url": "https://scontent-mia3-1.xx.fbcdn.net/v/t39.35426-6/470221314_1538773036786543_2843870837120104634_n.jpg",
77      "page_profile_uri": "https://www.facebook.com/100090635329790/",
78      "root_reshared_post": null,
79      "title": null,
80      "videos": [
81        {
82          "video_hd_url": "https://video-mia3-2.xx.fbcdn.net/v/t42.1790-2/470328148_607401218534816_4547189470724049034_n.?",
83          "video_preview_image_url": "https://scontent-mia3-1.xx.fbcdn.net/v/t39.35426-6/470209065_2379908972359313_4699088056310665597_n.jpg",
84          "video_sd_url": "https://video-mia3-3.xx.fbcdn.net/v/t42.1790-2/469999215_559374680236449_7899133143832632579_n.mp4",
85          "watermarked_video_hd_url": "",
86          "watermarked_video_sd_url": ""
87        }
88      ],
89      "additional_info": null,
90      "ec_certificates": [],
91      "extra_images": [],
92      "extra_links": [],
93      "extra_texts": [],
94      "extra_videos": []
95    },
96    "spend": null,
97    "startDate": 1734249600,
98    "startDataFormatted": null,
99    "stateMediaRunLabel": null,
100    "publisherPlatform": ["FACEBOOK", "INSTAGRAM", "AUDIENCE_NETWORK", "MESSENGER"],
101    "menuItems": [],
102    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=TR&q=real estate&search_type=keyword_unordered&media_type=all",
103    "inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=TR&q=real estate&search_type=keyword_unordered&media_type=all",
104    "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=TR&q=real estate&search_type=keyword_unordered&media_type=all"
105  }
106]

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!