LinkedIn Ad Library
GET /v1/ad-library/linkedin/ad-details

LinkedIn Ad Details API

One LinkedIn Ad Library ad by ID — headline, targeting, advertiser.id from /company/{id} (2 credits).

2 credits per request
TL;DR
One LinkedIn Ad Library ad by ID — headline, targeting, advertiser.id from /company/{id} (2 credits). The LinkedIn Ad Details API (LinkedIn Ad Library) is a single authenticated 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. Detail pages add headline, destination/landingUrl, targeting{}, impressionsByCountry[], and advertiser.url when LinkedIn publishes them. advertiser.id is extracted from linkedin.com/company/{id} so you can join to LinkedIn Company endpoints. Schema keeps null keys for country/logo so details is never thinner by omission vs search. Flat 2 credits native; Apify fallback capped at 5.

What you get

  • headline + landingUrl/destination when published
  • advertiser.id from /company/{id} (joinable)
  • targeting{} + impressionsByCountry[]
  • Stable null keys (country, logo) — no silent field loss
  • Flat 2 credits native; Apify cap 5

Try it

Open in Playground

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

Sign in to run live
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": []
  }
}

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, cached, creditsUsed, 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.
  • firstShownWhen the ad was first shown.
  • lastShownWhen the ad was last shown.
  • 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.
  • startDateAd start date (YYYY-MM-DD) when LinkedIn exposes a ran-from range.
  • endDateAd end date (YYYY-MM-DD) when LinkedIn exposes a 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).

Advertiser

The advertiser object contains:

  • idStable platform ID for the item.
  • nameName of the item or account. On profile endpoints: deprecated alias of displayName (one release).
  • 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

NameTypeRequiredDescription
urlstringYesLinkedIn 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.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. Envelope includes cached + cachedAt on hits.

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.

Using an AI agent? This endpoint is the MCP tool linkedin_ad_library_ad_details via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/ad-library/linkedin/ad-details and 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. 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.

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.