Skip to content
AdsLibraryAPI

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")
DimensionApify Container ScrapersAdsLibrary API
Response Latency25–90s async run + polling22ms 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 CoverageSeparate actors per network & schemaMeta + Google + 12-Pixel Landing Audits under one ad_live_... key