# Meta Ad Library API

The Meta Ad Library API lets you search ads by keyword, list an advertiser's ads, find advertisers and read one ad, with no Meta Ad Library account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-10-17.

- Page: https://socialtoai.com/platforms/meta/
- Last updated: 2026-10-17
- Last tested: 2026-10-17

Meta Ad Library has none of the 6 shared actions (search, trending, detail, comments, user_profile and user_posts). Every interface here is called by its own op, through POST /v1/call/{op}.

## Example call

```bash
curl https://api.socialtoai.com/v1/call/meta.ad_search \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "running shoes"
  }'
```

## Only on Meta Ad Library

Each one is called by its own op, through `POST /v1/call/{op}`; its full parameters and response fields are on its own page.

### Ads

| Interface | What it does | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- |
| Ad Library search (Preview) | Search the ads running now in the Meta Ad Library (Facebook, Instagram and Meta's other apps) by keyword. | `meta.ad_search` | 2 | https://socialtoai.com/meta-ad-search-api.md |
| Advertiser's ads (Preview) | Get the ads an advertiser (a Facebook page) is running now in the Meta Ad Library, by the page's ID. | `meta.advertiser_ads` | 2 | https://socialtoai.com/meta-advertiser-ads-api.md |
| Advertiser search (Preview) | Find advertisers (Facebook pages) in the Meta Ad Library by name. | `meta.advertiser_search` | 2 | https://socialtoai.com/meta-advertiser-search-api.md |
| Ad detail (Preview) | Get one ad of the Meta Ad Library by its library ID or link. | `meta.ad_detail` | 2 | https://socialtoai.com/meta-ad-detail-api.md |

Preview: this interface is not marked stable yet, so its parameters and fields may still change. It is charged like any other call, and a failed call is not charged.

## Official API

Meta offers the official Ad Library API for searching ads about social issues, elections or politics delivered anywhere, and any ads delivered in the UK and EU. Access requires a Facebook account, confirming your identity and location, and a Meta developer account with an app.

Source: [Meta Ad Library's developer documentation](https://www.facebook.com/ads/library/api/), checked 2026-10-17.
