How to get LinkedIn Ad Library ad details
GET request to /v1/ad-library/linkedin/ad-details with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. One LinkedIn Ad Library ad by ID — headline, targeting, advertiser.id from /company/{id} (2 credits).How to get LinkedIn Ad Library ad details (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the LinkedIn Ad Details API
Send an authenticated GET request to /v1/ad-library/linkedin/ad-details with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
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_..."What the response looks like
{
"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": []
}
}Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request 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. Envelope includes cached + cachedAt on hits. |
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. Hits include cached + cachedAt. 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.
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. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.
Ready to get LinkedIn Ad Library ad details?
Start free with 100 credits — no credit card required.
Get your free API key