Facebook Ad Library avatar

Facebook Ad Library

Under maintenance
Try for free

Pay $0.70 for 1,000 ads

Go to Store
This Actor is under maintenance.

This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

See alternative Actors
Facebook Ad Library

Facebook Ad Library

insight_api_labs/facebook-ad-library
Try for free

Pay $0.70 for 1,000 ads

Scrape Facebook ads library efficiently!

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.

πŸ“Š 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]
Developer
Maintained by Community

Actor Metrics

  • 31 monthly users

  • 8 stars

  • 96% runs succeeded

  • 6.7 hours response time

  • Created in Sep 2024

  • Modified 12 days ago