Facebook Ads Library Scraper: ads and advertisers

A facebook ads library scraper: search public ads by keyword and country, collect the ads of one advertiser, look up a single ad, and get ad transcripts. Export JSON, CSV or Excel.

$3.33per 1,000 ads on paid plans, $5.65 on the free plan

Open in Apify Store (opens in a new tab)
Collects
Ads, Profiles, Transcripts
Modes
5

Overview

The public ad library shows the ads that pages run, but its screen is built for browsing one ad at a time. This tool is for marketers, agencies and analysts who want the same information as rows they can sort, filter and keep.

Five ways in

You choose one mode per run. Ad search takes keywords and an optional country code. Companies turns a brand name into the advertiser page id. Company ads takes those page ids and lists what each advertiser runs. Ad details and Ad transcript both work from an ad id: the first gives the full ad, the second returns the words spoken in a video ad.

What a row holds

An ad comes back with the advertiser name, the ad text, the call-to-action label, the landing page when there is one, start and end dates, an active flag and links to its images or video. Advertiser rows carry the page name, link, picture and a verified badge. Transcript rows carry the text and the id of the ad it came from.

Running it on Apify

Paste your keywords or ids, set how many results you want per target, and start the run. The rows land in an Apify dataset that you download as JSON, CSV or Excel. The free plan returns up to 10 results per run, which is enough to check the columns before you widen the list.

What it collects, in 5 modes

Company ads

Collects the public ads of each advertiser page.

$3.33 per 1,000 adsAbout $5.65 per 1,000 ads on Apify's free plan, from $3.33 per 1,000 on paid plans.

InputTypeExample
Advertiser page ids requiredNumeric ids of advertiser pages, like 15087023444. Find them with the Companies mode.List15087023444
Max itemsMaximum number of results to collect.Number20
Sample output: Company ads
{
  "advertiser": {
    "id": "15087023444",
    "name": "Nike"
  },
  "collectedAt": "2026-11-11T04:31:21Z",
  "ctaText": "Install now",
  "details": null,
  "endedAt": "2026-11-10T08:00:00Z",
  "id": "1702938977100376",
  "input": {
    "maxItems": 20,
    "pageId": "15087023444"
  },
  "isActive": true,
  "landingUrl": null,
  "media": [
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431734766_930233981755195_3984431312184472988_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=64M1wnEooIQQ7kNvwFLLFeH&_nc_oc=Ado0ay5hE0FhXiwvRUL5KLPcOz6iHGxMVFm2W__NFQIiF3xh6nckwbgY2N3IakjyW9c&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQSN0gJxguoGsGiVpO123KT2MqXUYRIVLrULUjGLEXCgVg&oe=6AF9D0AB"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.35426-6/431679131_949214166636263_7090981238489979310_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=TdB4dgR1J-QQ7kNvwE3V22P&_nc_oc=Adoyj950njbYoLkliByhI4Pib--NHpT0Qr4KR4UvHShqfdViOmzMx2GUpd5A9vIfuI4&_nc_zt=14&_nc_ht=scontent-lga3-2.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQQDr7MiXuoP_LBGG6HL8jCq3exgE9Des82xqQAk27Q96A&oe=6AF9CA91"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.35426-6/431718739_3499889103593675_2072398184202305018_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=EVFY-oYhOWwQ7kNvwFy1NZS&_nc_oc=AdpaST48oLaX-UNxu7KkYv7XJ5Jug-GerMh2SreEKuMOyS107DDnbFaw_CjA0ynynAg&_nc_zt=14&_nc_ht=scontent-lga3-1.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQSY-5R4kwyqDoDoIvyf2ExnDTvrUmEuosWYiQTrdjvckg&oe=6AF9AB42"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431748186_289316047369916_1595311644416959995_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=7jBzNbtJzZQQ7kNvwFoc2W-&_nc_oc=Adr5K3nWRxNSZOJUtk4EpEMSpDaWowPiSd8AoFOuPq6iC1D0_sgwu1k7WYDDlh8e2FE&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQTKMsXovITtCMI5yWviFF_c5w3qZMoN4R5SSR2APDJy9w&oe=6AF9BD1F"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431644642_737508601479774_8272309847273720820_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=8CEYXYDY3RkQ7kNvwEBbvY7&_nc_oc=AdpOOj571OGrAaZCNQymn1fVVAlcAlwQ8Deu7XeP9pMBN2P56Yb_WtclrqxJ5V4IgKg&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQTg7XhvewTd4J9fMb3CNoo5viBEE6F5cM5EfcASvX1ReA&oe=6AF9B543"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.35426-6/431631323_928727432024463_5606595664509361185_n.jpg?_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=nX44MCFkcBoQ7kNvwHqaAi8&_nc_oc=AdrowBIysdUyyrYSxESDxnDfA1kiX-WAw2y0Enp1My23Vf9lNCw484hmu0VsloTGPzk&_nc_zt=14&_nc_ht=scontent-lga3-1.xx&_nc_gid=jgOVq0C54-nCSgL-cWzQlg&_nc_ss=78180&oh=00_AQSFv487hq-IQCSPcQd7hKF19retNS--4umMsAaBKO9RIw&oe=6AF9D0E7"
    }
  ],
  "platform": "facebook",
  "startedAt": "2025-04-07T07:00:00Z",
  "status": "ok",
  "text": "Bring sports more fully into your day with the Nike App.",
  "type": "ad",
  "url": "https://www.facebook.com/ads/library/?id=1702938977100376"
}

