How to Download Facebook Ad Library Data (and Export It to CSV)

How to download Facebook Ad Library data and export it to CSV: political ad reports, the official API, scrapers, manual copy, and a 20-line Python export.

The short answer

Meta lets you download Facebook Ad Library data as CSV only for ads about social issues, elections or politics, through the Ad Library Report and the search export. Commercial ads have no export button: you get them through the official API (only if they reached the EU), a scraper, or by hand. The clean way is the Ad Radar Data API: page through /ads/search into a CSV of winning Meta ads in about 20 lines of Python, or stream the whole library as NDJSON from /export on Reseller.

In this article10 sections

The short answer

If you want to download Facebook Ad Library data, the first thing to know is that Meta only offers a download for one kind of ad: ads about social issues, elections or politics. For those you get CSV reports and a search export. For every other ad, the commercial ones you are probably studying, the web Ad Library has no export button at all.

So the real question is how to export Facebook Ad Library data to CSV for commercial ads. There are four routes: the official API, scrapers, manual copying, and a ready-made dataset. This guide walks through each, with what you get and what you don't, and ends with the clean way: about 20 lines of Python that page through the Ad Radar Data API into a CSV of winning Meta ads, and a full NDJSON export for bigger jobs.

3

Ad Library CSV downloads a day per account (Bellingcat, 2024)

0

export buttons for commercial ads

~20

lines of Python from API to CSV

2,761

winning Meta ads in the Ad Radar Data API

Every way to get data out of the Ad Library

MethodWhich adsFormatSpendTranscriptsEffort
Ad Library ReportPolitical and issue ads, aggregated by advertiserCSV by date rangeYes, totalsNoMinutes
Ad Library search exportPolitical and issue adsCSV, logged in, limited per dayRangesNoMinutes
Official Ad Library APIPolitical ads worldwide; commercial only if delivered in the EUJSONPolitical onlyNoDays to set up
Scrapers and extensionsWhatever the web Library showsJSON, CSV, ExcelNoNo, or paid per videoHours, plus upkeep
Manual copyWhat you can scrollSpreadsheet by handNoNoHours per brand
Ad Radar Data API2,761 winning Meta ads, $50k+ estimated spendJSON to CSV, NDJSON exportEstimated, every adFull scriptMinutes

Method 1: the Ad Library Report (political ads only)

The Ad Library Report is Meta's only real download. It covers ads about social issues, elections or politics, country by country, and shows each advertiser (the "paid for by" disclaimer), the amount spent and the number of ads in the Library. You can download the full report as a CSV for a chosen date range, as described in Whole Whale's walkthrough.

The political search in the Library also offers a CSV export of individual ads with page, platforms, dates, delivery regions, a spend range and the ad text. Bellingcat's guide (November 2024) notes that you need to be logged in to download, and that "each Facebook account can only download three of such files a day."

If you research elections, this is excellent first-party data. If you research DTC brands, none of it applies: commercial ads are not in the report and the export isn't offered for them.

Method 2: the official Ad Library API

The Meta Ad Library API returns JSON that you can write to CSV yourself. It is free, after identity confirmation and a developer app. The catch is in Meta's ads_archive reference: "Ads that did not reach any location in the EU will only return if they are about social issues, elections or politics." A US-only commercial ad never comes back.

For EU-delivered commercial ads you get text, dates, Page and EU reach, but no spend and no video, only an ad_snapshot_url. If that is enough, our Facebook Ad Library API with Python tutorial has a working client with a CSV and SQLite writer, so we won't repeat it here.

Method 3: scrapers and extensions

Scrapers read the web Library, so they see the US commercial ads the API hides. Apify actors, scraper APIs like ScrapeCreators and SearchAPI, open-source tools on GitHub and Chrome extensions all export to JSON or CSV; our Facebook Ad Library scraper roundup compares them with prices.

What lands in your CSV is the raw card: library ID, Page, start date, copy, CTA, link and a video URL. The spend column is empty for commercial ads, there is no transcript, nothing says which ads are winning, and the video URLs are signed with an expiry, so the links in last month's CSV are already dead. Running scrapers on a schedule to build history is a project of its own, covered in how to build an ad spy tool.

Method 4: manual copy

