Facebook Ad Library Search Companies API
Search Ad Library programmatically and get structured, ranked results.
GET request to /v1/ad-library/facebook/search-companies 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 Ad Library Search Companies API?
The Facebook Ad Library Search Companies API lets you search and return matching results 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
- Ranked, structured result list
- Title, URL, author, and thumbnail per result
- Engagement metrics where available
- Configurable result limit
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/search-companies?q=skincare" \
-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,
"results": [
{
"title": "Top result",
"url": "https://example.com/1",
"author": "@creator",
"views": 530120
},
{
"title": "Second result",
"url": "https://example.com/2",
"author": "@maker",
"views": 210430
}
]
}
}Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Result
totalNumber of results returned.
Each result
Each item in results contains:
titleResult title.urlDirect URL to the content.authorCreator handle.viewsView count where available.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search query or keywords (min 2 characters). |
| 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_search_companies 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/search-companiesand parse the JSON response.
Use cases
Trend Discovery
Find trending content by keyword or hashtag.
Content Sourcing
Build feeds and playlists programmatically.
Monitoring
Track topics, brands, and competitors.
Research
Sample large sets of content for analysis.
Frequently asked questions
What does the Facebook Ad Library Search Companies API do?+
The Facebook Ad Library Search Companies API lets you search and return matching results from a public Ad Library query using one GET request to /v1/ad-library/facebook/search-companies. It returns clean JSON — no OAuth or scraping setup required.
How many credits does the Facebook Ad Library Search Companies 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 Ad Library Search Companies 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 Ad Library Search Companies API?
Sign up, grab your key, and make your first call in 60 seconds.