---
title: "Is there a Facebook Ad Library API?"
description: "What Meta’s Ad Library API returns, what it leaves out (most commercial ads outside the EU), and how to get any advertiser’s ads."
canonical_url: https://groundsocial.dev/answers/facebook-ad-library-api
---
# Is there a Facebook Ad Library API?

> What Meta’s Ad Library API returns, what it leaves out (most commercial ads outside the EU), and how to get any advertiser’s ads.

_Updated 2026-11-27._

> **Short answer** Yes: Meta’s Ad Library API (`ads_archive`). It returns ads about social issues, elections or politics everywhere, and other ads only if they reached a location in the EU. You need a Meta developer account with Ad Library API access, and `ad_reached_countries` is required.

- `ad_type=POLITICAL_AND_ISSUE_ADS` returns ads about social issues, elections or politics.
- Ads that reached no EU location come back only if they are political or issue ads, so a US-only commercial campaign is not in the API.
- `ad_reached_countries` is required (`ALL` or ISO codes). Error 613 means you hit a rate limit.

## How to do it with Groundsocial

Groundsocial searches the public Ad Library as the website shows it, commercial ads included: a keyword search or one company’s ads is 2 credits. A credit costs $1.00 to $0.40 per 1,000 depending on the pack, failed calls are refunded, and there are 100 free credits on signup, no card.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/facebook/ads/search?q=running%20shoes&country=US" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/facebook/ads/search?q=running%20shoes&country=US', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/facebook/ads/search?q=running%20shoes&country=US",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

| Endpoint | Route | Credits |
| --- | --- | --- |
| [Facebook Ad Library search API](https://groundsocial.dev/endpoints/facebook-ad-library-search-api) | `/v1/facebook/ads/search` | 2 |
| [Facebook Ad Library company ads API](https://groundsocial.dev/endpoints/facebook-ad-library-company-ads-api) | `/v1/facebook/ads/company` | 2 |
| [Facebook Ad Library ad details API](https://groundsocial.dev/endpoints/facebook-ad-library-ad-api) | `/v1/facebook/ads/{id}` | 2 |

## More questions

### Does Google have an ad library API too?

We read Google’s Ads Transparency Center: advertiser search and their ads, at 1–2 credits a call.

## Related

- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api)
- [Competitor analysis API](https://groundsocial.dev/use-cases/competitor-analysis-api)

## Sources

- [Meta for Developers: Ad Library API (ads_archive)](https://developers.facebook.com/docs/graph-api/reference/ads_archive/)

Checked 27 Nov 2026. Follow the links for the latest.

Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.

_Canonical HTML: https://groundsocial.dev/answers/facebook-ad-library-api_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Answers","item":"https://groundsocial.dev/answers"},{"@type":"ListItem","position":3,"name":"Is there a Facebook Ad Library API?","item":"https://groundsocial.dev/answers/facebook-ad-library-api"}]}
```