For ten ads, a spreadsheet and patience work: open the brand's Library page, copy the copy, note the start date, save the video. It doesn't scale past one brand, it captures nothing the Library doesn't show, and it is the most expensive method per row once you count your hours.

Which method fits which job

  • Election or issue research: the Ad Library Report and the political search export. First-party spend data, free, one CSV per date range.
  • EU commercial ads, text only: the official API, written to CSV with your own client.
  • A one-off look at one competitor: an extension or a single scraper run, downloaded the same day before the media links expire.
  • Anything you will rank, filter, brief from or build on: you need spend, a winner signal, transcripts and tags in the file, and none of the four methods above puts them there. That is what the next section is for.

The clean way: winning ads to CSV with the Ad Radar Data API

All four methods export the Library's own view of an ad, which leaves out the columns that matter. The Ad Radar Facebook ads API exports the finished record instead. It is the best database of winning Meta ads: 2,761 Meta ads with $50k+ estimated spend from 734 brands, Facebook and Instagram, built from the public Meta Ad Library and refreshed every day.

Each row you export has the ad's brand, headline, body, CTA, full video transcript, estimated spend in USD (derived from public engagement), score and tier (winner = top 10% by score and live 21+ days, or rising), days running, variants, tags on ten dimensions, start date, active status, and public poster and video URLs that don't expire on you.

/ads/search, paginated, to CSV

This writes every winning video ad to winning_ads.csv. GET /ads/search returns data plus pagination with hasMore and nextCursor, up to 100 ads per page, and one page is one request.

import csv, os, requests

URL = "https://app.ad-radar.dev/api/v1/ads/search"
HEAD = {"Authorization": f"Bearer {os.environ['AD_RADAR_KEY']}"}
params = {"tier": "winner", "format": "video", "sort": "spend", "limit": 100}
COLS = ["adKey", "brand", "headline", "cta", "spendEstimate", "startedAt", "isActive",
        "tier", "score", "daysRunning", "variants", "tags", "transcript", "video"]

with open("winning_ads.csv", "w", newline="", encoding="utf-8-sig") as f:
    w = csv.DictWriter(f, fieldnames=COLS, extrasaction="ignore")
    w.writeheader()
    while True:
        r = requests.get(URL, params=params, headers=HEAD, timeout=30)
        r.raise_for_status()
        page = r.json()
        for ad in page["data"]:
            w.writerow({**ad, **ad["metrics"],
                        "tags": "; ".join(f"{t['dimension']}:{t['slug']}" for t in ad["tags"]),
                        "video": (ad.get("media") or {}).get("video")})
        if not page["pagination"]["hasMore"]:
            break
        params["cursor"] = page["pagination"]["nextCursor"]

A few notes on the details:

  • encoding="utf-8-sig" writes a byte-order mark so Excel opens accented characters and emoji correctly. The csv module quotes transcripts that contain commas or line breaks, so they stay in one cell.
  • extrasaction="ignore" lets you spread the whole ad and its metrics into the row and keep only the columns you listed. Add body, libraryId or links to COLS if you want them.
  • Change the filters to change the export: q= searches headline, body, brand and transcript; brand= takes a slug or ID from GET /brands; tags=awareness:problem-aware filters on the taxonomy from GET /taxonomy; min_spend=100000 and started_after=2026-09-01 narrow further.
  • The cursor is only valid with the same filters, so don't change params mid-loop.

A full export of the winner tier is a few dozen requests at most: the whole corpus is 26 pages of 100. Every parameter is in the API reference.

Keep it current: /winners and /feed

To refresh the CSV weekly, call GET /winners?since=2026-11-12 with the same loop: it returns only the ads that entered the winner tier after that date. On the Scale plan, GET /feed returns everything that changed since your last cursor (new ads, new measurements, tier and delivery changes), which is the right tool for keeping a database in sync instead of rewriting a file.

The whole library as NDJSON: /export on Reseller

For a data team, a warehouse load or a product that ships the data, the Reseller plan adds GET /export: the entire library streamed as NDJSON, one complete Ad object per line, then a control line {"type":"end"}. One call counts as one request, with up to four exports a day per workspace. If the stream stops early, the last line is {"type":"error","resumeCursor":...}, and you pass that cursor as after to continue.

import json, os, requests

