LinkedIn Ad Details API
One LinkedIn Ad Library ad by ID. LinkedIn withholds Ran-from / impressions / targeting on most creatives — those keys are omitted, not 404.
GET request to /v1/ad-library/linkedin/ad-details that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the LinkedIn Ad Details API?
Paste a LinkedIn Ad Library URL or ad ID. A real ad without a Ran-from line is 200 with those keys omitted — 404 only when the page is not an ad. LinkedIn publishes run dates, impressions and targeting only on a subset of creatives; ad-details cannot invent them. Dates are YYYY-MM-DD; startDate/endDate alias firstShown/lastShown. advertiser.id is extracted from linkedin.com/company/{id}. Envelope source is native|extended. Flat 2 credits native; extended fallback capped at 5.
What you get
- 200 with omitted transparency keys when LinkedIn withholds Ran-from (not 404)
- source native|extended + platformNote on the limit
- advertiser.id from /company/{id} (joinable)
- YYYY-MM-DD firstShown/lastShown when LinkedIn publishes them
- Flat 2 credits native; Apify cap 5
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/ad-library/linkedin/ad-details?url=https%3A%2F%2Fwww.linkedin.com%2Fad-library%2Fdetail%2F1456323573" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"platform": "linkedin_ad_library",
"id": "1456323573",
"url": "https://www.linkedin.com/ad-library/detail/1456323573",
"text": "Drowning in one off scripts and manual steps? In a free 15 minute consult, our experts help streamline IT Infrastructure Operations with PowerShell.",
"cta": "Learn more",
"landingUrl": "https://calendly.com/d/cvqn-kt5-t72/free-consultation?utm_campaign=32735245-PowerHouse&utm_source=linkedin&utm_medium=paidsocial&utm_term=free%20consultation&utm_content=calendly%20link&trk=ad_library_ad_preview_content_image",
"adFormat": null,
"firstShown": "2026-07-28",
"lastShown": "2026-08-02",
"impressions": "1k-5k",
"advertiser": {
"id": "16217038",
"name": "ScriptRunner Software GmbH",
"url": "https://www.linkedin.com/company/16217038",
"logo": "https://media.licdn.com/dms/image/v2/C4D0BAQFYeG3JIAlUQg/company-logo_100_100/company-logo_100_100/0/1630544718632/scriptrunner_logo?e=1787184000&v=beta&t=CeO2dmEiPsb-6gTcpJtkBMm0c4JSLZ6b6zfm44wc_7s"
},
"media": [],
"description": "Drowning in one off scripts and manual steps? In a free 15 minute consult, our experts help streamline IT Infrastructure Operations with PowerShell.",
"destinationUrl": "https://calendly.com/d/cvqn-kt5-t72/free-consultation?utm_campaign=32735245-PowerHouse&utm_source=linkedin&utm_medium=paidsocial&utm_term=free%20consultation&utm_content=calendly%20link&trk=ad_library_ad_preview_content_image",
"adDuration": "Ran from Jul 28, 2026 to Aug 2, 2026",
"startDate": "2026-07-28",
"endDate": "2026-08-02",
"totalImpressions": "1k-5k",
"impressionsByCountry": [
{
"country": "United States",
"impressions": "97%"
},
{
"country": "Canada",
"impressions": "3%"
}
],
"targeting": {
"language": "Targeting includes English",
"location": "Targeting includes Germany, Switzerland and Netherlands, Benelux, DACH, United States, Canada, Austria, Belgium, United Kingdom"
},
"carouselImages": [],
"paidForBy": "ScriptRunner Software GmbH",
"countries": [],
"platformNote": "LinkedIn publishes run dates, impressions and targeting only on a subset of Ad Library creatives. Missing firstShown/impressions/targeting means the detail page has no Ran-from line — not a scrape miss."
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success and a data object with the following fields:
Top-level fields
platformPlatform identifier for this response (matches the endpoint's platform).idStable platform ID for the item.urlCanonical URL of the item.textText content.ctaCall-to-action text.landingUrlLanding page the ad links to.adFormatFormat of the ad creative.firstShownRan-from start as YYYY-MM-DD when LinkedIn publishes it. Alias of startDate.lastShownRan-from end as YYYY-MM-DD when LinkedIn publishes it. Alias of endDate.impressionsEstimated ad impressions.mediaMedia attached to the item.descriptionDescription text.destinationUrlOutbound click-through / landing URL when the platform exposes one.adDurationLinkedIn 'Ran from … to …' availability string.startDateAlias of firstShown — LinkedIn publishes one Ran-from range.endDateAlias of lastShown — LinkedIn publishes one Ran-from range.totalImpressionsEstimated total impressions band from LinkedIn Ad Library (e.g. 1k-5k).carouselImagesOrdered carousel creative image URLs when the ad is a carousel.paidForByPayer entity string from LinkedIn's 'Paid for by' line.countriesCountries (array).sourcenative (flat 2 credits) or extended (capped at 5). Also mirrored in X-Captapi-Source.platformNoteLinkedIn publishes run dates, impressions and targeting only on a subset of Ad Library creatives. Missing firstShown/impressions/targeting means the detail page has no Ran-from line — not a scrape miss.
Advertiser
The advertiser object contains:
idId of this advertiser item.nameName of this advertiser item.urlCanonical URL of the item.logoLogo image URL.
Impressions by country
Each item in impressionsByCountry contains:
countryCountry for the request context. On popular-creators top-level: ISO feed market you queried (e.g. US) — not each creator's home country (see region).impressionsEstimated ad impressions.
Targeting
The targeting object contains:
languageDetected or requested language code.locationLocation shown on the profile or item.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | LinkedIn Ad Library URL or ad ID. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble. |
| cache | boolean | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.
linkedin_ad_library_ad_details 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/linkedin/ad-detailsand parse the JSON response.
Use cases
Analytics
Track views, likes, and engagement over time.
Competitor Monitoring
Benchmark the performance of other creators.
Dashboards
Power reporting and BI with real metadata.
Content Curation
Filter and rank videos by performance.
Frequently asked questions
What does the LinkedIn Ad Details API do?+
The LinkedIn Ad Details API lets you fetch full metadata and key stats from a public LinkedIn Ad Library ad using one GET request to /v1/ad-library/linkedin/ad-details. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the LinkedIn Ad Details API cost?+
Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.
Do I need a LinkedIn 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, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Why did ad-details return 200 with no dates for a real ad?+
LinkedIn withheld the Ran-from line on that creative. A real ad without transparency fields is 200 with those keys omitted — 404 only when the page is not an ad. ad-details cannot invent firstShown, impressions, or targeting when LinkedIn does not publish them.
Is the LinkedIn Ad Details API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.
More LinkedIn Ad Library APIs
Ready to use the LinkedIn Ad Details API?
Sign up, grab your key, and make your first call in 60 seconds.