adlibrary.com Logoadlibrary.com
Developer API

The Ad Intelligence API

Access ads across 7 platforms programmatically. Search by keyword, filter by platform and country, and integrate competitive ad intelligence into any workflow.

Platform Coverage

One API endpoint, all major advertising platforms. No need to integrate with each platform separately.

📘Facebook
📸Instagram
🎵TikTok
▶️YouTube
🔍Google
💼LinkedIn
📱AdMob

Built for Builders

Whether you're an agency, AI developer, or sales team — the API adapts to your workflow.

🏢

Agency Automation

Automate competitive reporting for clients. Pull competitor ads on a schedule, track creative changes, and generate intelligence reports without manual research.

🤖

AI Agent Workflows

Feed ad data into LLM-powered agents for creative analysis, trend detection, and automated campaign recommendations. Perfect for AI-native marketing tools.

📊

Sales Enrichment

Enrich CRM records with advertising activity data. Know which prospects are actively running ads, what platforms they use, and how their spend is trending.

🔬

Research at Scale

Analyze advertising trends across industries, track seasonal patterns, and build custom dashboards from real ad data — all programmatically.

Simple to Integrate

Standard REST API. No SDKs required. Works with any language.

cURL

curl "https://www.adlibrary.com/next/brand-ads?keyword=nike&platform=facebook&pageSize=10" \
  -H "Authorization: Bearer YOUR_API_KEY"

JavaScript / Node.js

const response = await fetch(
  "https://www.adlibrary.com/next/brand-ads?" +
  new URLSearchParams({
    keyword: "nike",
    platform: "facebook",
    geo: "US",
    pageSize: "10",
  }),
  { headers: { Authorization: "Bearer YOUR_API_KEY" } }
);

const { ads, total } = await response.json();
console.log(`Found ${total} ads`);

Python

import requests

response = requests.get(
    "https://www.adlibrary.com/next/brand-ads",
    params={
        "keyword": "nike",
        "platform": "facebook",
        "geo": "US",
        "pageSize": 10,
    },
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)

data = response.json()
print(f"Found {data['total']} ads")

API Parameters

All parameters are optional. Combine them to build precise queries.

ParameterTypeDescription
keywordstringSearch by brand name, product, or ad copy keyword
platformstringFilter by platform: facebook, instagram, tiktok, youtube, google, admob, linkedin
geostringFilter by country code (US, GB, DE, FR, etc.)
adsTypestringFilter by format: video, image, carousel
daysBacknumberOnly return ads from the last N days (default: 30)
sortFieldstringSort by: impressions, startedRunning, relevance
pageSizenumberResults per page (default: 20, max: 100)

Start Building with Ad Intelligence

Free tier includes API access for testing. Upgrade for higher rate limits, more results, and historical data access.

View Pricing Plans

Frequently Asked Questions

What is the AdLibrary API?
The AdLibrary API is a REST API that lets you programmatically search, filter, and retrieve advertising data across 7+ platforms including Facebook, Instagram, TikTok, YouTube, and Google. It returns ad creative data, metadata, platform information, and performance signals.
How is this different from Meta's Ad Library API?
Meta's official Ad Library API is limited to political and social-issue ads in select countries, requires complex authentication, and has strict rate limits. AdLibrary's API covers all ad types (commercial, brand, product) across multiple platforms with simple token-based authentication and generous rate limits.
What data does the API return?
Each ad result includes: ad creative (image/video URL), headline and body copy, advertiser name, platform, ad format (video/image/carousel), estimated impressions, start date, geographic targeting, and a direct link to view the ad in context.
Is there a free tier?
Yes. AdLibrary offers a free plan that includes API access with rate limits suitable for testing and small-scale projects. Paid plans increase rate limits, result counts, and add features like historical data access and webhook notifications.
Can I use the API to monitor competitor ads automatically?
Yes. You can set up scheduled API calls (via cron jobs, n8n, Zapier, or custom scripts) to poll for new ads from specific brands or keywords. Combined with webhook integrations, you can get real-time alerts when competitors launch new campaigns.
What programming languages are supported?
The API is a standard REST API that works with any programming language. We provide code examples in JavaScript/Node.js, Python, and cURL. Any language that can make HTTP requests can use the API.

Related Resources