1. Why Meta's Official Ad Library API Fails for US Commercial Ads
Developers frequently build an entire Meta Developer App and wait weeks for government ID verification only to discover that US commercial eCommerce and SaaS ads return empty arrays.
- Political & EU-Only Scope: Outside the EU Digital Services Act window, Meta's official Graph endpoint restricts ad_type queries to POLITICAL_AND_ISSUE_ADS, excluding everyday DTC skincare, SaaS, and agency advertisers.
- Missing Media & Funnel Metadata: Even when an ad archive ID is returned, official responses return opaque snapshot render URLs rather than clean video_hd_url MP4s, CTA enums, and normalized landing page domains.
- Brittle DIY Headless Scrapers: Running Playwright/Puppeteer against facebook.com/ads/library triggers residential proxy bans, GraphQL doc_id rotations, and $15–$30/1K ad infrastructure overhead.
| Capability | AdsLibrary API | Meta Official Graph API | DIY Headless Scrapers |
|---|---|---|---|
| US Commercial DTC & SaaS Ads | Full access (Meta + Google) | Blocked (Political/EU only) | Fragile / Proxy-blocked |
| Onboarding Speed | 3 seconds (ad_live_ key) | 2–4 weeks ID + App Review | Days of engineering |
| HD Video MP4 + Hook + CTA JSON | Normalized in 1 call | Opaque snapshot iframe | DOM selectors break weekly |
| Cost per 1,000 Ads | $0.08 – $0.20 | Free (but no US commercial) | $15.00 – $30.00 (proxies) |
| Empty Query Charge | 0 Credits | N/A | Billed per proxy GB |
2. Query Commercial Facebook & Instagram Ads in One REST Call
Pass any product keyword, niche, or brand phrase to GET /v1/ads/search with platform=social (Meta) or platform=all (Meta + Google Transparency combined).
Search Live Commercial Meta Ads by Keyword
Returns normalized active commercial creatives, HD video URLs, active run days, and landing pages at 2 Credits per ad.
curl -sS "https://api.adslibraryapi.com/v1/ads/search?query=CRM+software&country=US&platform=social&limit=20" \
-H "x-api-key: ad_live_your_api_key"import requests
resp = requests.get(
"https://api.adslibraryapi.com/v1/ads/search",
params={"query": "CRM software", "country": "US", "platform": "social", "limit": 20},
headers={"x-api-key": "ad_live_your_api_key"},
timeout=30,
)
ads = resp.json()["data"]["ads"]
winners = [ad for ad in ads if (ad.get("active_days") or 0) >= 30]
print(f"Found {len(ads)} commercial ads ({len(winners)} running 30+ days)")const res = await fetch(
"https://api.adslibraryapi.com/v1/ads/search?query=CRM+software&country=US&platform=social&limit=20",
{ headers: { "x-api-key": "ad_live_your_api_key" } }
);
const { data } = await res.json();
console.log(data.ads.map(a => ({ brand: a.advertiser_name, days: a.active_days, cta: a.cta_text })));{
"data": {
"query": "CRM software",
"country": "US",
"platform": "social",
"total_returned": 20,
"cache_hit": false,
"ads": [
{
"ad_id": "meta_1078642937589012",
"platform": "meta",
"advertiser_name": "monday.com",
"advertiser_domain": "monday.com",
"creative_format": "video",
"is_active": true,
"active_days": 64,
"headline": "The CRM teams actually love using",
"body_text": "Automate follow-ups, score leads, and track every deal in one visual workspace.",
"cta_text": "Start Free Trial",
"landing_page_url": "https://monday.com/crm",
"video_hd_url": "https://video.xx.fbcdn.net/...",
"collation_count": 8
}
]
}
}Interactive Ad-Studio Telemetry Lab · GET /v1/ads/search
Estimate ad credit math, test live gateway latency & inspect JSON schema
12-hour PostgreSQL + Redis cache serves repeat brand/keyword queries in ~25ms. Empty queries and upstream errors strictly charge 0 Credits.
Frequently Asked Questions
- Can I search US commercial eCommerce and SaaS ads without a Facebook account?
- Yes. AdsLibrary API requires no Facebook login, no Meta Developer App, and no government ID verification. Sign up in 3 seconds to receive 3,000 Free Credits ($0.30) and query commercial ads immediately.
- How do I spot winning competitor ads programmatically?
- Filter returned ads by active_days >= 30 and collation_count >= 3. Advertisers rarely keep funding losing creatives for more than 2 weeks, so longevity + multi-variant testing is the strongest public proxy for winning ROAS.
- What happens if a niche keyword returns 0 active ads?
- AdsLibrary API strictly charges 0 Credits on empty result sets and HTTP 4xx/5xx responses.