# Meta Ad Library API reference

> The Meta Ad Library API searches the archive of ads shown on Meta technologies. Each ad comes back with its Page, creative text, delivery dates, a snapshot URL and platforms. Political and issue ads add the funding byline, spend, impressions and audience breakdowns; UK and EU ads add targeting and…

Source: https://osinttools.io/apis/meta-ad-library/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/meta-ad-library/

- Base URL: https://graph.facebook.com
- Authentication: API key in the `access_token` query parameter. OAuth 2.0 access token
- Rate limits: Not stated in the docs
- Vendor docs: https://developers.facebook.com/docs/graph-api/reference/ads_archive/

## Overview

The Meta Ad Library API searches the archive of ads shown on Meta technologies. Each ad comes back with its Page, creative text, delivery dates, a snapshot URL and platforms. Political and issue ads add the funding byline, spend, impressions and audience breakdowns; UK and EU ads add targeting and reach fields.

There is one endpoint, `GET https://graph.facebook.com/<VERSION>/ads_archive`, with an `access_token` query parameter. The reference page does not say which permissions or verification the token needs; read Meta's Ad Library API pages before applying.

Results are in `data`, with `paging` for the next page. An empty `data` array while paginating means the results have ended. Errors include 100 (invalid parameter), 190 (invalid token), 613 (rate limit exceeded) and 1009 (failed validation).

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Error codes 100 (invalid parameter), 1009 (failed parameter validation) and 2500 (error parsing graph query) |
| 401 | Error code 190: invalid OAuth 2.0 access token |
| 429 | Error code 613: rate limit exceeded |

## Ad archive

### Search archived Meta ads by keyword, Page, country, date, platform and ad type.

`GET /{version}/ads_archive`

- Takes: Name
- Footprint: passive (the target is not contacted)

Read only. political and issue ads (ad_type POLITICAL_AND_ISSUE_ADS) accept extra filters (bylines, delivery_by_region, estimated audience size) and return spend, impressions and audience fields. Reach and targeting fields exist only for UK and EU ads or Brazil political ads.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `version` | path | string | yes | Graph API version Example: v24.0 |
| `ad_type` | query | string | yes | Kind of ads to search Example: ALL One of: ALL, EMPLOYMENT_ADS, FINANCIAL_PRODUCTS_AND_SERVICES_ADS, HOUSING_ADS, POLITICAL_AND_ISSUE_ADS |
| `search_terms` | query | string | no | Search text, up to 100 characters Example: example brand |
| `search_type` | query | string | no | How search_terms is matched Example: KEYWORD_UNORDERED One of: KEYWORD_UNORDERED, KEYWORD_EXACT_PHRASE |
| `search_page_ids` | query | string | no | Up to 10 Page IDs Example: 1000000000000 |
| `ad_reached_countries` | query | string | no | ISO country codes, or ALL Example: US |
| `ad_active_status` | query | string | no | Which ads to return by delivery status Example: ALL One of: ACTIVE, INACTIVE, ALL |
| `ad_delivery_date_min` | query | string | no | Earliest delivery date, YYYY-mm-dd, inclusive Example: 2026-01-01 |
| `ad_delivery_date_max` | query | string | no | Latest delivery date, YYYY-mm-dd, inclusive Example: 2026-06-30 |
| `media_type` | query | string | no | Media type of the ad Example: IMAGE One of: ALL, IMAGE, MEME, VIDEO, NONE |
| `languages` | query | string | no | ISO 639-1 codes, plus CMN and YUE Example: en |
| `fields` | query | string | no | Comma-separated ArchivedAd fields to return Example: id,page_name,ad_snapshot_url |

Response fields:

- `data[].id` (string): Library ID of the ad
- `data[].page_id` (string): ID of the Facebook Page that ran the ad
- `data[].page_name` (string): Name of the Page that ran the ad
- `data[].ad_creation_time` (string): UTC time the ad was created
- `data[].ad_delivery_start_time` (string): UTC time delivery starts
- `data[].ad_delivery_stop_time` (string): UTC time delivery stops; blank means until stopped
- `data[].ad_creative_bodies[]` (string): Text on each unique ad card
- `data[].ad_creative_link_titles[]` (string): Link titles on each ad card
- `data[].ad_snapshot_url` (string): URL that shows the archived ad
- `data[].languages[]` (string): Languages in the ad, ISO 639-1
- `data[].publisher_platforms[]` (string): Where the ad appeared, such as Facebook or Instagram
- `data[].bylines` (string): Funding entity; political and issue ads only
- `paging` (object): Pagination information

```bash
curl 'https://graph.facebook.com/v24.0/ads_archive?ad_type=ALL&access_token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "id": "1000000000000001",
      "page_id": "1000000000000",
      "page_name": "Example Brand",
      "ad_creation_time": "2026-01-02",
      "ad_delivery_start_time": "2026-01-03",
      "ad_creative_bodies": [
        "Example ad text"
      ],
      "ad_snapshot_url": "https://example.com/ad-snapshot",
      "languages": [
        "en"
      ],
      "publisher_platforms": [
        "facebook",
        "instagram"
      ]
    }
  ],
  "paging": {
    "cursors": {
      "after": "CURSOR_VALUE"
    }
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
