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(){ "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.
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.
The endpoints
Credits per call, refunded when a call fails. Calls marked “up to” are metered: only the reads that answer are charged.
| Endpoint | Source | Price |
|---|---|---|
Facebook Ad Library search API/v1/facebook/ads/search | 2 cr | |
Facebook Ad Library advertiser search API/v1/facebook/ads/advertisers/search | 1 cr | |
Facebook Ad Library company ads API/v1/facebook/ads/company | 2 cr | |
Facebook Ad Library ad details API/v1/facebook/ads/{id} | 2 cr | |
Google Ads Transparency advertiser search API/v1/googleads/advertisers/search | Google Ads Transparency Center | 1 cr |
Google Ads Transparency company ads API/v1/googleads/ads | Google Ads Transparency Center | 2 cr |
Google Ads Transparency ad details API/v1/googleads/ads/{creative} | Google Ads Transparency Center | 2 cr |
LinkedIn Ad Library API/v1/linkedin/ads | 5 cr | |
How early a trend appeared on each platform/v1/prism/earliness | Cross-platform | up 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.
Related use cases
Competitor analysis API
A competitor’s social accounts, posts, ads, share of voice and reviews through one API: find their accounts, read what they publish and what people say about them.
Trend detection API
What is rising today on TikTok, YouTube, X, Bluesky, Pinterest and Google Trends, plus how early a term appeared on each platform, from one API key.
Brand monitoring API
Track what people post about a brand on Reddit, TikTok, YouTube, Bluesky, Threads and Hacker News: mention volume, sentiment, share of voice and spikes, from one API key.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.