Ad Library API

Search and pull live and past ads, creatives and advertisers from the Meta, TikTok, Google and LinkedIn ad libraries.

One ad intelligence API for the four big public ad libraries: Meta (Facebook and Instagram), TikTok, Google Ads Transparency Center and LinkedIn. Search by keyword or advertiser, then read each ad's creative, text, dates, platforms and reach where published. No Meta app review or ID verification needed. 17 endpoints in this category, from $1 per 1,000 calls.

  • 4 platforms
  • 17 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month

Ad library APIs on API.SH

Each platform has its own page with endpoints, example responses and prices. One API key works for all of them.

What teams build with ad library data

Competitor ad research

See every ad a competitor is running, the creatives and copy they test, and how long each ad stays live.

Creative inspiration and swipe files

Search ads by keyword across libraries and save the hooks, formats and offers that keep running.

B2B advertising intelligence

Track which companies advertise on LinkedIn and with what message.

Popular ad library endpoints

platformendpointper 1,000 calls
Meta Ad Library Search Meta ads
/facebook/v1/adLibrary/search/ads
$1
1 credit
TikTok Ad Library Search TikTok ads
/tiktok/v1/ad-library/search
$2
2 credits
Google Ads Transparency Search Google advertisers
/google/v1/adLibrary/advertisers/search
$1
1 credit
LinkedIn Ad Library Search LinkedIn ads
/linkedin/v1/ads/search
$1
1 credit

One request, clean JSON

Search Meta ads from Meta Ad Library: GET https://api.api.sh/facebook/v1/adLibrary/search/ads. Every other ad library endpoint works the same way.

curl "https://api.api.sh/facebook/v1/adLibrary/search/ads?q=nike" \
  -H "x-api-key: $APISH_KEY"
import os, requests

