Meta Ad Library API

Find public ads on Facebook, Instagram, and other Meta platforms. Search by keyword, then pass a Library ID to look up the exact ad.

Request and response

Browse endpoints
Read the exact ad from a search result

Pass the Library ID from the search response. The excerpt shows the advertiser, run dates, and platforms.

POST /v1/facebook/ad-library/details

Request body

{
  "ad_id": "1007824518858237"
}

Observed ad details excerpt

{
  "ad_id": "1007824518858237",
  "advertiser": {
    "id": "233087263210809",
    "name": "Saily"
  },
  "active": false,
  "start_time": "2026-06-02T07:00:00.000Z",
  "end_time": "2026-06-29T07:00:00.000Z",
  "platforms": [
    "FACEBOOK",
    "INSTAGRAM",
    "MESSENGER",
    "THREADS"
  ]
}

Use Cases

Discover ads in a market

Search for a brand or product, choose a country, and filter to active or inactive ads.

Review a known creative

Look up a Library ID to see the advertiser, run dates, platforms, and any creative variants Meta shows.

API Endpoints

Available endpoints for the Meta Ad Library API

POST /v1/facebook/ad-library/search

Meta Ad Library Search

Search the first public batch of Meta Ad Library ads by keyword, country, and activity status. Preview advertiser names, published creative, and platforms.

Parameters

country string An uppercase country code such as US, or ALL for all countries.
limit integer
query string required
status string
View endpoint documentation
POST /v1/facebook/ad-library/details

Meta Ad Library Details

Read an exact Meta Ad Library ad by its published Library ID, including the advertiser, run dates, platforms, and available creative variants.

Parameters

ad_id string required
View endpoint documentation

Frequently Asked Questions

Common questions about the Meta Ad Library API

How do I get an ad’s details?

Use the Library ID returned by Search or shown on the ad in Meta Ad Library.

How many results does Search return?

Search returns up to 30 ads from the first public results batch. The response indicates when more matching ads exist.

Start scraping Meta Ad Library

Get your free API key