100 free credits. No credit card required. Get a key

Ad library API

Read the public ad libraries as JSON: Meta ads by keyword or page, Google ads by advertiser or domain, LinkedIn ads by company. One key for all three.

Endpoints
9
Failed calls
Refunded
Free credits
100, no card
Access
REST · MCP

Facebook Ad Library search API

Endpoint details →
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()
Response
200 · 2 credits
{
"ads": [
{
"ad_archive_id": "1339489931715040",
"page_id": "71740214065",
"page_name": "KURU Footwear",
"is_active": true,
"start_date": 1783321200,
"end_date": 1795507200,
"publisher_platform": [
"FACEBOOK",
"INSTAGRAM",
"… 1 more"
],
"collation_count": 1,
"collation_id": "1962576714495079",
"categories": [
"UNKNOWN"
],
"currency": "",
"spend": null,
"impressions_with_index": {
"impressions_text": null,
"impressions_index": -1
},
"reach_estimate": null,
"…": "16 more fields"
},
{
"ad_archive_id": "2087216342231765",
"page_id": "380039845369159",
"page_name": "SHEIN",
"is_active": true,
"start_date": 1784271600,
"end_date": 1795507200,
"publisher_platform": [
"FACEBOOK",
"INSTAGRAM"
],
"collation_count": null,
"collation_id": null,
"categories": [
"UNKNOWN"
],
"currency": "",
"spend": null,
"impressions_with_index": {
"impressions_text": null,
"impressions_index": -1
},
"reach_estimate": null,
"…": "16 more fields"
},
"… 2 more"
],
"count": 50001,
"page_info": {
"has_next_page": true,
"end_cursor": "AQHTENf1iSXzN3Of5tndjGUMLkaZgZ136jt8lT5WV_l52Al2qA9KQ9L1c5a9PV0OHq9G"
}
}

An ad library API returns the ads that a public ad transparency library shows for an advertiser or keyword: creative text and media, dates, platforms and status. Groundsocial reads the Meta Ad Library, the Google Ads Transparency Center and the LinkedIn Ad Library in their own response shapes.

What you can build

Meta ads for a keyword

Search the Meta Ad Library by keyword, filtered by country, status, media type and platform.

facebook.ads.search

Everything one competitor runs

Find the advertiser’s page, then list its ads, active or past. Do the same on Google and LinkedIn.

facebook.ads.search_advertisersfacebook.ads.companygoogleads.ads.list

Google ads by domain

Every ad in the Transparency Center that points at a domain, or all ads from one verified advertiser.

googleads.advertisers.searchgoogleads.ads.listgoogleads.ad.get

Spot a trend before it peaks

How early a term showed up on each platform and in the Meta Ad Library.

prism.earliness.get

The endpoints

Credits per call, refunded when a call fails. Calls marked “up to” are metered: only the reads that answer are charged.

EndpointSourcePrice
Facebook Ad Library search API/v1/facebook/ads/searchFacebook2 cr
Facebook Ad Library advertiser search API/v1/facebook/ads/advertisers/searchFacebook1 cr
Facebook Ad Library company ads API/v1/facebook/ads/companyFacebook2 cr
Facebook Ad Library ad details API/v1/facebook/ads/{id}Facebook2 cr
Google Ads Transparency advertiser search API/v1/googleads/advertisers/searchGoogle Ads Transparency Center1 cr
Google Ads Transparency company ads API/v1/googleads/adsGoogle Ads Transparency Center2 cr
Google Ads Transparency ad details API/v1/googleads/ads/{creative}Google Ads Transparency Center2 cr
LinkedIn Ad Library API/v1/linkedin/adsLinkedIn5 cr
How early a trend appeared on each platform/v1/prism/earlinessCross-platformup to 25 cr

Questions

Connect an agent to the MCP server and every endpoint here is a tool it can call.

Do I need a Meta developer account?

No. The calls read the public ad library pages; your Groundsocial key is all you need.

Does it include spend and reach?

Only where the library publishes them (for example political and EU ads on Meta). Commercial ads elsewhere show creative, dates and platforms, not spend.

Why does a Google domain search return other advertisers?

The Transparency Center lists every advertiser whose ads point at the domain, including resellers and affiliates. Filter on the advertiser name or ID.