Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Try for free

2 hours trial then $19.99/month - No credit card required now

View all Actors
Facebook Ads Library Scraper

Facebook Ads Library Scraper

easyapi/facebook-ads-library-scraper
Try for free

2 hours trial then $19.99/month - No credit card required now

Extract detailed information about active Facebook ads including content, images, targeting data and more. Perfect for market research, competitor analysis and ad intelligence. Supports all countries and ad categories with anti-detection measures.

Facebook Ads Library Scraper 📊

Scrape detailed information about active ads from Facebook's Ad Library. Extract ad content, images, targeting data and more. Perfect for market research and competitor analysis! 🎯

Features ✨

  • Extract active ads from Facebook Ad Library search results
  • Support for all countries and ad categories
  • Get detailed ad information including:
    • Ad content and creative assets
    • Publisher information
    • Running dates
    • Media files (images/videos)
    • Call-to-action details
    • Page information
    • Ad categories and types
  • Configurable number of ads to scrape
  • Clean JSON output format

Usage 🚀

  1. Enter a Facebook Ad Library search URL
  2. Set maximum number of ads to scrape
  3. Run and get structured data results!

Input Parameters 📝

  • searchUrl: Facebook Ad Library search URL (required)
  • maxItems: Maximum number of ads to scrape

Output 📋

Structured JSON containing detailed ad information including:

  • Ad content and creative assets
  • Publisher details
  • Running dates
  • Media files
  • CTA information
  • Page data
  • Categories and types

Perfect for digital marketers, researchers and businesses looking to analyze Facebook advertising landscape! 🎯

Input Example

A full explanation of an input example in JSON.

1{
2    "searchUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&media_type=all&q=color%20book&search_type=keyword_unordered",
3    "maxItems": 20
4}

Output sample

The results will be wrapped into a dataset which you can always find in the Storage tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

