# AdsLibrary API — Complete LLM & AI Agent Technical Reference (llms-full.txt) > Cross-Platform Commercial Ads Library & Competitor Ad Creative API: Live Commercial Meta Facebook/Instagram Ads & Verified Google Ads Transparency Search (`/v1/ads/search`), Unified Brand Advertiser Dossiers (`/v1/ads/advertiser`), and Live Landing Page Funnel & 12-Tracking-Pixel Audits (`/v1/ads/landing-page-audit`). > Base URL: `https://api.adslibraryapi.com` | Main Website: `https://adslibraryapi.com` > Remote MCP Server (Streamable HTTP): `https://api.adslibraryapi.com/mcp` | 1-Click OAuth 2.1 Connector: `https://mcp.adslibraryapi.com/v1/mcp` > AI Skill Manifest: `https://adslibraryapi.com/SKILL.md` | MCP Registry Manifest: `https://adslibraryapi.com/.well-known/mcp.json` > OpenAPI 3.1 Spec: `https://adslibraryapi.com/openapi.json` | Compact Summary: `https://adslibraryapi.com/llms.txt` ## 1. Authentication, Remote MCP & Core Architecture - **Base URL**: `https://api.adslibraryapi.com` - **Authentication Header (API Key Rail)**: Pass either `x-api-key: ad_live_your_api_key` OR `Authorization: Bearer ad_live_your_api_key` on every request. - **Keyless Base Mainnet USDC `x402` Micropayment Rail ($0.002 / call — Zero Signup)**: - Omit all API key headers on any `https://api.adslibraryapi.com/v1/ads/*` or `https://api.adslibraryapi.com/x402/v1/ads/*` endpoint to receive an `HTTP 402 Payment Required` response with `PAYMENT-REQUIRED` header + Coinbase `x402 Bazaar` Discovery Schema. - Network: `eip155:8453` (Base Mainnet) | Asset: USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`) | Price: **`$0.002 USDC` (`2000` atomic units)** | Recipient (`payTo`): `0x3e96547584A45DD52301ED8f29DEA0AF2ea7f03A`. - Strict **Query-Before-Settle**: `$0.00` USDC settled on bad params, upstream errors, or empty results. - **1-Click Remote MCP & OAuth 2.1 (Claude Web, ChatGPT Connectors, Cursor)**: - 1-Click OAuth 2.1 DCR + PKCE `S256` Connector URL: `https://mcp.adslibraryapi.com/v1/mcp` - API-Key Streamable HTTP Endpoint (public `initialize` & `tools/list`): `https://api.adslibraryapi.com/mcp` (alias: `https://api.adslibraryapi.com/v1/mcp`) - **Instant Free Trial (3,000 Free Credits · $0.30)**: Every new account receives **3,000 Free Credits ($0.30) on sign-up — No Card Required** at `https://adslibraryapi.com/signup` with zero Meta political verification wait. - **Zero Charge on Empty Searches & Errors**: Any query returning 0 ads or 4xx/5xx error response deducts **0 Credits**. - **Latency SLA**: Warm PostgreSQL 16 + Redis DB 10 (`ad:`) 12h Cache: `18–40 ms`; Live Multi-Rail Upstream Fetch: `1.2–2.8 s`. ## 2. Pricing & Credit System ($1 = 10,000 Credits) | Data Type / Endpoint | Credits | PAYG ($9+) | Pro ($69/mo) | Business ($199/mo) | Batch Size | | :--- | :--- | :--- | :--- | :--- | :--- | | Commercial Ads Search (`/v1/ads/search`) | 2 Credits / ad | $0.20 / 1K ads | $0.115 / 1K ads | $0.08 / 1K ads | Up to 40 ads/call | | Advertiser Brand Dossier (`/v1/ads/advertiser`) | 2 Credits / ad | $0.20 / 1K ads | $0.115 / 1K ads | $0.08 / 1K ads | Meta + Google combined | | Landing Page & 12-Pixel Audit (`/v1/ads/landing-page-audit`) | 10 Credits / call | $1.00 / 1K audits | $0.58 / 1K audits | $0.40 / 1K audits | 1 live page audit | ## 3. Complete Endpoint Reference & Code Samples ### Search Active Commercial Video & Image Ads (Meta + Google) (`GET /v1/ads/search`) - **Documentation URL**: https://adslibraryapi.com/docs/ads-search - **Cost**: 2 Credits / ad ($0.0002 / ad) - **Description**: Search active commercial ads by keyword, niche, or brand across Meta Ad Library (Facebook/Instagram) and Google Ads Transparency. Cost: 2 Credits / ad returned (0 Credits on empty/error). - **Parameters**: - `query` (query, required): Search keyword, niche, or brand name (e.g. CRM software, shopify). - `country` (query, optional): 2-letter ISO country code (US, GB, CA, AU, DE) or ALL. - `platform` (query, optional): Filter ad network rail: all (Meta + Google), social (Meta Ad Library), or search (Google Ads Transparency). - `limit` (query, optional): Maximum ads to return (1–50, default 20). - `cursor` (query, optional): Pagination cursor from previous response next_cursor. ```bash curl "https://api.adslibraryapi.com/v1/ads/search?query=CRM+software" \ -H "x-api-key: ad_live_your_api_key" ``` ```python import requests res = requests.get( "https://api.adslibraryapi.com/v1/ads/search?query=CRM+software", headers={"x-api-key": "ad_live_your_api_key"}, timeout=30, ) print(res.json()) ``` --- ### Get Competitor Brand & Advertiser Active Ads Dossier (`GET /v1/ads/advertiser`) - **Documentation URL**: https://adslibraryapi.com/docs/ads-advertiser - **Cost**: 2 Credits / ad ($0.0002 / ad) - **Description**: Retrieve all active commercial ads, verified advertiser status, approximate Google active ad count, format breakdown, top CTAs, and top destination landing pages for a brand domain or company name across Meta + Google. Cost: 2 Credits / ad returned. - **Parameters**: - `domain` (query, optional): Target brand domain (e.g. monday.com, shopify.com). - `advertiser` (query, optional): Brand or advertiser page name (optional if domain is provided). - `country` (query, optional): 2-letter ISO country code (default US). - `platform` (query, optional): Filter by all (default), social (Meta), or search (Google Ads Transparency). - `limit` (query, optional): Max ads to return (1–50, default 20). ```bash curl "https://api.adslibraryapi.com/v1/ads/advertiser?domain=monday.com&country=US" \ -H "x-api-key: ad_live_your_api_key" ``` ```python import requests res = requests.get( "https://api.adslibraryapi.com/v1/ads/advertiser?domain=monday.com&country=US", headers={"x-api-key": "ad_live_your_api_key"}, timeout=30, ) print(res.json()) ``` --- ### Audit Ad Destination Landing Page Headline, Offer, CTAs & Tracking Pixels (`GET /v1/ads/landing-page-audit`) - **Documentation URL**: https://adslibraryapi.com/docs/ads-landing-page-audit - **Cost**: 10 Credits / audit ($0.001 / audit) - **Description**: Inspect any public ad destination landing page URL in real time to extract above-the-fold H1 headline, offer structure, CTAs, redirect hops, and 12 tracking pixels (meta_pixel, gtag, gtm, tiktok_pixel, linkedin_insight, hubspot, klaviyo, segment, hotjar, clarity). Cost: 10 Credits / audit (0 Credits on error). - **Parameters**: - `url` (query, required): Public HTTP/HTTPS landing page URL (e.g. https://monday.com). ```bash curl "https://api.adslibraryapi.com/v1/ads/landing-page-audit?url=https%3A%2F%2Fmonday.com" \ -H "x-api-key: ad_live_your_api_key" ``` ```python import requests res = requests.get( "https://api.adslibraryapi.com/v1/ads/landing-page-audit?url=https%3A%2F%2Fmonday.com", headers={"x-api-key": "ad_live_your_api_key"}, timeout=30, ) print(res.json()) ``` ## 4. Engineering Guides & Architecture Blueprints ### AdSpy ($149/mo) & Foreplay ($49–$149/mo) Pricing vs AdsLibrary API: 2026 Unit Economics Breakdown - **URL**: https://adslibraryapi.com/guides/foreplay-and-adspy-pricing-alternative - **Summary**: Compare AdSpy ($149/mo) & Foreplay ($49–$149/mo) seat pricing vs AdsLibrary API non-expiring PAYG: $9 for 45K ads ($0.08–$0.20/1K), 0 empty-query fees. - **Key Takeaways**: - Eliminate $588–$1,788/yr per-seat spy subscriptions: one ad_live_ API key feeds unlimited strategists, Slack channels, Airtable bases, and Claude/Cursor MCP agents. - Never-expiring Pay-As-You-Go ledger: a $9 Indie Starter top-up grants 90,000 Credits (45,000 commercial Meta + Google ads) with zero 30-day credit expiration. - Deterministic volume scaling: effective cost drops from $0.20/1K ads on PAYG to $0.115/1K on Pro and $0.08/1K on Business—charging strictly 0 Credits on empty queries. - Full-funnel enrichment included: inspect active_days longevity ('Running 75d · High Winner Signal'), HD MP4 URLs, and 12 landing-page tracking pixels in a unified schema. ### Facebook Ad Library API for Commercial Ads (2026): Query Active Brand Creatives Without Political Verification - **URL**: https://adslibraryapi.com/guides/facebook-ad-library-api-commercial-ads - **Summary**: Meta's official Ad Library Graph API restricts US commercial eCommerce and SaaS ads behind political/EU-only gates. Query live Meta commercial ads, HD videos & CTAs in 3s. - **Key Takeaways**: - Zero Meta political ID verification or App Review wait: mint a live ad_live_ API key in 3 seconds with 3,000 Free Credits ($0.30) — No Card Required. - Returns full commercial US & global Facebook/Instagram creatives: hook copy, HD video MP4 URL, thumbnail, CTA text, destination URL, collation count, and active_days running. - Identifies winning evergreen creatives automatically via active_days and variation counts (e.g., ads running 45+ days indicate positive ROAS). - 12h PostgreSQL + Redis cache serves repeat brand/keyword queries in 18–40ms, with 0 Credits charged on empty queries or upstream errors. ### Foreplay.co API Alternative (2026): Build Automated Swipe Files & Creative Spy Pipelines for $0.08/1K Ads - **URL**: https://adslibraryapi.com/guides/foreplay-co-api-alternative - **Summary**: Foreplay.co charges $49–$299/mo per seat with manual browser saving and no open PAYG API. Automate Meta & Google ad swipe files via REST, MCP & x402 from $9 PAYG. - **Key Takeaways**: - Zero per-seat SaaS lock-in: feed unlimited Slack channels, creative databases, Notion boards, and AI brief agents from a single ad_live_ key. - Cross-platform coverage: combine Meta Facebook/Instagram creatives with Google Ads Transparency search & YouTube ads in one /v1/ads/advertiser call. - Built-in Landing Page & Pixel Auditor (/v1/ads/landing-page-audit): automatically inspect competitor H1 offers, CTAs, and 12 tracking pixels (Meta, TikTok, gtag, Klaviyo, HubSpot). - Pay-As-You-Go starting at $9 (90,000 never-expiring Credits = 45,000 ads) or Business at $0.08 per 1,000 ads. ### Google Ads Transparency Center API Guide (2026): Pull Verified Brand Search, Display & YouTube Creatives - **URL**: https://adslibraryapi.com/guides/google-ads-transparency-api-guide - **Summary**: Google Ads Transparency Center has no official public REST API. Query verified Google advertiser IDs, active Search/Display/YouTube creatives & first/last shown dates via JSON. - **Key Takeaways**: - Resolves any brand domain (e.g. monday.com, hubspot.com, notion.so) to its verified Google Advertiser ID and approximate active ad footprint. - Returns structured Search text ads, Display banners, and YouTube video creative cards with first_shown and last_shown timestamps. - Combines seamlessly with /v1/ads/landing-page-audit to verify whether a Google Ads advertiser is simultaneously running Meta Pixel, TikTok Pixel, or LinkedIn Insight retargeting. ### Cross-Platform Ad Creative & TikTok Pixel Funnel Audit API (2026): Connect Social Hooks to Converting Landing Pages - **URL**: https://adslibraryapi.com/guides/tiktok-creative-center-ads-api - **Summary**: Track high-CTR video ads across Meta & Google and automatically detect TikTok Pixel, Meta Pixel, gtag, Klaviyo & offer structures on every competitor landing page. - **Key Takeaways**: - Detect all 12 commercial ad & martech pixels on any landing page in ~120ms: Meta Pixel, TikTok Pixel, Google gtag/GTM, LinkedIn Insight, Snapchat, Pinterest, HubSpot, Klaviyo, Segment, Hotjar, and Clarity. - Identify omni-channel spenders immediately: when a Meta ad landing page also fires tiktok_pixel + gtag + klaviyo, you know the brand is scaling cross-channel paid acquisition. - Extract structured H1 hero copy, subheadlines, offer signals, and primary CTA buttons to feed directly into AI landing page teardown workflows. ### Competitor Ad Spy Automation with Remote MCP & x402 (2026): Connect Claude, Cursor & Autonomous Agents to Live Ads - **URL**: https://adslibraryapi.com/guides/competitor-ad-spy-automation-mcp - **Summary**: Connect Claude Desktop, Cursor, ChatGPT Connectors, or x402 autonomous agents to live Meta & Google commercial ads via Remote MCP (mcp.adslibraryapi.com) and USDC micropayments. - **Key Takeaways**: - Zero local npm/Docker MCP server maintenance: connect straight to hosted Streamable HTTP MCP at https://mcp.adslibraryapi.com. - 5 production-ready MCP tools let Claude or Cursor search live Meta & Google ads, pull a brand's full creative dossier, and audit its landing page pixels in a single prompt. - Native x402 v2 Base Mainnet USDC ($0.002/call) enables fully autonomous AI agent workflows with zero human account registration and strict Query-Before-Settle ($0 settled on empty results). ## 5. Competitor Benchmarks ### AdsLibrary API vs Foreplay.co (foreplay.co) - **URL**: https://adslibraryapi.com/compare/foreplay-co-api-alternative - **Headline**: $0.08/1K vs $49–$299/mo to automate commercial Meta & Google ad intelligence. - **Summary**: Foreplay.co is designed for manual browser saving and seat-based creative boards, not high-volume automated pipelines. AdsLibrary API gives developers an instant ad_live_ REST key, Remote MCP server, and x402 USDC rail with 3,000 Free Credits ($0.30) — No Card Required. ### AdsLibrary API vs Meta Official Ad Library API (facebook.com) - **URL**: https://adslibraryapi.com/compare/meta-ad-library-api-alternative - **Headline**: 3s Key vs US Blocked for commercial DTC, SaaS & B2B brand ads. - **Summary**: Meta's official Ad Library Graph API requires identity verification and restricts US queries to political and social-issue ads. AdsLibrary API gives instant access to live commercial US & global Facebook/Instagram ads plus Google Ads Transparency creatives. ### AdsLibrary API vs Google Ads Transparency Scrapers (adstransparency.google.com) - **URL**: https://adslibraryapi.com/compare/google-ads-transparency-api-alternative - **Headline**: $0.08/1K vs $20+/1K for verified Google Search, Display & YouTube creatives. - **Summary**: Google Ads Transparency Center uses dynamic protobuf/RPC endpoints that break DIY scrapers. AdsLibrary API delivers normalized verified Google creatives alongside Meta Ad Library data and 12-pixel landing page audits. ## 5B. Free No-Login Interactive Tools (/tools) - **Shopify Copycat & Ad Brand Protection Scanner** (https://adslibraryapi.com/tools/shopify-ad-copycat-brand-protection): Scan live Meta & Google Ad Libraries for unauthorized third-party domains hijacking DTC Shopify product videos, titles, or hooks, and generate pre-filled Shopify IP (`shopify.com/legal/ip`) & Meta IP takedown notices. - **TikTok Ad Format & UGC Bounty Tracker** (https://adslibraryapi.com/tools/tiktok-ad-format-and-ugc-bounty-tracker): Filter breakout short-form ad hooks (UGC clipper bounties, split-screen comparisons, street interviews, syndicated Reels) and export live Ad Library API velocity alerts. ## 6. Frequently Asked Questions ### Why does Meta's official Ad Library API block US commercial ads, and how does AdsLibrary API solve it? Meta's official Graph Ad Library API restricts commercial (non-political) ad queries strictly to EU/UK DSA regions—returning empty payloads for US SaaS, DTC, and ecommerce brands. AdsLibrary API routes through live commercial Ad Library & Google Ads Transparency rails so you can pull active US & global commercial video/image creatives, hook copy, CTAs, and landing pages with an instant ad_live_ key. ### What ad creative & winner-signal fields are returned by GET /v1/ads/search? Every creative is normalized into clean JSON containing ad_id, platform (meta or google), publisher_platforms (facebook, instagram, youtube, google_display), advertiser_name, format (video, image, carousel, text, dco), is_active, start_date, days_running, winner_signal (high_winner for >=30d active or 4+ variations), hook_copy, headline, cta_text, landing_page_url, display_domain, media.video_hd_url, media.thumbnail_url, and ad_library_url. ### What does GET /v1/ads/landing-page-audit detect on competitor ad destination URLs? Pass any public ad landing page URL to extract the live H1 headline, subheadlines, offer structure (pricing mentions, free trial, demo CTA, discounts, no-credit-card claims), primary CTA buttons, redirect hops, and 12 tracking pixels: meta_pixel (with Pixel IDs), gtag (GA4/AW IDs), gtm, tiktok_pixel, linkedin_insight, hubspot, klaviyo, segment, hotjar, clarity, snapchat_pixel, and pinterest_tag. ### How does credit billing work, and do I pay for empty searches or failed landing page audits? $1.00 equals 10,000 Credits. Commercial ad search (/v1/ads/search) and brand advertiser dossiers (/v1/ads/advertiser) cost strictly 2 Credits per ad returned ($0.20/1K PAYG, down to $0.08/1K on Business Monthly). Live landing page funnel & pixel audits (/v1/ads/landing-page-audit) cost 10 Credits per audit. Any empty result or upstream error deducts strictly 0 Credits. ### Can I start for $9 without a $99/mo Foreplay or AdSpy seat subscription? Yes. Every account receives 3,000 Free Credits ($0.30) on sign-up — No Card Required. When ready, purchase our $9.00 Indie Starter Micro-Pack (90,000 never-expiring credits = 45,000 commercial ad creatives or 9,000 landing page audits) via Stripe Card / Apple Pay / Google Pay or 0%-fee Crypto (+5% bonus). ### Does AdsLibrary API support Claude, ChatGPT, Cursor MCP and x402 Base Mainnet USDC? Yes. Connect Claude Web, ChatGPT Connectors, or Cursor in 1 click to https://mcp.adslibraryapi.com/v1/mcp (OAuth 2.1) or https://api.adslibraryapi.com/mcp (API key) for 5 live ad-intelligence tools. Autonomous agents can also call /v1/ads/* with zero signup via x402 Base Mainnet USDC ($0.002/call, $0 settled on empty results). ### How many ad creatives and landing page audits can I pull with the $9 Indie Starter Pack? The $9.00 Indie Starter Micro-Pack grants 90,000 permanent credits (or 94,500 credits when paid with 0%-fee Crypto). At 2 Credits per ad creative and 10 Credits per landing page audit, $9 buys 45,000 commercial ads or 9,000 full funnel & tracking pixel audits — with zero monthly expiration. ### What happens if a keyword search returns 0 active ads or a landing page times out? You are charged 0 Credits. Our Charge-Before-Return gateway verifies HTTP 200 and non-empty payloads before deducting a single credit. ### How does AdsLibrary API compare to Foreplay.co, AdSpy, and Apify Ad Library scrapers? UI-only spy suites like Foreplay ($49–$299/mo) and AdSpy ($149/mo) lock data inside browser dashboards without developer REST APIs, while Apify actors bill compute + proxy fees ($5–$20/1K ads) with fragile runs. AdsLibrary API delivers normalized Meta + Google ads plus live pixel audits at $0.08–$0.20 per 1,000 ads with 12-hour caching and 99.97% uptime. ### Can I pay with Corporate Credit Card, Apple Pay, or USDT/USDC? Yes. We support Stripe (Visa, Mastercard, Amex, Apple Pay, Google Pay, with automatic EU VAT / US EIN / Tax ID PDF invoices) alongside NOWPayments 0%-fee multi-chain Crypto (USDT, USDC, SOL, BTC, BNB) with an automatic +5% credit bonus. ### Do Pay-As-You-Go credits expire, and what is the refund policy? Purchased Pay-As-You-Go credits never expire. Unused paid balances from payments made within the last 14 days are eligible for a refund upon request to support@adslibraryapi.com.