Skip to content

Facebook Ad Library Scraper

Ads & market research

Export Facebook and Instagram ads from the Meta Ad Library, with creatives, landing pages and dates

Add keywords, Facebook page links, page IDs or Ad Library links, narrow them by country, status, platform or dates, and get one row per ad. Each row carries the advertiser, ad text, headline, landing page, button text, image and video links, platforms, start date and days running. Switch on details to add EU and UK reach, targeting and who paid for the ad.

  • Competitor ad research on Facebook and Instagram
  • Swipe files of long-running ad creatives
  • Tracking political ad spend and reach

Sample output

See what comes back

A real run recorded on Dec 3, 2026: 4 rows from the input in the Use it section.

Sample output of Facebook Ad Library Scraper
SearchLibrary IDPage IDAdvertiserPage likes
https://www.facebook.com/nike170293897710037615087023444Nike39489312
https://www.facebook.com/nike105767920706813315087023444Nike39489312
https://www.facebook.com/nike149553191834101115087023444Nike39489312
https://www.facebook.com/nike225519448860261315087023444Nike39489312
Inspect one full record
{
  "search": "https://www.facebook.com/nike",
  "adId": "1702938977100376",
  "adUrl": "https://www.facebook.com/ads/library/?id=1702938977100376",
  "pageId": "15087023444",
  "pageName": "Nike",
  "pageUrl": "https://facebook.com/nike",
  "pageProfilePictureUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431756959_712871054375981_2401799800446082357_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=oVPV9hM6m34Q7kNvwEM426b&_nc_oc=AdpqtG1kipv4MQPtverZTkeGHFUeYYqtXRRVSpKjL3lmt01bu_IsgIRTmtMEfa3_V2UoUjE6izy4We111qyOl36r&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00…",
  "pageLikes": 39489312,
  "pageCategories": [
    "Sportswear",
    "Product/service"
  ],
  "isActive": true,
  "startDate": "2025-04-07",
  "endDate": "2026-12-03",
  "daysActive": 605,
  "platforms": [
    "facebook",
    "instagram",
    "audience_network",
    "messenger"
  ],
  "format": "dpa",
  "text": "Bring sports more fully into your day with the Nike App.",
  "title": "Nike Dri-FIT Icon Men's Basketball Jersey",
  "linkDescription": null,
  "linkUrl": "http://itunes.apple.com/app/id1095459556",
  "displayUrl": "itunes.apple.com",
  "ctaText": "Install now",
  "ctaType": "INSTALL_MOBILE_APP",
  "images": [
    "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431718739_3499889103593675_2072398184202305018_n.jpg?_nc_cat=111&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=_ywxKQK1M7AQ7kNvwFhoGDm&_nc_oc=AdoYyitt8NFcbxYq7oD4nSHvEpzCVu1sSc7nCttykpp4nVcK6XWcu0CaT_XiY8ls1LYplJn8yjLw5IF9-_JedxSi&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWJE_Q1D0R6xNK0Vu31f…",
    "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431679131_949214166636263_7090981238489979310_n.jpg?_nc_cat=100&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=WSn9bxV4PsIQ7kNvwFc-ycA&_nc_oc=Ado0eFb9FGpLli_4RK6VWdEADQ_ClTqgsK8_qTT_AndYx-59qAqcNKHjnAcCoQaz5-T-Oxz6No6Fx9lrARHtdv-X&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWPrlHMS294zZllzhdMKb…",
    "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431631323_928727432024463_5606595664509361185_n.jpg?_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=xdqclYSae3kQ7kNvwHMesto&_nc_oc=AdqgUJ1MbDlaLM86CDhhs6O_rwWJ9zw3J0-jSyRisJx4yjSUyhbSkG2xjOgJrs8ZQo3U5AuoIJsV5Si82BL635iU&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQURMIgg1dMURkTQnuOrWj…",
    "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431748186_289316047369916_1595311644416959995_n.jpg?_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=A63j3yN2Md8Q7kNvwHT5pY2&_nc_oc=AdpcJcuV5GA8RYvyN4X9rjWwiSlGdK4bx4DW0dOn7FgBBwY1BW9neSgEJ8Ze5nHrqu4OWFu6DAlNFWuPnNmw_ZnQ&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWItMdx9I1vky62_-6uUb…",
    "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431644642_737508601479774_8272309847273720820_n.jpg?_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=j0cf_hAcpl4Q7kNvwENWG_v&_nc_oc=AdoCbPm_4uGsf-jSCEK_iCjFFVvGrYBR03UQLwGV2tJvj_nlimzC3tXfpoD-4Vbz1fuGDLFOj2zWcxb4OVvdeLkj&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQUISPmjHdaQwg3BG4g0wm…"
  ],
  "videos": [],
  "cards": [
    {
      "title": "Nike Dri-FIT Icon Men's Basketball Jersey",
      "text": "Bring sports more fully into your day with the Nike App.",
      "linkUrl": "https://www.nike.com/ph/t/dri-fit-icon-basketball-jersey-4Z5f8P/DV9968-010",
      "displayUrl": "itunes.apple.com",
      "ctaText": "Install Now",
      "imageUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431718739_3499889103593675_2072398184202305018_n.jpg?_nc_cat=111&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=_ywxKQK1M7AQ7kNvwFhoGDm&_nc_oc=AdoYyitt8NFcbxYq7oD4nSHvEpzCVu1sSc7nCttykpp4nVcK6XWcu0CaT_XiY8ls1LYplJn8yjLw5IF9-_JedxSi&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWJE_Q1D0R6xNK0Vu31f…",
      "videoUrl": null
    },
    {
      "title": "Nike Run Swift 3 Women's Road Running Shoes",
      "text": "Bring sports more fully into your day with the Nike App.",
      "linkUrl": "https://www.nike.com/ph/t/run-swift-3-road-running-shoes-2fHbzp/DR2698-002",
      "displayUrl": "itunes.apple.com",
      "ctaText": "Install Now",
      "imageUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431679131_949214166636263_7090981238489979310_n.jpg?_nc_cat=100&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=WSn9bxV4PsIQ7kNvwFc-ycA&_nc_oc=Ado0eFb9FGpLli_4RK6VWdEADQ_ClTqgsK8_qTT_AndYx-59qAqcNKHjnAcCoQaz5-T-Oxz6No6Fx9lrARHtdv-X&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWPrlHMS294zZllzhdMKb…",
      "videoUrl": null
    },
    {
      "title": "Nike Invincible 3 Women's Road Running Shoes",
      "text": "Bring sports more fully into your day with the Nike App.",
      "linkUrl": "https://www.nike.com/ph/t/invincible-3-road-running-shoes-LL61DX/DR2660-001",
      "displayUrl": "itunes.apple.com",
      "ctaText": "Install Now",
      "imageUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431631323_928727432024463_5606595664509361185_n.jpg?_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=xdqclYSae3kQ7kNvwHMesto&_nc_oc=AdqgUJ1MbDlaLM86CDhhs6O_rwWJ9zw3J0-jSyRisJx4yjSUyhbSkG2xjOgJrs8ZQo3U5AuoIJsV5Si82BL635iU&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQURMIgg1dMURkTQnuOrWj…",
      "videoUrl": null
    },
    {
      "title": "Nike ACG Polartec ® 'Wolf Tree' Women's Mid-Rise Trousers",
      "text": "Bring sports more fully into your day with the Nike App.",
      "linkUrl": "https://www.nike.com/ph/t/acg-polartec-wolf-tree-mid-rise-trousers-mVbQBn/CV0615-060",
      "displayUrl": "itunes.apple.com",
      "ctaText": "Install Now",
      "imageUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431748186_289316047369916_1595311644416959995_n.jpg?_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=A63j3yN2Md8Q7kNvwHT5pY2&_nc_oc=AdpcJcuV5GA8RYvyN4X9rjWwiSlGdK4bx4DW0dOn7FgBBwY1BW9neSgEJ8Ze5nHrqu4OWFu6DAlNFWuPnNmw_ZnQ&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQWItMdx9I1vky62_-6uUb…",
      "videoUrl": null
    },
    {
      "title": "Cosmic Unity 3 Basketball Shoes",
      "text": "Bring sports more fully into your day with the Nike App.",
      "linkUrl": "https://www.nike.com/ph/t/cosmic-unity-3-basketball-shoes-hcwmW0/DV2757-100",
      "displayUrl": "itunes.apple.com",
      "ctaText": "Install Now",
      "imageUrl": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.35426-6/431644642_737508601479774_8272309847273720820_n.jpg?_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=j0cf_hAcpl4Q7kNvwENWG_v&_nc_oc=AdoCbPm_4uGsf-jSCEK_iCjFFVvGrYBR03UQLwGV2tJvj_nlimzC3tXfpoD-4Vbz1fuGDLFOj2zWcxb4OVvdeLkj&_nc_zt=14&_nc_ht=scontent-phx1-1.xx&_nc_gid=5qcghejtq5MRs6Y8cTLYAg&_nc_ss=78389&oh=00_AQUISPmjHdaQwg3BG4g0wm…",
      "videoUrl": null
    }
  ],
  "variants": 1,
  "categories": [],
  "paidForBy": null,
  "spend": null,
  "impressions": null,
  "currency": null,
  "details": null
}

