Platforms/LinkedIn/Ad search

LinkedIn Ad Library Search API

GET ยท 1 credit

Send an advertiser or words, and get their ads from LinkedIn's Ad Library, newest first, 24 a page.

GET /v1/linkedin/ad-library/ads/search

What people use it for

  • Competitor ad monitoring: list a competitor's newest LinkedIn ads every week.
  • Market research: see how a category advertises to professionals, by keyword and country.

How it works with other endpoints

Each ad's id goes to Ad for its payer, full text and video.

Limits

  • 24 ads a page, newest first.
  • Dates reach back up to a year, and end yesterday at the latest.

Example request

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

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

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

Parameters

ParameterRequiredDescription
companyNoThe advertiser's name, as you'd type it.
keywordNoWords in the ads.
company_idNoThe advertiser's company id.
countriesNoOnly ads shown in these countries: two-letter codes, separated by commas (US,CA).
start_dateNoOnly ads shown from this day on (YYYY-MM-DD), within the last year. Give end_date with it.
end_dateNoOnly ads shown until this day (YYYY-MM-DD), yesterday at the latest. Give start_date with it.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "1600913504",
      "url": "https://www.linkedin.com/ad-library/detail/1600913504",
      "advertiser": "Microsoft",
      "advertiser_url": null,
      "advertiser_logo": "https://media.licdn.com/dms/image/microsoft-logo.png",
      "format": "Video Ad",
      "creative_type": "SPONSORED_VIDEO",
      "paid_by": null,
      "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": null
    }
  ],
  "page": {
    "next_cursor": "eyJ0b2tlbiI6IkVnWlEifQ",
    "has_more": true
  },
  "meta": {
    "platform": "linkedin",
    "endpoint": "ad_search",
    "params": {
      "company": "microsoft"
    },
    "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

Which filters are there?

company (the advertiser's name) or company_id, keyword, countries (two-letter codes, separated by commas) and a date range.

How far back can I search?

start_date reaches back up to a year, and end_date is yesterday at the latest. Give the two together.

How do I get an ad's video and payer?

Send its id to Ad.

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