---
title: "LinkedIn Ad Details API"
method: GET
path: "/v1/ad-library/linkedin/ad-details"
tags: ["LinkedIn Ad Library"]
---

# LinkedIn Ad Details API

`GET /v1/ad-library/linkedin/ad-details`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/ad-library/linkedin/ad-details`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

One LinkedIn Ad Library ad by ID.

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}; advertiser.location is null in practice (LinkedIn's Ad Library shows no advertiser location). Envelope source is native. Flat 2 credits; when the Ad Library can't be read the call is 503, retryable, 0 credits.

Docs: https://captapi.com/apis/linkedin-ad-library-ad-details

## Query parameters

- `url` string, required
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `id` string: Stable platform ID for the item.
    - `url` string: Canonical URL of the item.
    - `text` string: Text content.
    - `cta` string: Call-to-action text.
    - `landingUrl` string: Landing page the ad links to.
    - `adFormat` unknown
    - `firstShown` string: Ran-from start as YYYY-MM-DD when LinkedIn publishes it. Alias of startDate.
    - `lastShown` string: Ran-from end as YYYY-MM-DD when LinkedIn publishes it. Alias of endDate.
    - `impressions` string: Estimated ad impressions.
    - `advertiser` object
      - `id` string: Id of this advertiser item.
      - `name` string: Name of this advertiser item.
      - `url` string: Canonical URL of the item.
      - `logo` string: Logo image URL.
    - `media` unknown[]: Media attached to the item.
      - unknown
    - `description` string: Description text.
    - `destinationUrl` string: Outbound click-through / landing URL when the platform exposes one.
    - `adDuration` string: LinkedIn 'Ran from … to …' availability string.
    - `startDate` string: Alias of firstShown — LinkedIn publishes one Ran-from range.
    - `endDate` string: Alias of lastShown — LinkedIn publishes one Ran-from range.
    - `totalImpressions` string: Estimated total impressions band from LinkedIn Ad Library (e.g. 1k-5k).
    - `impressionsByCountry` object[]
      - `country` string: Country 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).
      - `impressions` string: Estimated ad impressions.
    - `targeting` object
      - `language` string: Detected or requested language code.
      - `location` string: Location shown on the profile or item.
    - `carouselImages` unknown[]: Ordered carousel creative image URLs when the ad is a carousel.
      - unknown
    - `paidForBy` string: Payer entity string from LinkedIn's 'Paid for by' line.
    - `countries` unknown[]: Countries (array).
      - unknown
    - `platformNote` string: 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.
    - `source` unknown

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