Use it

Run it from a console, code or agent

Start a run with this input, then read the results as JSON, CSV or Excel. Replace the input with your own.

curl -X POST "https://api.apify.com/v2/acts/vero-api~facebook-ad-library-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "searches": [
    "https://www.facebook.com/nike"
  ],
  "maxAdsPerSearch": 4
}'

Fields

Fields in every result

32 fields per ad. Empty fields are left out of a row.

  • searchstringThe keyword, page or link this ad was found with."running shoes"
  • adIdstringThe ad's ID in the Meta Ad Library."1702938977100376"
  • adUrlstringOpens the ad in the Meta Ad Library."https://www.facebook.com/ads/library/?id=1702938977100376"
  • pageIdstringThe advertiser's Facebook page ID."15087023444"
  • pageNamestringThe Facebook page that runs the ad."Nike"
  • pageUrlstringThe advertiser's Facebook page."https://facebook.com/nike"
  • pageProfilePictureUrlstringThe advertiser's profile picture."https://scontent.xx.fbcdn.net/v/t39.35426-6/431756959_n.jpg"
  • pageLikesintegerHow many people like the advertiser's page.39496914
  • pageCategoriesarrayThe advertiser's page categories.["Sportswear","Product/service"]
  • isActivebooleanWhether the ad is running right now.true
  • startDatestringThe day the ad started running."2026-04-07"
  • endDatestringThe day the ad stopped, or today for ads still running."2026-10-24"
