LinkedIn Ad Library

LinkedIn Ad Details API

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

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

Query parameters

urlstring required

LinkedIn Ad Library URL or numeric ad ID (also accepts urn:li:sponsoredCreative:ID). Inputs that are neither numeric nor an ad-library detail URL are a definitive 400. 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.

cacheboolean

Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Response

Success. The data object for this endpoint.

successunknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.