Platforms/LinkedIn/Ad

LinkedIn Ad Library Ad API

GET ยท 1 credit

Send an ad's Ad Library id or link, and get its advertiser, who paid for it, its format, headline, text and media.

GET /v1/linkedin/ad-library/ads

Example request

const url = `${process.env.API_URL}/v1/linkedin/ad-library/ads?ad_id=1600913504`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
ad_idNoAn ad's id in the Ad Library: the digits at the end of its link. Give ad_id or url.
urlNoAn ad's page in LinkedIn's Ad Library: linkedin.com/ad-library/detail/<id>. Give ad_id or url.

Example response

{
  "data": {
    "id": "1600913504",
    "url": "https://www.linkedin.com/ad-library/detail/1600913504",
    "advertiser": "Microsoft",
    "advertiser_url": "https://www.linkedin.com/company/microsoft",
    "advertiser_logo": "https://media.licdn.com/dms/image/microsoft-logo.png",
    "format": "Video Ad",
    "creative_type": "SPONSORED_VIDEO",
    "paid_by": "Microsoft Corporation",
    "headline": "Build what's next with AI",
    "text": "See how teams ship faster with AI agents.",
    "image": "https://media.licdn.com/dms/image/ad-thumbnail.jpg",
    "video_url": "https://dms.licdn.com/playlist/vid/ad-video.mp4"
  },
  "page": null,
  "meta": {
    "platform": "linkedin",
    "endpoint": "ad",
    "params": {
      "ad_id": "1600913504"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

What does it give that Ad search doesn't?

The advertiser's LinkedIn page, who paid for the ad, its whole text and its video file.

Where do ad ids come from?

From Ad search, or the digits at the end of an Ad Library link (linkedin.com/ad-library/detail/<id>).

Does it give impressions or spend?

No. It gives the ad's advertiser, payer, format, headline, text and media.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required