Social Media · Facebook Scraper
Facebook Ad Library Detail API
Pull active Facebook ad creatives with advertiser, spend range and run dates, as JSON. No headless browsers, no captchas, proxies included.
// Facebook · Ad Library Detail
curl -H "X-API-Key: hp_live_••••••••" \
"https://hproxy.com/v1/scrapers/facebook/ad-library-detail"
// → { "data": { … }, "credits_used": 1 }
From Request to Clean JSON
You write one line. We do everything between the request and the data.
You send
One API call
GET the Facebook endpoint with your key. That's all your code does.
We handle
Proxies · captchas · parsing
Residential exit, anti-bot walls, JS rendering and extraction, all server-side, on us.
You get
Clean JSON
A structured object every time. No HTML, no scraping code, no maintenance.
The Facebook Ad Library Detail endpoint is one API call: send the target (a handle, URL, ID or query) with your HProxy key and get back a clean, structured JSON object. Pull active Facebook ad creatives with advertiser, spend range and run dates, as JSON. HProxy runs the proxies, sessions, anti-bot handling and parsing server-side, so there is no headless browser to babysit and no parser to keep fixing when Facebook changes its markup. You only ever touch the JSON.
What the Facebook Ad Library Detail API returns
creatives[]
Each active ad's media, copy and format.
advertiser
The page/advertiser running the ad.
spend / impressions
Spend range and reach where disclosed.
dates
First-seen and last-seen run dates.
Example response
{
"advertiser": { "name": "Brand Inc", "pageId": "104..." },
"creatives": [
{ "format": "video", "body": "Shop the new drop", "media": "https://.../ad.mp4" }
],
"spend": { "min": 5000, "max": 10000, "currency": "USD" },
"dates": { "firstSeen": "2026-06-30", "lastSeen": "2026-07-17" }
}Trimmed for brevity. Every call returns the full object with all fields listed here.
Scraping Facebook ad library detail in three steps
Create a free account
Sign up and top up any amount. The balance pays for every HProxy product and never expires.
Grab your API key
One key from the dashboard authenticates every scraper, Facebook ad library detail included.
Call the endpoint
Send the target to the Facebook Ad Library Detail endpoint and read the JSON. That is the whole integration.
No captchas, ever
Anti-bot walls, JS rendering and rate limits are handled server-side. You call an API, that is the whole job.
Residential-backed
Every request exits through HProxy's own residential network, so it looks like a real user on a real device.
Pay per call
No subscription, no seat licenses. Calls are billed from your balance and the balance never expires.
Fresh on every call
Responses are scraped live at request time, no stale cache dressed up as data.
Failures are free
Automatic retries first; if an extraction still fails, the call is not charged.
Scales with you
From one call to millions: same endpoint, same price curve, volume discounts as you grow.
What people build with it
Spy on competitor ad creatives and messaging.
Track ad spend and campaign timing in your niche.
Build a swipe file of what is running right now.
Facebook Ad Library Detail pricing
$3.00
per 1,000 calls · 0.3¢ each
Pay per call, no subscription
Failed extractions are not charged
Proxies included in the price
Facebook Ad Library Detail scraper FAQ
How do I scrape Facebook ad library detail?
Send one authenticated HTTPS request to the Facebook Ad Library Detail endpoint with the target and your HProxy API key. Pull active Facebook ad creatives with advertiser, spend range and run dates, as JSON. No proxies, no headless browser and no parsing on your side. The response is ready-to-use JSON.
What does the Facebook ad library detail API return?
A structured JSON object with the full ad library detail data Facebook exposes publicly. See the fields listed above. The schema is consistent across calls, so you integrate once and rely on it.
How much does the Facebook ad library detail scraper cost?
It is pay per call from your HProxy balance, starting at $3.00 per 1,000 calls (0.3¢ per call). No subscription, no monthly minimum, and failed extractions are retried and not charged.
Do I need my own proxies to scrape Facebook?
No. Every call runs on HProxy's own residential network behind the scenes, so requests look like real users. The proxy layer is already included in the per-call price.
Is scraping Facebook ad library detail allowed?
The API only accesses publicly available Facebook data, the same pages anyone can open in a browser. You are responsible for using the data in line with applicable laws and Facebook's terms for your use case.