1[
2	{
3		"ad_archive_id": "3804712299743449",
4		"ad_id": null,
5		"archive_types": [],
6		"categories": [
7			"UNKNOWN"
8		],
9		"collation_count": 1,
10		"collation_id": "1478322286215387",
11		"contains_digital_created_media": false,
12		"contains_sensitive_content": false,
13		"currency": "",
14		"end_date": 1730271600,
15		"entity_type": "PERSON_PROFILE",
16		"fev_info": null,
17		"finserv_ad_data": {
18			"is_deemed_finserv": false,
19			"is_limited_delivery": false
20		},
21		"gated_type": "ELIGIBLE",
22		"has_user_reported": false,
23		"hidden_safety_data": false,
24		"hide_data_status": "NONE",
25		"impressions_with_index": {
26			"impressions_text": null,
27			"impressions_index": -1
28		},
29		"is_aaa_eligible": false,
30		"is_active": true,
31		"is_profile_page": false,
32		"menu_items": [],
33		"page_id": "571062419989773",
34		"page_is_deleted": false,
35		"page_name": "Debonair Men's Salon",
36		"political_countries": [],
37		"publisher_platform": [
38			"FACEBOOK",
39			"INSTAGRAM"
40		],
41		"reach_estimate": null,
42		"report_count": null,
43		"snapshot": {
44			"body": {
45				"text": "Time is money, and we’re saving you both! ⏳\n\nSeize the day with Grand discount off on all services via our Early Bird Offer\nFor appointments call/whatsapp \n0307 0881490\nDHA location: Seher commercial\nShop no 2 & 3, building 20c, lane 5, sehar commercial phase 7 dha khi.\n#MensHair #MenHairstyles #MenHaircuts #HaircutsForMen #HairSalonForMen #pedicure #manicurepedicure #hairtransformation #hairstyle #hairtreatment #hairdresser #hairprotein #nonsurgicalhairreplacement #hairproducts #hairpatch #hairgoals #hairstylist #haircare #haircutsalon #MenHairSalon #StylishMen #GentlemanStyle #BarberLife #Barbershop #HairCareForMen #SharpLook #HairGoals #MenWithStyle #Groom #grooming"
46			},
47			"branded_content": null,
48			"brazil_tax_id": null,
49			"byline": null,
50			"caption": null,
51			"cards": [],
52			"cta_text": "Send WhatsApp message",
53			"cta_type": "WHATSAPP_MESSAGE",
54			"country_iso_code": null,
55			"current_page_name": "Debonair Men's Salon",
56			"disclaimer_label": null,
57			"display_format": "MULTI_IMAGES",
58			"event": null,
59			"images": [
60				{
61					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464806700_514824171533348_437147196145397960_n.jpg?_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=kkzfNwpWUaQQ7kNvgF8P1-W&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBkF5oHXiWu9JibNJ0oALc0JMc78phGZUDLmBH2w1kIDg&oe=6728D5D9",
62					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464917482_569289055626973_651291196043835463_n.jpg?stp=dst-jpg_s600x600&_nc_cat=101&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=B6-ZXsgpRdoQ7kNvgHqHy0R&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBAE74ZFTCqiLY39Sy9VtNy0BzGSGkDTlw0htG0B2ea6Q&oe=6728D50A",
63					"watermarked_resized_image_url": "",
64					"image_crops": []
65				},
66				{
67					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465059823_2003885753357561_5355299205850459249_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=0zXIdAixYyoQ7kNvgHd3yYu&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYC4APwz7aQKqL0R3xbVs8IRkREfM18zV4pzmSid2-n1rw&oe=6728E9E4",
68					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465008114_1553930715510692_3315535505336645089_n.jpg?stp=dst-jpg_s600x600&_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=qm7lyZt4pVcQ7kNvgHxe6Kq&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYAaUO44prL8PM4nV3q7HLD0W6_RBZrHk_oppEiJr_gmxQ&oe=6728CD93",
69					"watermarked_resized_image_url": "",
70					"image_crops": []
71				},
72				{
73					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/465008698_1226172448716620_1891063173292121086_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=5IkHwA37iAgQ7kNvgGPnK5G&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYD_TekgpNyeY6PSSfYfsKhf2Y-EjBx7xOJgFAeEZh5U5g&oe=6728C708",
74					"resized_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464794219_591044836689612_721992582964696878_n.jpg?stp=dst-jpg_s600x600&_nc_cat=108&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=3CoKFbWioJAQ7kNvgH3ykc1&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYB-l_AvZ87D6Z6SetaQsFLIYzLQLFhpYfkmjIcWhxi8Cg&oe=6728F735",
75					"watermarked_resized_image_url": "",
76					"image_crops": []
77				},
78				{
79					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464905924_1083582322835577_3301493116233754299_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=yEcC13w7TwUQ7kNvgFVxnl_&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBU7tQdIsrCaJ0f1knmmGh_3hJEjf_jO7Zr5_A_clXcxA&oe=6728D141",
80					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465170061_918777330115513_7589361058575265416_n.jpg?stp=dst-jpg_s600x600&_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=AnYb9Zu3QJ8Q7kNvgEoJZWN&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYB901r4HcDUMlKNkVKXbIQQCpCHn-XOmAI4gHfApNZEuQ&oe=6728DEFE",
81					"watermarked_resized_image_url": "",
82					"image_crops": []
83				},
84				{
85					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465144117_1236441984136480_600451280592920916_n.jpg?_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=sxD7Elykv7QQ7kNvgGodHc0&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYDAxWx-Y6Fy7XuVdCDbKt7QtgfGDF5rGuMwmld9wDA7Ng&oe=6728CF99",
86					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464863144_8559359050814946_3414829529384654926_n.jpg?stp=dst-jpg_s600x600&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=_CxAeMWJt4AQ7kNvgHz68t-&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBk3_RSBGQOq4bLZmg9qgnwrSZpqtum0g-Dtwu38gnYIA&oe=6728CE3D",
87					"watermarked_resized_image_url": "",
88					"image_crops": []
89				},
90				{
91					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464825516_574617054998366_5169572547226126098_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=tHTtarNIbqoQ7kNvgH7xw7J&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYAoFzouPGOWAcBFlgALH8m8cMRrCHM1wshQQBCdKOOVPg&oe=6728EEC6",
92					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464769024_3742700595991850_1391836675619502740_n.jpg?stp=dst-jpg_s600x600&_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=na66dvGTeMYQ7kNvgH9nj0K&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYDx1O9kWgd80lrLLNmZC5_a435Y-aHnnFZCdFqYJOsnnw&oe=6728C7A6",
93					"watermarked_resized_image_url": "",
94					"image_crops": []
95				},
96				{
97					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464918523_1054999466081761_6673474027571679659_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=eucDO_5p8S8Q7kNvgHLKOlS&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYCRdXmiMjM-UEQh20LD03hfvjlKKoS6YGlnhPsQiPXc8g&oe=6728F9CB",
98					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465008818_528742529926578_3205406010784926986_n.jpg?stp=dst-jpg_s600x600&_nc_cat=109&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=escNRR120F8Q7kNvgEdIOV8&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYCx7v155fBqlMnCdtFhDUTJzYjY6EmPMRqoLt8sXeGPGg&oe=6728C463",
99					"watermarked_resized_image_url": "",
100					"image_crops": []
101				},
102				{
103					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464806120_533003759501821_5569284613834806112_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=zkd1riI2LaoQ7kNvgGjE1ri&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBZoLIvKggK165JB2Ci3Er9RKl8Rb8h8XqgRXuUU1-5tA&oe=6728EC24",
104					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464872323_1619700361954386_5073584901534489003_n.jpg?stp=dst-jpg_s600x600&_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=OhSecq8NWNQQ7kNvgEoQYOJ&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYBWfDxw61jG1Rp1GURKOx5Www49t5y9YYan7sN4EIBU0Q&oe=6728EE5F",
105					"watermarked_resized_image_url": "",
106					"image_crops": []
107				},
108				{
109					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464969471_573459795215574_2712323577481054010_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=H_-neiLBDggQ7kNvgGfX7Vo&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYDWjkEmfNJvtDmDQpmBXnHv5lP-MuB3gwezsMiwcuwTFg&oe=6728ED02",
110					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464845538_449510084917406_1662700153295737614_n.jpg?stp=dst-jpg_s600x600&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=IVT5rc-gGEkQ7kNvgEduDpn&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYCgZZ3odwEqrmlIASw_86GW1ZuIg57dOE-PfXMg8C7W9Q&oe=6728E245",
111					"watermarked_resized_image_url": "",
112					"image_crops": []
113				},
114				{
115					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/465154076_896149279246640_6597417767553030917_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=91bbm_tNLAAQ7kNvgF32igz&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYDDb1jrIIPCQ2xGDi0nWFyegrsvon0_BhXi_ckybZwsUA&oe=6728D1BB",
116					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465170863_472708508507423_443624499509367397_n.jpg?stp=dst-jpg_s600x600&_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Z8Y1c4S_wx8Q7kNvgE-BHMk&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYD7ze4vHt5nC2zn_xiWpX5ZtOQFs9yntXB3x7MHo-nv9w&oe=6728E556",
117					"watermarked_resized_image_url": "",
118					"image_crops": []
119				},
120				{
121					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464956691_927283805931277_1565871344537340848_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=ynuHEMM28UIQ7kNvgEIgsoZ&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYCcxiAqzOufStZy2p8It_XvHdg_NWQ-GKr7sAMGxxFNgA&oe=6728C378",
122					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/465032603_1075774147341479_7474475397695077492_n.jpg?stp=dst-jpg_s600x600&_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=M4aiXA-TPFIQ7kNvgHhFnxU&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYAQZoDGw65E1nbAx9Uh_9WBOUDo6YvUgpzrdXCMKyKy_A&oe=6728CB3E",
123					"watermarked_resized_image_url": "",
124					"image_crops": []
125				},
126				{
127					"original_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/465239876_861400536208150_603694795788341519_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=DLSWyuEC8lcQ7kNvgF9iUyn&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYAR-81lAnTqLg95U_WTRQD1P_7MYu3nESpjMQHUA3gQwQ&oe=6728D1B1",
128					"resized_image_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464829520_952969853337149_4205198902646595697_n.jpg?stp=dst-jpg_s600x600&_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=3Yx18rDdXvAQ7kNvgHlOGEe&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYAs8byHN7Gg8IaaVGE0Kl3HcCs44-NeoAQr8aT-2nAZmA&oe=6728F6B4",
129					"watermarked_resized_image_url": "",
130					"image_crops": []
131				},
132				{
133					"original_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464769932_588367900282622_3217137094917755752_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=sLj8MRxs2OQQ7kNvgFd-zWy&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYC_ADecF7bWUJV55oMUzMlPUilv0om8RQmEEWaNQdD7fA&oe=6728E249",
134					"resized_image_url": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.35426-6/464837680_477490595327546_7717743317530044102_n.jpg?stp=dst-jpg_s600x600&_nc_cat=105&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=br4kZjYWGR4Q7kNvgEuxqF2&_nc_zt=14&_nc_ht=scontent-ams4-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYDWZgNcBvhOM6_UUmPElMgHK_5OHSm2WY3MsNiZWVsqvQ&oe=6728F721",
135					"watermarked_resized_image_url": "",
136					"image_crops": []
137				}
138			],
139			"is_reshared": false,
140			"link_description": null,
141			"link_url": "https://api.whatsapp.com/send",
142			"page_categories": [
143				"Beauty Salon"
144			],
145			"page_entity_type": "PERSON_PROFILE",
146			"page_id": "571062419989773",
147			"page_is_deleted": false,
148			"page_is_profile_page": false,
149			"page_like_count": 87467,
150			"page_name": "Debonair Men's Salon",
151			"page_profile_picture_url": "https://scontent-ams2-1.xx.fbcdn.net/v/t39.35426-6/464816251_1631108674113420_2479663649940565412_n.jpg?stp=dst-jpg_s60x60&_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=ktKTArH1pIAQ7kNvgEqsOoT&_nc_zt=14&_nc_ht=scontent-ams2-1.xx&_nc_gid=A9GxqoLSnszL9irL-2vwX_N&oh=00_AYB_04HbtuvhcUueG3GQ15HMGa_vT8XC4X2huPWmK8-7_w&oe=6728F897",
152			"page_profile_uri": "https://www.facebook.com/debonairmensalon/",
153			"root_reshared_post": null,
154			"title": null,
155			"videos": [],
156			"additional_info": null,
157			"ec_certificates": [],
158			"extra_images": [],
159			"extra_links": [],
160			"extra_texts": [],
161			"extra_videos": []
162		},
163		"spend": null,
164		"start_date": 1730271600,
165		"state_media_run_label": null,
166		"total_active_time": null
167	},
168    ...
169]
Developer
Maintained by Community
Actor metrics
  • 18 monthly users
  • 0 stars
  • 100.0% runs succeeded
  • Created in Oct 2024
  • Modified 13 days ago