Meta Ad Library API gives developers, media buyers, and AI agents direct programmatic access to active and historical Facebook and Instagram ads without Meta identity verification roadblocks or commercial-ad restrictions. Query by keyword, advertiser Page ID, or landing page domain to retrieve structured JSON containing ad_archive_id, page_name, body_text, cta_text, link_url, media_urls, active_days, and spoken video hook transcripts—at 4 credits per successful call and 0 credits on failure.
Need working Python, Node.js, and cURL code? Follow our step-by-step tutorial on how to read Meta Ad Library data with an API.
Meta Ad Library API endpoints
Unlike Meta's official Graph ads_archive endpoint—which restricts commercial non-political queries outside the EU/UK and requires government ID verification—our Meta Ad Library API works globally for ecommerce, SaaS, mobile app, and DTC brand research. Every endpoint is accessible both via HTTPS REST and through our social media MCP server inside Claude, Cursor, Google Antigravity, ChatGPT, Dify, and n8n:
| Endpoint Action | Query Input | Key Returned Meta Ad Fields |
|---|---|---|
| Ad Keyword Search | Niche phrase, product keyword, + optional country & active status | ad_archive_id, page_id, page_name, body_text, cta_text, link_url, active_days, platforms |
| Advertiser Page Ads | Facebook Page ID, brand handle, or destination domain | Full active & inactive creative catalog, launch dates, creative variants, landing URLs |
| Creative & Video Script | ad_archive_id or Meta ad video asset |
High-res image/MP4 media_urls, thumbnail cover, timestamped spoken hook_transcript |
How much does one Meta Ad Library API call cost
Every new account starts with 100 free credits on sign-up (no credit card required), enough to run 25 live Meta Ad Library API searches immediately.
- Standard Meta Ad Search & Creative Detail: 4 credits per successful request (
~$0.008to$0.013per call depending on your prepaid pack). - Zero-Failure Billing Guarantee: Timed-out or failed upstream requests deduct 0 credits.
- Prepaid Packs (Never Expire): $10 = 3,000 credits (~750 Meta ad calls), $50 = 20,000 credits (~5,000 Meta ad calls), or $200 = 100,000 credits (~25,000 Meta ad calls) via Alipay or card on our pricing page.
TikTok Creative Center ad search
When your creative research workflow expands beyond Facebook and Instagram, the same API key unlocks TikTok Creative Center top ads (4 credits per call). Filter winning short-form video ads by keyword, country, industry category, and conversion objective, then pair them with our TikTok Transcript API to compare paid ad scripts against organic viral hooks.
Google Ads Transparency Center lookup
Query advertiser domains or verified legal entities across Google Search, YouTube, and Display (4 credits for targeted creative lookups; 24 credits for full multi-region advertiser sweeps). Ideal for auditing competitor search copy and YouTube video ad placements alongside Meta campaigns.
LinkedIn Ad Library B2B ad feed
For B2B SaaS intelligence, search LinkedIn Ad Library (4 credits per call) by company name or keyword to inspect sponsored post copy, carousel headlines, lead-gen CTAs, and regional impression ranges in the same normalized JSON format.
Developer Questions & Integration Feedback (0)
Testing an endpoint or wiring up an MCP client? Leave a question or share which agent stack you are connecting.