res = requests.get(
    "https://api.api.sh/facebook/v1/adLibrary/search/ads",
    params={"q": "nike"},
    headers={"x-api-key": os.environ["APISH_KEY"]},
    timeout=120,
)
res.raise_for_status()
data = res.json()
{"query": "nike","page_id": null,"country": "US","total": null,"count": 10,"next_cursor": "eyJjb3VudHJ5IjoiVVMiLCJzdGF0dXMiOiJhY3RpdmUiLCJ0eXBlIjoiQUxMIiwibWVkaWEiOiJhbGwiLCJzZWFyY2hUeXBlIjoia2V5d29yZF91bm9yZGVyZWQiLCJzZXNzaW9uIjoi…","ads": [{"id": "1550534860016399","url": "https://www.facebook.com/ads/library/?id=1550534860016399","active": true,"page": {"id": "115939511520844","name": "Perfect themes","url": "https://www.facebook.com/100093512920259/","picture": "https://scontent-sjc6-1.xx.fbcdn.net/v/t39.35426-6/701421303_1593266515068546_6584706353812290058_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=102&c…","likes": 18621,"categories": ["Topic"]},"start_date": "2026-05-19T07:00:00.000Z","end_date": "2026-10-23T07:00:00.000Z","platforms": ["FACEBOOK","INSTAGRAM","… 3 more"],"format": "IMAGE","title": "𝕊𝕦𝕡𝕖𝕣 𝕙𝕠𝕥 𝕨𝕚𝕕𝕘𝕖𝕥𝕤 𝕒𝕡𝕡 !","body": "🔥🍭Themepack is a FREE and personalized APP😍 various styles of Theme💎 、Weather💖、Photo😊、Clock、Calendar to pick any widget to dress up your hom…","caption": "play.google.com","link_url": "http://play.google.com/store/apps/details?id=com.iconchanger.widget.theme.shortcut","link_description": null,"cta": {"text": "Install now","type": "INSTALL_MOBILE_APP"},"images": ["https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/700927950_933331229664450_6487763311056032772_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_n…"],"videos": [],"cards": [],"collation_count": null,"collation_id": null,"spend": null,"impressions": null,"currency": null,"categories": ["UNKNOWN"],"disclaimer": null,"byline": null,"page_is_deleted": false,"is_aaa_eligible": true,"contains_sensitive_content": false,"has_user_reported": false,"hidden_safety_data": null,"gated_type": "ELIGIBLE","reach_estimate": null,"total_active_time": null,"political_countries": [],"state_media_run_label": null,"entity_type": null,"archive_types": [],"targeted_or_reached_countries": [],"report_count": null,"fev_info": null,"…": "15 more fields"},{"id": "962050096457659","url": "https://www.facebook.com/ads/library/?id=962050096457659","active": true,"page": {"id": "156405867784232","name": "Depop","url": "https://www.facebook.com/depop/","picture": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/706217505_1282327247074242_6940108535499458481_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=105&c…","likes": 98348,"categories": ["Shopping"]},"start_date": "2026-05-22T07:00:00.000Z","end_date": "2026-10-23T07:00:00.000Z","platforms": ["FACEBOOK","INSTAGRAM","… 1 more"],"format": "DPA","title": "{{product.name}}","body": "Free Depop Shipping just dropped. Go find something you love.","caption": "itunes.apple.com","link_url": "http://itunes.apple.com/app/id518684914","link_description": null,"cta": {"text": "Download","type": "DOWNLOAD"},"images": [],"videos": [],"cards": [{"title": "Coach Women's Hoodie","body": "Free Depop Shipping just dropped. Go find something you love.","link": "https://www.depop.com/products/coachellana-coachella-2018-cardi-b-cropped/","image": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/706317255_2037222576909248_2490268264375552452_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_…","video": null},{"title": "LOFT Women's T-shirt","body": "Free Depop Shipping just dropped. Go find something you love.","link": "https://www.depop.com/products/xaznbabyx-open-back-workout-top-cute/","image": "https://scontent-sjc6-1.xx.fbcdn.net/v/t39.35426-6/706538687_1471950538014143_7938086405330809751_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=c53f8f&_…","video": null},"… 4 more"],"collation_count": null,"collation_id": null,"spend": null,"impressions": null,"currency": null,"categories": ["UNKNOWN"],"disclaimer": null,"byline": null,"page_is_deleted": false,"is_aaa_eligible": false,"contains_sensitive_content": false,"has_user_reported": false,"hidden_safety_data": null,"gated_type": "ELIGIBLE","reach_estimate": null,"total_active_time": null,"political_countries": [],"state_media_run_label": null,"entity_type": null,"archive_types": [],"targeted_or_reached_countries": [],"report_count": null,"fev_info": null,"…": "15 more fields"},"… 8 more"],"page_info": {"end_cursor": "AQHT3ztG9AwtHF7ju50chT5BD3crrxQAYVmk6PPowDC4boik-HH9skPvhOZ2JccF-4KU","has_next_page": true},"credits_used": 1,"cached": false}

Why API.SH for ad library data

  • Public data only: no logins, cookies or accounts on the source sites
  • One key and one JSON shape across 4 ad library platforms and 482 in all
  • Blocks, retries and parsing handled for you: no scraper to maintain
  • Pay per call; failed calls cost nothing
  • Also in n8n, Zapier, Make, Google Sheets and AI agents (MCP)

Compared with other data APIs

Other providers sell each platform as a separate actor, scraper or subscription. On API.SH every ad library platform is under one key and one balance, priced per call on the pricing page.

Ad library API questions

What is an ad library API?+

An ad library API returns ads from a platform's public ad transparency library (creative, text, advertiser, dates and where they ran) as structured data you can search and store.

Is the Meta Ad Library API free?+

Meta's own Ad Library API is free but needs a developer app and identity verification, and outside the EU and political ads it returns little. API.SH returns public Meta Ad Library results with only an API key, with 1,000 free credits a month.

Which ad libraries are covered?+

The Meta Ad Library (Facebook and Instagram), the TikTok Ad Library, the Google Ads Transparency Center and the LinkedIn Ad Library.

How much does it cost?+

Calls start at $1 per 1,000 and failed calls are free. Every account gets 1,000 free credits each month.

Can I use it in Python or no-code tools?+

Yes. Each endpoint is a GET request that returns JSON, and works in Google Sheets, n8n, Zapier, Make and AI agents through MCP.

More API categories

Start with 1,000 free credits
Every month, on every account. One key for every ad library platform above.
Get a free API key