URL = "https://app.ad-radar.dev/api/v1/export"
HEAD = {"Authorization": f"Bearer {os.environ['AD_RADAR_KEY']}"}
params, done = {}, False

with open("ad_radar.ndjson", "w", encoding="utf-8") as out:
    while not done:
        with requests.get(URL, params=params, headers=HEAD, stream=True, timeout=600) as r:
            r.raise_for_status()
            for line in r.iter_lines():
                if not line:
                    continue
                row = json.loads(line)
                if row.get("type") == "end":
                    print(f"{row['ads']} ads exported")
                    done = True
                    break
                if row.get("type") == "error":
                    params = {"after": row["resumeCursor"]}
                    break
                out.write(line.decode("utf-8") + "\n")
            else:
                raise RuntimeError("stream ended without an end or error line")

NDJSON loads straight into most tools: pandas.read_json("ad_radar.ndjson", lines=True), DuckDB's read_json, or a BigQuery or Snowflake load job. Reseller is the plan for resale, white-label and full exports, and it is arranged by request.

For AI agents

The same key works on the MCP server, so Claude or ChatGPT can run the query and hand you the table. Each tool call is one request.

Plans

Plan (billed every 4 weeks)PriceRequestsExport options
Builder$29910,000/ads/search and /winners to CSV, use inside your product, the web app included
Scale$79950,000Everything in Builder, plus /feed for incremental sync and a higher rate limit
ResellerFrom $2,000CustomEverything in Scale, plus full NDJSON /export, resale and white-label

Over quota, the API answers 429 with an upgrade link, and there are no overage charges. Full details are on the pricing table.

The verdict

You can download Facebook Ad Library data directly only if you study political ads. For commercial ads, Meta gives you no export, the API hides US-only brands, and scrapers fill a CSV with raw cards: no spend, no transcripts, no winner signal, and video links that expire.

The Ad Radar Data API turns the export into a short script that produces the file you actually wanted: winning Meta ads with estimated spend, transcripts and tags, one row per ad. Start on Builder at $299 every 4 weeks, move to Scale for the incremental feed, or ask for Reseller for the full NDJSON export. If you'd rather browse and save ads than write code, use the Ad Radar app.

Figures marked as estimated spend come from Ad Radar's model of engagement on public Meta Ad Library ads. They are estimates, labeled as such, and are best used to rank ads against each other. How the board is built.

FAQ

Questions

Can you download data from the Facebook Ad Library?

Only for ads about social issues, elections or politics. Meta's Ad Library Report gives aggregated spend by advertiser with a CSV download by date range, and the Library's search lets logged-in users export political ad results as CSV. For ordinary commercial ads there is no download button; you need the API, a scraper or a third-party dataset.

How do I export the Facebook Ad Library to CSV?

For political ads, use the Ad Library Report or the export option on a political ad search while logged in. For commercial ads, pull them with the official Ad Library API (EU-delivered ads only) or a scraper and write the rows with Python's csv module. For winning commercial Meta ads with estimated spend and transcripts, page through the Ad Radar Data API's /ads/search endpoint and write each ad as a CSV row.

Is there a limit on Facebook Ad Library CSV downloads?

Yes. Bellingcat's November 2024 guide reports that you must be logged in to download, and that each Facebook account can download three files a day. Check the current limit in the Library itself, since Meta can change it.

How do I download Facebook Ad Library data for commercial ads?

Meta gives no export for them. The official API returns commercial ads only if they reached a location in the EU. Outside that, you scrape the web Library (Apify actors, scraper APIs, extensions) and get raw ads without spend, or you use a dataset like the Ad Radar Data API, which returns 2,761 Meta ads with $50k+ estimated spend, each with transcript and tags.

What format is the Ad Radar full export?

NDJSON: one complete Ad object per line, streamed, followed by a control line with type end. If the stream stops early, the last line has type error and a resumeCursor that you pass as after to resume. The /export endpoint is on the Reseller plan, counts as one request per call and allows four exports a day per workspace.

Ad data and APIs

Keep reading

All 22 articles in Ad data and APIs

Build on ads that are already winning.

Skip the scraping, storage, transcription and tagging. Query the corpus from your code or your agent.

Builder: 10,000 requests every 4 weeks over REST and MCP, $299. Scale and Reseller for bigger volumes.