Companies

Finds advertiser pages in the ad library by name.

$3.33 per 1,000 profilesAbout $5.65 per 1,000 profiles on Apify's free plan, from $3.33 per 1,000 on paid plans.

InputTypeExample
Keywords requiredWords to search ads or advertisers for, like nike.Listnike, nasa
Max itemsMaximum number of results to collect.Number20
Sample output: Companies
{
  "avatarUrl": "https://scontent-sea5-2.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=1&ccb=1-7&_nc_sid=418b77&_nc_ohc=hDLugZFy-CMQ7kNvwH8wePc&_nc_oc=AdoTOVb8_FNwloeS4jAZfp66coyBP4qa9h5rJRHdc2f3mfGH8XKpJDoCcJ64vCMMevw&_nc_zt=24&_nc_ht=scontent-sea5-2.xx&_nc_gid=bDZ48hKXUVFkxQVnKzK7rw&_nc_ss=70289&oh=00_AQTAv971sXNHhYWEJELm7x2yuvY13OHfrw2tFWRec2sqZA&oe=6AF9B570",
  "collectedAt": "2026-11-11T05:06:17Z",
  "details": {
    "facebook": {
      "category": "Sportswear Store",
      "instagramFollowers": 290801313,
      "instagramUsername": "nike",
      "likes": 39488819
    }
  },
  "displayName": "Nike",
  "id": "15087023444",
  "input": {
    "keyword": "nike",
    "maxItems": 100
  },
  "platform": "facebook",
  "status": "ok",
  "type": "profile",
  "url": "https://www.facebook.com/nike",
  "username": "nike",
  "verified": true
}

Ad details

Looks up one ad by its id.

$3.33 per 1,000 adsAbout $5.65 per 1,000 ads on Apify's free plan, from $3.33 per 1,000 on paid plans.

