Facebook Company Ads API
Bulk-list Ad Library content with full metadata for each item.
GET request to /v1/ad-library/facebook/company-ads that responds with clean JSON, costs 20 credits, and is cached for 24 hours (repeat calls are free). Start with 100 free credits — no credit card.What is the Facebook Company Ads API?
The Facebook Company Ads API lets you list items in bulk with metadata from Ad Library with a single REST call. No OAuth, no scraping infrastructure, and no platform SDKs — send the URL, get clean structured JSON back. Results are cached for 24 hours, so repeat lookups are instant and free.
What you get
- Bulk list of items with full metadata
- View counts, dates, and direct URLs
- Configurable result limit
- Ideal for monitoring and content pipelines
Try it
Fill in the parameters below and copy a ready-to-run request in your language of choice.
Parameters
curl "https://api.captapi.com/v1/ad-library/facebook/company-ads?url=https%3A%2F%2Fadstransparency.google.com%2F" \
-H "Authorization: Bearer capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"cached": false,
"creditsUsed": 20,
"data": {
"total": 2,
"items": [
{
"title": "Latest upload",
"url": "https://example.com/a",
"views": 90120,
"publishedAt": "2025-01-12"
},
{
"title": "Previous upload",
"url": "https://example.com/b",
"views": 75230,
"publishedAt": "2025-01-04"
}
]
}
}Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Result
totalNumber of items returned.
Each item
Each item in items contains:
titleItem title.urlDirect URL to the content.viewsView count.publishedAtPublish date (ISO 8601).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Public Ad Library URL. |
| limit | integer | No | Max items to return (default 20, max 200). Billed per result. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 20 credits — billed per result, so the exact amount scales with how many items you request. Repeat calls for the same request are served from cache for free (metrics refresh within ~1 hour).
facebook_ad_library_company_ads via @captapi/mcp. Set it up →How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/ad-library/facebook/company-adsand parse the JSON response.
Use cases
Content Pipelines
Ingest a channel's catalog in bulk.
Monitoring
Detect new uploads automatically.
Archiving
Snapshot a creator's full library.
Analytics
Aggregate performance across many videos.
Frequently asked questions
What does the Facebook Company Ads API do?+
The Facebook Company Ads API lets you list items in bulk with metadata from a public Ad Library video using one GET request to /v1/ad-library/facebook/company-ads. It returns clean JSON — no OAuth or scraping setup required.
How many credits does the Facebook Company Ads API cost?+
Each successful call costs 20 credits. Responses are cached for 24 hours, and cached results cost 0 credits. Failed or empty results are never charged.
Do I need a Ad Library API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, and Rumble. We handle proxies, rate limits, retries, and authentication for you.
Is the Facebook Company Ads API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON, automatic retries, and a shared 24-hour cache. Use it for RAG pipelines, analytics, monitoring, and content automation.
More Ad Library APIs
Ready to use the Facebook Company Ads API?
Sign up, grab your key, and make your first call in 60 seconds.