How to get Ad Library linkedin ad details
GET request to /v1/ad-library/linkedin/ad-details with your input. You get clean JSON back in seconds for 17 credits per call — no OAuth, scraping or platform SDKs. Get a LinkedIn Ad Library ad — creative, advertiser, and delivery fields as structured JSON.How to get Ad Library linkedin 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%2F1475728386" \
-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": "1475728386",
"url": "https://www.linkedin.com/ad-library/detail/1475728386",
"text": "The apps you know go further with Copilot. Explore limited time offers today.",
"headline": "Microsoft Outlook with Copilot",
"adFormat": "Single Image Ad",
"advertiser": {
"name": "Microsoft 365",
"url": "https://www.linkedin.com/company/3509299"
},
"media": [
"https://media.licdn.com/dms/image/v2/D4D10AQFWrEKj4VaX3g/image-shrink_1280/B4DZ7vxdWJHgAc-/0/1782139180792/Copilot_LinkedIn-Theme4_USA_1200x1200_PHA_SubTheme4L-SU_SMB-EN_NA_Standard_SBAN_LEA_NA_1jpg?e=2147483647&v=beta&t=nrMFf9aBVU7jPCZrhg2A-V0VMOscElqrqWshkXp_r7Y"
]
}
}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. Default false — always fetch fresh data. |
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 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 17 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. 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, 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 shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
Ready to get Ad Library linkedin ad details?
Start free with 100 credits — no credit card required.
Get your free API key