Adlibrary Search Ads Data API
Scrape Facebook Adlibrary Search Ads data with one API call. Searches the Facebook Ad Library for ads matching a keyword. Returns matching ads with creative text, images, sponsor info, and status.
Try the Facebook Adlibrary Search Ads API
See real data before writing a single line
Works with 21 platforms
What can you do with the Adlibrary Search Ads API?
The Adlibrary Search Ads endpoint gives you structured, AI-enriched Facebook data in a single request. No scraping infrastructure to build or maintain.
Example Request
GET /v1/v1/facebook/adLibrary/search/ads?query=artificial intelligenceParameters
| Parameter | Required | Description |
|---|---|---|
| query | Yes | Search keyword or phrase to find ads in the Facebook Ad Library |
| sort_by | No | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. (total_impressions | relevancy_monthly_grouped) |
| search_type | No | If you want to search by exact phrase or not (keyword_unordered | keyword_exact_phrase) |
| ad_type | No | Search for all ads or only political and issue ads (all | political_and_issue_ads) |
| country | No | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. |
| status | No | Status of the ad. Defaults to ACTIVE. (ALL | ACTIVE | INACTIVE) |
| media_type | No | Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme. (ALL | IMAGE | VIDEO | MEME | IMAGE_AND_MEME | NONE) |
| start_date | No | Impressions start date. Needs to be in YYYY-MM-DD format. |
| end_date | No | Impressions end date. Needs to be in YYYY-MM-DD format. |
| cursor | No | Cursor to paginate through results |
| trim | No | Set to true for a trimmed down version of the response |
How does the Facebook Adlibrary Search Ads API work?
Send a GET request with your API key and get back clean, structured JSON. Every response follows our unified schema with AI-computed fields.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 21 platforms covering 10B+ monthly active users.
One schema, every platform
Query 21 platforms with identical response structures. Write your integration once.
AI-enriched, not just scraped
Computed fields on every response: engagement_rate, estimated_reach, content_category, language.
No code required
Visual Data Explorer — paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://api.socialcrawl.com/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": { "username": "charlidamelio", "followers": 124000 },
"engagement": { "likes": 5200, "engagement_rate": 0.045 },
"metadata": { "language": "en", "content_category": "food" }
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usAsk AI about SocialCrawl
Ready to scrape Facebook Adlibrary Search Ads data?
Get your API key and start pulling Facebook data in under 60 seconds.
