Facebook Ads Library Scraper

Facebook Ads Library Scraper

by easyapi

Ever wonder what Facebook ads your competitors are running right now? This scraper pulls back the curtain, giving you direct access to Facebook's publ...

26,091 runs
1,151 users
Try This Actor

Opens on Apify.com

About Facebook Ads Library Scraper

Ever wonder what Facebook ads your competitors are running right now? This scraper pulls back the curtain, giving you direct access to Facebook's public Ads Library. I use it to download detailed info on live ads—you get the actual ad creative, images or videos, the targeting parameters Facebook allows them to share, and performance data like impressions. It’s become my go-to for practical market research. You can track ad strategies across any industry, see how brands are positioning themselves in different countries, and spot new trends before they go mainstream. Whether you're in e-commerce, agencies, or just doing competitor analysis, having this raw ad intelligence is a game-changer. The tool handles all countries and ad categories, and it’s built to navigate Facebook’s restrictions reliably. You can gather data at scale without getting blocked, which is the whole point. If you need to understand the Facebook ad ecosystem beyond your own account, this is how you do it.

What does this actor do?

Facebook Ads Library Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

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. { "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", "maxItems": 20 } ### 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. [ { "ad_archive_id": "3804712299743449", "ad_id": null, "archive_types": [], "categories": [ "UNKNOWN" ], "collation_count": 1, "collation_id": "1478322286215387", "contains_digital_created_media": false, "contains_sensitive_content": false, "currency": "", "end_date": 1730271600, "entity_type": "PERSON_PROFILE", "fev_info": null, "finserv_ad_data": { "is_deemed_finserv": false, "is_limited_delivery": false }, "gated_type": "ELIGIBLE", "has_user_reported": false, "hidden_safety_data": false, "hide_data_status": "NONE", "impressions_with_index": { "impressions_text": null, "impressions_index": -1 }, "is_aaa_eligible": false, "is_active": true, "is_profile_page": false, "menu_items": [], "page_id": "571062419989773", "page_is_deleted": false, "page_name": "Debonair Men's Salon", "political_countries": [], "publisher_platform": [ "FACEBOOK", "INSTAGRAM" ], "reach_estimate": null, "report_count": null, "snapshot": { "body": { "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" }, "branded_content": null, "brazil_tax_id": null, "byline": null, "caption": null, "cards": [], "cta_text": "Send WhatsApp message", "cta_type": "WHATSAPP_MESSAGE", "country_iso_code": null, "current_page_name": "Debonair Men's Salon", "disclaimer_label": null, "display_format": "MULTI_IMAGES", "event": null, "images": [ { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] }, { "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", "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", "watermarked_resized_image_url": "", "image_crops": [] } ], "is_reshared": false, "link_description": null, "link_url": "https://api.whatsapp.com/send", "page_categories": [ "Beauty Salon" ], "page_entity_type": "PERSON_PROFILE", "page_id": "571062419989773", "page_is_deleted": false, "page_is_profile_page": false, "page_like_count": 87467, "page_name": "Debonair Men's Salon", "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", "page_profile_uri": "https://www.facebook.com/debonairmensalon/", "root_reshared_post": null, "title": null, "videos": [], "additional_info": null, "ec_certificates": [], "extra_images": [], "extra_links": [], "extra_texts": [], "extra_videos": [] }, "spend": null, "start_date": 1730271600, "state_media_run_label": null, "total_active_time": null }, ... ]

Categories

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Facebook Ads Library Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
easyapi
Pricing
Paid
Total Runs
26,091
Active Users
1,151
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support