Ad-Intelligence Migration Guide · Zero Container Cold Starts
Replace slow Apify ad scrapers with synchronous Meta & Google Ads JSON.
Stop waiting 45 seconds for headless browser containers to boot and paying $15–$30 per 1,000 scraped ads. Call https://api.adslibraryapi.com/ads/* synchronously at $0.08–$0.20 per 1,000 commercial creatives with built-in 12-hour caching.
Drop-in Synchronous Replacement
One ad_live_... key unlocks Meta Ad Library, Google Ads Transparency, advertiser brand dossiers, and 12-pixel landing page audits—plus Remote MCP at https://mcp.adslibraryapi.com/v1/mcp.
# BEFORE (Apify async actor container: 25-90s cold start + proxy overhead)
# run = ApifyClient(TOKEN).actor("apify/facebook-ads-scraper").call(run_input={...})
# AFTER (AdsLibrary API: synchronous HTTP GET, 12h PG+Redis cache, 0 container fees)
import os, requests
API_KEY = os.environ["ADSLIBRARYAPI_KEY"] # ad_live_... (3,000 Free Credits on sign-up)
headers = {"x-api-key": API_KEY}
ads = requests.get(
"https://api.adslibraryapi.com/ads/search",
params={"query": "CRM software", "country": "US", "platform": "all", "limit": 20},
headers=headers,
timeout=30,
).json()["data"]["ads"]
print(f"Fetched {len(ads)} commercial Meta + Google ads synchronously")const API_KEY = process.env.ADSLIBRARYAPI_KEY!;
const headers = { "x-api-key": API_KEY };
const [searchRes, dossierRes] = await Promise.all([
fetch("https://api.adslibraryapi.com/ads/search?query=CRM+software&country=US&platform=all&limit=20", { headers }),
fetch("https://api.adslibraryapi.com/ads/advertiser?domain=monday.com&country=US&limit=30", { headers }),
]);
const ads = (await searchRes.json()).data.ads;
const dossier = (await dossierRes.json()).data;
console.log({ adsCount: ads.length, longestRunningDays: dossier.summary.longest_running_days });# 1. Search Commercial Meta & Google Ads (2 Credits / ad)
curl -sS "https://api.adslibraryapi.com/ads/search?query=CRM+software&country=US&platform=all&limit=20" \
-H "x-api-key: ad_live_YOUR_API_KEY"
# 2. Fetch Brand Advertiser Dossier (2 Credits / ad)
curl -sS "https://api.adslibraryapi.com/ads/advertiser?domain=monday.com&country=US&limit=30" \
-H "x-api-key: ad_live_YOUR_API_KEY"
# 3. Audit Landing Page & 12 Tracking Pixels (10 Credits / audit)
curl -sS "https://api.adslibraryapi.com/ads/landing-page-audit?url=https://monday.com/crm" \
-H "x-api-key: ad_live_YOUR_API_KEY"| Dimension | Apify Container Scrapers | AdsLibrary API |
|---|---|---|
| Response Latency | 25–90s async run + polling | 22ms warm cache · ~1.5s live GET |
| 100,000 Commercial Ads | $1,500 – $3,000 (CU + proxies) | $8.00 – $20.00 (0 Credits on empty) |
| Cross-Platform Coverage | Separate actors per network & schema | Meta + Google + 12-Pixel Landing Audits under one ad_live_... key |