Show all 32 fields
  • daysActiveintegerHow many days the ad has run. Long runners are usually the winners.201
  • platformsarrayWhere the ad runs: facebook, instagram, messenger, audience_network, threads, whatsapp.["facebook","instagram"]
  • formatstringimage, video, carousel, dco (dynamic creative), dpa (product catalog) or text."video"
  • textstringThe main text of the ad. For catalog and dynamic ads, the text of the first card, as the Ad Library shows it."Bring sports more fully into your day with the Nike App."
  • titlestringThe ad's headline. For catalog and dynamic ads, the first card's headline, such as the product name."Just Do It"
  • linkDescriptionstringThe line under the headline."Free delivery on orders over $50"
  • linkUrlstringWhere the ad sends people."https://www.nike.com/running"
  • displayUrlstringThe website shown on the ad."nike.com"
  • ctaTextstringThe ad's call-to-action button."Shop now"
  • ctaTypestringThe kind of call to action."SHOP_NOW"
  • imagesarrayFull-size links to every image in the ad, including each card of carousel and dynamic ads.["https://scontent.xx.fbcdn.net/v/t39.35426-6/431644642_n.jpg"]
  • videosarrayEvery video in the ad, in HD and SD, with its thumbnail.[{"hdUrl":"https://video.xx.fbcdn.net/v/t42.1790-2/439972868_n.mp4","sdUrl":"https://video.xx.fbcdn.net/v/t42.1790-2/419561341_n.mp4","thumbnailUrl":"https://scontent.xx.fbcdn.net/v/t39.35426-6/438223143_n.jpg"}]
  • cardsarrayEach card of a carousel, dynamic or catalog ad, with its own headline, product link and creative.[{"title":"Nike Invincible 3","text":"Our most cushioned shoe.","linkUrl":"https://www.nike.com/t/invincible-3","displayUrl":"nike.com","ctaText":"Shop Now","imageUrl":"https://scontent.xx.fbcdn.net/v/t39.35426-6/843143294_n.jpg","videoUrl":null}]
  • variantsintegerHow many versions of this ad the advertiser runs.3
  • categoriesarrayMeta's special ad categories: political, housing, employment, credit.["political"]
  • paidForBystringWho paid for a political or issue ad."Citizens for a Better Tomorrow"
  • spendstringAmount spent, for political and issue ads."$1K-$2K"
  • impressionsstringHow many times the ad was seen, for political and issue ads."100K-125K"
  • currencystringThe currency of the spend."USD"
  • detailsobjectFilled in when "Add reach, audience and advertiser details" is on. For ads shown in the EU or UK: totalReach (people reached there), reachByCountry (by country, age and gender) and the targeted age, gender and locations. For political and issue ads: audienceShareByAgeGender and reachShareByRegion (0-1 shares of the people reached), deliveryCountry, and pageSpend (the advertiser's total and weekly spend on such ads in the country you picked, in its currency, by who paid). Also who paid for the ad (payers) and the advertiser's Instagram account, followers, verification and About text. Lists are empty and values null when Meta publishes nothing for the ad.{"totalReach":50171,"targetAgeMin":21,"targetAgeMax":65,"targetGender":"All","targetLocations":[{"name":"Germany","type":"countries","excluded":false}],"reachByCountry":[{"country":"DE","ageRange":"25-34","male":1073,"female":938,"unknown":2}],"audienceShareByAgeGender":[],"reachShareByRegion":[],"deliveryCountry":null,"pageSpend":null,"payers":[{"payer":"Nike Europe B.V.","beneficiary":"Nike Europe B.V."}],"pageVerification":"BLUE_VERIFIED","pageInstagramUsername":"nike","pageInstagramFollowers":297000000,"pageAbout":"Just Do It."}

Pay per result

Pricing

It costs $0.40 per 1,000 ads on Apify's Free plan and drops to $0.32 on the Business plan. Apify plans lower the price per result as your plan grows.

  • 1,000 ads

    Charged once for each ad returned to the dataset.

    Free
    $0.40
    Starter
    $0.40
    Scale
    $0.36
    Business
    $0.32
  • Ad with details

    Charged once for each ad returned with EU reach, audience and advertiser details, when details are switched on.

    Free
    $0.70
    Starter
    $0.70
    Scale
    $0.63
    Business
    $0.56

Prices from the Apify Store on Dec 3, 2026. Compare every actor's price.

FAQ

Questions

Works best with

A brand's Facebook page link or a focused keyword, paired with a country. Paste an Ad Library link to reuse the exact filters you already set on the site.

How much does the Facebook Ad Library scraper cost?

It costs $0.40 per 1,000 ads on Apify's Free plan and drops to $0.32 on the Business plan. You pay only for the ads that land in your dataset, and an ad found by two of your searches is delivered and charged once.

What can I search with?

A keyword like running shoes, a Facebook page link, a page ID, an ad's Library ID or any Ad Library link, including a link to a single ad. Ad Library links keep every filter you set on the site, and you can mix all of these in one run.

Do I get the ad images and videos?

Yes. Every ad comes with full-size image links and its videos in HD and SD with thumbnails. Carousel, dynamic and catalog ads also list each card with its own headline, product link and creative.

Can I see how many people an ad reached?

Yes. Switch on details, an optional add-on billed per ad, to get reach by country, age and gender for ads shown in the EU or UK, plus the targeted audience, who paid and the advertiser's Instagram account. For political and issue ads you also see the age, gender and region split of the people reached, on top of their spend and impressions.

Can I track a competitor's new ads every week?

Yes. Schedule a run with the ran on or after date set to a span like 7 days, sort by newest, and each run brings back the latest ads. Download them as JSON, CSV or Excel, or send them to Google Sheets.

Keep exploring

All actors