InputTypeExample
Ad ids requiredNumeric ids of ads in the ad library, like 1702938977100376.List1702938977100376
Max itemsMaximum number of results to collect.Number1
Sample output: Ad details
{
  "advertiser": {
    "id": "15087023444",
    "name": "Nike"
  },
  "collectedAt": "2026-11-11T04:31:48Z",
  "ctaText": "Install now",
  "details": null,
  "endedAt": "2026-11-10T08:00:00Z",
  "id": "1702938977100376",
  "input": {
    "adId": "1702938977100376",
    "maxItems": 1
  },
  "isActive": true,
  "landingUrl": null,
  "media": [
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431734766_930233981755195_3984431312184472988_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=64M1wnEooIQQ7kNvwFSowA9&_nc_oc=Adqr97b8biEL7Yym4SNnL24OmvrSyi6JfHcTMz3sE4_l6ciSaJ_Z8OwUmQyuU72Xd00&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQT9FVFc_5d4JikLUE4jwXw3Bz5vkHvAkqblrCtUK_idXA&oe=6AF9D0AB"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.35426-6/431631323_928727432024463_5606595664509361185_n.jpg?_nc_cat=103&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=nX44MCFkcBoQ7kNvwHAJU5W&_nc_oc=Adq9873j1Fac9jeK5OQKR3fwSg9EEkR_hNxAs1eqf3rJ4Grgq74O9B4jobljQzRvoq0&_nc_zt=14&_nc_ht=scontent-lga3-1.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQR0YAioS5a52TfD6hXKR0BnF6Tym2I5fT0yZP4n_l4PJA&oe=6AF9D0E7"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.35426-6/431718739_3499889103593675_2072398184202305018_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=EVFY-oYhOWwQ7kNvwE_q4-5&_nc_oc=AdqI_glLixGkUQIGrLnp-n0yU_zgftY0vNjPvSXbFFyr3s4o2oipSX2nE5QIfU52-J4&_nc_zt=14&_nc_ht=scontent-lga3-1.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQSd4ErenP-KkR8DkQSZXQlgPPjiuc-v-rqGp3KkasbKJA&oe=6AF9AB42"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431748186_289316047369916_1595311644416959995_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=7jBzNbtJzZQQ7kNvwHB83ay&_nc_oc=AdoaXJpObeU5hH6NGafC5Emuvy1ZW9oTszMDu5Dphocj0GTHo8I0d79k2d2ADdGsewQ&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQSNoOD9PiLv0BlVW723OJmv0mc-62aDnTxpzv7Nsw0weA&oe=6AF9BD1F"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/431644642_737508601479774_8272309847273720820_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=8CEYXYDY3RkQ7kNvwGRWrGp&_nc_oc=Ado49E3hcVEeH7h0U3gD2rLVkRmPRhfY_1W65wGIFXlGFRdCQArjFxNXQBS82cLG6o4&_nc_zt=14&_nc_ht=scontent-lga3-3.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQQ3b-S8N3mJzxjfzBXt8JyISqhBzHRe6grs9Uu_7T--0Q&oe=6AF9B543"
    },
    {
      "kind": "image",
      "url": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.35426-6/431679131_949214166636263_7090981238489979310_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=TdB4dgR1J-QQ7kNvwFpbicZ&_nc_oc=AdrIZmf_pZB6cVu7re-zYqiwj-vfBnh93jehnLtmn1M06QJ2aioXqYEOuL6aJzgwANk&_nc_zt=14&_nc_ht=scontent-lga3-2.xx&_nc_gid=mjLZgzAsQErH8yxnxGQEMw&_nc_ss=78180&oh=00_AQR--D3-UsSYw4eWtVYNIJzk2-wD_X0ZuQbkwJWuil6NIg&oe=6AF9CA91"
    }
  ],
  "platform": "facebook",
  "startedAt": "2025-04-07T07:00:00Z",
  "status": "ok",
  "text": "Bring sports more fully into your day with the Nike App.",
  "type": "ad",
  "url": "https://www.facebook.com/ads/library/?id=1702938977100376"
}

Ad transcript

Returns the spoken text of a video ad by its id.

$3.33 per 1,000 transcriptsAbout $5.65 per 1,000 transcripts on Apify's free plan, from $3.33 per 1,000 on paid plans.

InputTypeExample
Ad ids requiredNumeric ids of ads in the ad library, like 1702938977100376.List1702938977100376
Max itemsMaximum number of results to collect.Number1
Sample output: Ad transcript
{
  "collectedAt": "2026-11-11T04:32:44Z",
  "details": null,
  "id": "974466855339122",
  "input": {
    "adId": "974466855339122",
    "maxItems": 1
  },
  "platform": "facebook",
  "sourceId": "974466855339122",
  "status": "ok",
  "text": "What kind of AI magic is this? Grammarly's AI keyboard is the most powerful writing tool I've ever used on my phone. It works across all your apps with built-in AI that catches mistakes as you type, which means no more switching between apps or copying and pasting. I drafted three client emails during my coffee break without a single typo, and my favorite, the AI rewrite feature that transforms my jumbled thoughts into perfect messages. Look at this, I wrote this rambling message to my boss, tapped, \"make it professional,\" and boom, clear, concise, and perfectly professional in seconds. That promotion? Yeah, this keyboard is basically writing it for me. Download the Grammarly AI keyboard right now. It's free and works with every app on your phone.",
  "type": "transcript",
  "url": "https://www.facebook.com/ads/library/?id=974466855339122"
}

Pricing

You pay per result, through your Apify account. Apify's free plan allows up to 10 items per run and 20 runs per day. The Store page always shows the current price.

See the current price in Apify Store (opens in a new tab)

What people use it for

Questions

Can I see ads that have stopped running?

Each ad row has a start date, an end date and an isActive flag, so you can sort live ads from finished ones. What the library still shows for old ads is up to the library itself.

Does a search cover every country at once?

Yes, when you leave Country empty. Fill in a two-letter code such as US or DE to limit Ad search to ads that ran there.

Which mode should I run first?

Start with Companies if you know the brand name, or Ad search if you only know the topic. Both return the ids that the Company ads, Ad details and Ad transcript modes need.

All Facebook tools

Facebook Ads Scraper from $3.33 / 1,000Open in Store (opens in a new tab)