LinkedIn Ad Library Ads API

Our LinkedIn Ad Library API returns the ads of a search as the ads array, in the same order as on LinkedIn Ad Library. The fields of an ad depend on its format, and fields that an ad doesn't have are left out.

The API endpoint is https://serpapi.com/search?engine=linkedin_ad_library

Head to the playground for a live and interactive demo.

API examples

Example of single image and video ads

Single image and video ads have the text of the ad as snippet, shortened by LinkedIn Ad Library, the image of the ad or the cover of the video, and the headline under it, if any. Posts of members have the headline of the member in advertiser.headline.

Example of single image and video ads Example of single image and video ads

JSON Example

{
  "search_metadata": {
    "id": "6adc995efd6b6f4e9271f16f",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/ucppFyqHKpsOin1WcZBXU48K-is6s1DZjiIxLhlB9Wk/6adc995efd6b6f4e9271f16f.json",
    "markdown_endpoint": "https://serpapi.com/searches/ucppFyqHKpsOin1WcZBXU48K-is6s1DZjiIxLhlB9Wk/6adc995efd6b6f4e9271f16f.md",
    "created_at": "2026-10-24 11:41:18 UTC",
    "processed_at": "2026-10-24 11:41:18 UTC",
    "linkedin_ad_library_url": "https://www.linkedin.com/ad-library/search?keyword=Coffee",
    "raw_html_file": "https://serpapi.com/searches/ucppFyqHKpsOin1WcZBXU48K-is6s1DZjiIxLhlB9Wk/6adc995efd6b6f4e9271f16f.html",
    "total_time_taken": 1.1
  },
  "search_parameters": {
    "engine": "linkedin_ad_library",
    "q": "Coffee"
  },
  "search_information": {
    "total_results": 90077
  },
  "ads": [
    {
      "position": 1,
      "ad_id": "1656775326",
      "format": "single_image",
      "advertiser": {
        "name": "Gabi Barat",
        "headline": "CFO, Strategic and Operational CFO, Business Transformation | M&A | Cash Flow Optimization | Private Equity | Pharmaceuticals | Healthcare | Nuclear Medicine | Radiology | Dialysis | Hospital Systems | SNF |",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D5603AQFYhWtRXwnPAg/profile-displayphoto-scale_100_100/B56aAaer7UHMAc-/0/1787150648955?e=1794441600&v=beta&t=X1SQRtSflcEB8bjY0Oo9TEI1YXY7PnWZWA8c-rAVYGc"
      },
      "snippet": "Thumbs up from Kidney Week 2026 in Denver! 👍\n\nThere's something energizing about being in a room full of people who've …",
      "image": "https://media.licdn.com/dms/image/v2/D5622AQGbsF-efVj7jw/feedshare-shrink_1280/B56aFlhuEsJkAM-/0/1792704701374?e=2147483647&v=beta&t=ibBFt0xm344lH8pEU4M4jMO5oANb0EyUEnC4psZN8ZU",
      "details_link": "https://www.linkedin.com/ad-library/detail/1656775326"
    },
    {
      "position": 2,
      "ad_id": "1592708583",
      "format": "video",
      "advertiser": {
        "name": "Forbes",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D4E0BAQF67bPz45hiLw/company-logo_100_100/company-logo_100_100/0/1696813943410/forbes_magazine_logo?e=1794441600&v=beta&t=9i-vla1ZdIxafP-9ip-sbQeQum_xDsmjntmncFUDwuw"
      },
      "snippet": "From a coffee shop idea to a $20 million-plus entertainment business, Ghost City Tours founder Tim Nealon has expanded h…",
      "image": "https://media.licdn.com/dms/image/v2/D5610AQEO3gWmyejm_A/videocover-high/B56aFlNJyNHUAo-/0/1792699317329?e=2147483647&v=beta&t=vCIY-JMBIcY5VfiQCGVIFhjeDpOC6qSoeKy0YCXIVQE",
      "headline": "How I Went From Concept To Cash Flow In 72 Hours",
      "details_link": "https://www.linkedin.com/ad-library/detail/1592708583"
    },
    ...
  ],
  "serpapi_pagination": {
    "next_page_token": "1611345954-1792696696974",
    "next": "https://serpapi.com/search.json?engine=linkedin_ad_library&next_page_token=1611345954-1792696696974&q=Coffee"
  }
}

Example of message and spotlight ads

Message ads have the sender and the text of the message. Spotlight ads have a headline and a description. Ads personalized with the name of the viewer keep the %FIRSTNAME% placeholder, as on LinkedIn Ad Library.

Example of message and spotlight ads Example of message and spotlight ads

JSON Example

{
  ...
  "ads": [
    {
      "position": 1,
      "ad_id": "262369436",
      "format": "message",
      "advertiser": {
        "name": "LinkedIn",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQHaVYd13rRz3A/company-logo_100_100/company-logo_100_100/0/1638831590218/linkedin_logo?e=1794441600&v=beta&t=hkHPc_6OcyPAyBkdhwt29gblEcQSRblKPUlqJXydcFs"
      },
      "message": {
        "sender": {
          "name": "Melissa Torres",
          "thumbnail": "https://media.licdn.com/dms/image/v2/D4D03AQH--Vldpi-5NQ/profile-displayphoto-shrink_100_100/profile-displayphoto-shrink_100_100/0/1664297083028?e=1794441600&v=beta&t=ivSsZoiD-3Mt5euwmZmzTmgJ-r7MYOrXSLYbXdXchi8"
        },
        "text": "Olá, %FIRSTNAME%.Meu nome é Melissa e faço parte da equipe do LinkedIn.Você sabia que é possível filtrar sua pesquisa de vagas por funções presenciais, híbridas ou remotas? Experimente hoje mesmo."
      },
      "details_link": "https://www.linkedin.com/ad-library/detail/262369436"
    },
    ...
    {
      "position": 6,
      "ad_id": "217845834",
      "format": "spotlight",
      "advertiser": {
        "name": "LinkedIn for Marketing",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D4E10AQEhLdhy3bGWUA/image-shrink_1280/image-shrink_1280/0/1685620083642?e=1793448000&v=beta&t=C6K6Y3skh6Emw0KOlRFIbaMWkXE9eMaKf0MPK2hEZK0"
      },
      "headline": "Få bättre insikter och stärk dina LinkedIn Ads",
      "description": "%FIRSTNAME%, förstärk din marknadsföring",
      "details_link": "https://www.linkedin.com/ad-library/detail/217845834"
    },
    ...
  ]
}

Example of event and text ads

Event ads have the title, date, location, and organizer of the event, with Online as the location of online events. Text ads have a headline, a description, and a small image.

Example of event and text ads Example of event and text ads

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 2,
      "ad_id": "218291274",
      "format": "event",
      "advertiser": {
        "name": "Environmental Impacts Academy",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQERau-GHLriFA/company-logo_100_100/company-logo_100_100/0/1643822233270/environmental_impacts_academy_logo?e=1794441600&v=beta&t=BZfWlbYLfJOa-1b7V0GKSAFYnd-8Eiypviy1_7nnnkQ"
      },
      "snippet": "Join our chat about the environmental challenges in the textile & fashion industry and how Environmental LCA might help …",
      "image": "https://media.licdn.com/dms/image/v2/D4D1EAQEyRHqxyyaz7Q/event-background-image-crop_720_1280/event-background-image-crop_720_1280/0/1685638998991?e=2147483647&v=beta&t=BhjYyiu4ZKAcARbv4I5t_9M1zGX3TyzoGNJVnZJ6bmg",
      "event": {
        "title": "Webinar: Transparency and innovation: LCA and your wardrobe",
        "date": "June 20, 2023, 12:00 PM - June 20, 2023, 1:00 PM UTC",
        "location": "Online",
        "organizer": "Environmental Impacts Academy"
      },
      "details_link": "https://www.linkedin.com/ad-library/detail/218291274"
    },
    ...
    {
      "position": 12,
      "ad_id": "263258576",
      "format": "text",
      "advertiser": {
        "name": "Coach Mike Basevic - No Limits Nation",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D4E0BAQGPk4t_KdWspg/company-logo_100_100/B4EZ8chwZYKkAM-/0/1782890039246/no_limits_nation_logo?e=1794441600&v=beta&t=Mb2OSPY53WGvAS-nBAH0L3TH8VzYQPAe1vdO1vsok8k"
      },
      "image": "https://media.licdn.com/dms/image/v2/D5610AQExnJbpnK4G6A/image-shrink_1280/image-shrink_1280/0/1686084807205?e=2147483647&v=beta&t=KoJUGM099EbWcTyt5QSyS6cDu8QV9Z3tyEYY4A8_-s4",
      "headline": "Rediscover Happiness",
      "description": "Reduce corporate anxiety with \"The Anxiety-Free Executive\". Free Webinar!",
      "details_link": "https://www.linkedin.com/ad-library/detail/263258576"
    },
    ...
  ]
}

Example of job and follow company ads

Job ads have the title, company, and location of the job. Follow company ads, and job ads that don't promote a specific job, like the second ad below, only have a headline, and sometimes a description.

Example of job and follow company ads Example of job and follow company ads

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 2,
      "ad_id": "423914403",
      "format": "job",
      "advertiser": {
        "name": "Deloitte",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQGNtpblgQpJoQ/company-logo_100_100/company-logo_100_100/0/1662120928214/deloitte_logo?e=1794441600&v=beta&t=pC4fKJiNMjlmPZysLAgs4C5z3Imnjy4k3iAoK556rAY"
      },
      "snippet": "Starte direkt nach dem Abschluss deine Karriere als Consultant (m/w/d) in der steuerlichen Unternehmensberatung und betr…",
      "job": {
        "title": "Consultant Steuerberatung - Tax (m/w/d)",
        "company": "Deloitte",
        "location": "Stuttgart, Baden-WĂĽrttemberg, Germany"
      },
      "details_link": "https://www.linkedin.com/ad-library/detail/423914403"
    },
    ...
    {
      "position": 5,
      "ad_id": "474000796",
      "format": "job",
      "advertiser": {
        "name": "Deloitte",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQGNtpblgQpJoQ/company-logo_100_100/company-logo_100_100/0/1662120928214/deloitte_logo?e=1794441600&v=beta&t=pC4fKJiNMjlmPZysLAgs4C5z3Imnjy4k3iAoK556rAY"
      },
      "headline": "%FIRSTNAME%, explore jobs at Deloitte that match your skills",
      "details_link": "https://www.linkedin.com/ad-library/detail/474000796"
    },
    ...
    {
      "position": 7,
      "ad_id": "569698264",
      "format": "follow_company",
      "advertiser": {
        "name": "Deloitte Société d'Avocat",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQEfMfZDyGkAuw/company-logo_100_100/company-logo_100_100/0/1646045641303/taj_societe_avocats_logo?e=1794441600&v=beta&t=ZlAG2BJp6_zYloUkWfhgHa0SfgX0fNPpcuAOmF1uw8U"
      },
      "headline": "%FIRSTNAME%, grow your business with news and insights from Deloitte Société d'Avocat",
      "description": "Receive daily or weekly company updates",
      "details_link": "https://www.linkedin.com/ad-library/detail/569698264"
    },
    ...
  ]
}

Example of article and multi-image ads

Article ads have the title of the article, its beginning as snippet, and the newsletter it was published in, if any. Posts with several images keep the single_image format, with their images in carousel_cards, without titles.

Example of article and multi-image ads Example of article and multi-image ads

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 2,
      "ad_id": "1648489576",
      "format": "article",
      "advertiser": {
        "name": "Mario Rozario",
        "headline": "Manager, Technical Delivery & Enablement | Technical Evangelist | Author of Tech-Tonic Tremors Newsletter | Co-Host of The Pineapple Podcast | Distinguished Toastmaster",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D5603AQEq_aJ3WRAExQ/profile-displayphoto-shrink_100_100/profile-displayphoto-shrink_100_100/0/1722517736686?e=1794441600&v=beta&t=8kdQ0dCJSIDcTrmiOzgK3jdtKS-j9KiaBhx3MdMww-c"
      },
      "snippet": "📉 In February, Chinese AI models beat American ones on OpenRouter for the first time. By September, they held 57 to 67%…",
      "image": "https://media.licdn.com/dms/image/v2/D4D12AQGAqmSCshTSlA/article-cover_image-shrink_720_1280/B4DaFNswDcIkAQ-/0/1792304941247?e=2147483647&v=beta&t=gndRPY9Jge2MXQpJ6caAuLQhle7LEZqP-HzcujX1Yfc",
      "article": {
        "title": "Does AI Have a Pharma Problem?",
        "snippet": "Sometime in the week between the 9th and 15th of February 2026, there ...",
        "newsletter": {
          "name": "Tech-Tonic Tremors",
          "thumbnail": "https://media.licdn.com/dms/image/v2/D5612AQEZTUkZKgUfrQ/series-logo_image-shrink_100_100/series-logo_image-shrink_100_100/0/1733058150859?e=2147483647&v=beta&t=t-ejp5UWcl8UKtIYN3rCtHZlvprAtlQHjKEjmFosOAw"
        }
      },
      "details_link": "https://www.linkedin.com/ad-library/detail/1648489576"
    },
    ...
    {
      "position": 18,
      "ad_id": "1584913653",
      "format": "single_image",
      "advertiser": {
        "name": "Kym McNicholas",
        "headline": "Co-Founder/CEO @ Global PAD Association. | Healthcare Education",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D4E03AQHjUMBsooR54A/profile-displayphoto-shrink_100_100/profile-displayphoto-shrink_100_100/0/1689303184173?e=1794441600&v=beta&t=ljtii9wNg-f1D1-1YyMUBp0VNJmWo_akKk05TKBzhBY"
      },
      "snippet": "My first scientific poster presentation! And while we were one of nearly 1,000 posters tucked away in the back of the ro…",
      "carousel_cards": [
        {
          "image": "https://media.licdn.com/dms/image/v2/D5622AQGMF1NC-Z9qVg/feedshare-shrink_1280/B56aFPqE8jJkAM-/0/1792337795613?e=1794441600&v=beta&t=fR5htKpCmEN73worVCBTGSDjJILx_fLon79Atb2nNOY"
        },
        {
          "image": "https://media.licdn.com/dms/image/v2/D5622AQFIl-eyOGO0MQ/feedshare-shrink_1280/B56aFPqFRhIsAQ-/0/1792337794944?e=1794441600&v=beta&t=AC7I7K-A927ylIEL6E_gHMHKq0jOMtnfUUqAIGgQ-a4"
        },
        ...
      ],
      "details_link": "https://www.linkedin.com/ad-library/detail/1584913653"
    },
    ...
  ]
}

Example of a deleted ad

Deleted ads have deleted set to true. LinkedIn Ad Library shows a notice instead of their content, which is still returned.

Example of a deleted ad

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 10,
      "ad_id": "1656871366",
      "format": "video",
      "deleted": true,
      "advertiser": {
        "name": "Barnam Bora",
        "headline": "Director | 🚀 Microsoft 365 & Copilot Platform - Developer Advocacy at Microsoft",
        "thumbnail": "https://media.licdn.com/dms/image/v2/D5603AQGSE0Vm3Y51uA/profile-displayphoto-scale_100_100/B56Z8G_YdRHUAY-/0/1782528707361?e=1794441600&v=beta&t=6Yj3oMLEDQqu-B6gfz_gM31mz8T2mrNGy9S0uKuPBcE"
      },
      "snippet": "🚀 A proud milestone — my latest Generative AI patent! 💡\n\nIn this video, I share a little about the innovation behind i…",
      "image": "https://media.licdn.com/dms/image/v2/D5605AQG63QBOGaGx1A/videocover-high/B56aFjSJQHHQBM-/0/1792711277849?e=2147483647&v=beta&t=GKGIzVRsZ51zfTsjL1eTnJ7pMRUyBAdT4VU5YHqV4TI",
      "details_link": "https://www.linkedin.com/ad-library/detail/1656871366"
    },
    ...
  ]
}

Example of a restricted ad

Restricted ads, removed for violating the LinkedIn Advertising Policy, have restricted set to true. LinkedIn Ad Library hides their content and format, so they only have the advertiser name.

Example of a restricted ad

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 16,
      "ad_id": "249458253",
      "restricted": true,
      "advertiser": {
        "name": "AIHR | Academy to Innovate HR"
      },
      "details_link": "https://www.linkedin.com/ad-library/detail/249458253"
    },
    ...
  ]
}

Example of a Company Discovery ad

Company Discovery ads promote a company as an employer. They have format set to company_discovery, the company_size and location of the company in advertiser, and no ad_id. Their details_link leads to the employer brand page of the company on LinkedIn Ad Library.

Example of a Company Discovery ad

JSON Example

{
  ...
  "ads": [
    ...
    {
      "position": 12,
      "format": "company_discovery",
      "advertiser": {
        "name": "Huel",
        "company_size": "201-500 employees",
        "location": "England",
        "thumbnail": "https://media.licdn.com/dms/image/v2/C560BAQENx0DKByFHPA/company-logo_400_400/company-logo_400_400/0/1630600568888/huel_logo?e=2147483647&v=beta&t=z361w0oNiQ_46fuLdsuc19EdAjRWmv1UaNnMvDeV8CA"
      },
      "snippet": "At Huel, our culture is rooted in high performance; where drive, innovation and collaboration fuel everything we do, mak…",
      "image": "https://media.licdn.com/dms/image/v2/C561BAQFiyLt8IYACiA/company-background_400/company-background_400/0/1584573517626/huel_cover?e=2147483647&v=beta&t=UL05rI3rlNb11WGpKyi0zmfO_3tntwUoWwnaR9XIsEs",
      "headline": "Our Culture",
      "details_link": "https://www.linkedin.com/ad-library/employer-brand/9258292?talentMarketplaceChannelId=4"
    },
    ...
  ]
}

JSON structure overview

{
  ...
  "ads": [
    {
      "position": "Integer - Position of the ad on the page",
      "ad_id": "String - LinkedIn Ad Library ID of the ad. Missing for `company_discovery` ads.",
      "format": "String - Format of the ad. Missing for restricted ads. Supported values: `single_image`, `video`, `premiere_video`, `carousel`, `document`, `message`, `event`, `article`, `job`, `text`, `follow_company`, `spotlight`, `company_discovery`",
      "deleted": "Boolean - True when the ad was deleted",
      "restricted": "Boolean - True when the ad was removed for violating the LinkedIn Advertising Policy",
      "advertiser": {
        "name": "String - Name of the company or member that published the ad",
        "headline": "String - Headline of the member that published the ad. Only present for posts of members",
        "promoted_by": "String - Name of the company that promotes the post of a member. Only present for posts of members promoted by a company",
        "company_size": "String - Number of employees of the company. Only present for `company_discovery` ads",
        "location": "String - Location of the company (e.g. England). Only present for `company_discovery` ads",
        "thumbnail": "String - Link to the logo of the company or the profile photo of the member"
      },
      "snippet": "String - Text of the ad, shortened by LinkedIn Ad Library",
      "image": "String - Link to the image of the ad, or the cover image of a video, event, article, or `company_discovery` ad",
      "headline": "String - Headline of the ad",
      "description": "String - Description of the ad",
      "carousel_cards": [
        {
          "title": "String - Title of the card. Missing for posts with several images.",
          "image": "String - Link to the image of the card"
        },
        ...
      ],
      "document": {
        "title": "String - Title of the document",
        "pages": "Integer - Number of pages of the document",
        "preview_pages": "Integer - Number of pages that can be previewed",
        "images": "Array - Links to the images of the first pages of the document, up to 3"
      },
      "message": {
        "sender": {
          "name": "String - Name of the sender of the message",
          "thumbnail": "String - Link to the profile photo of the sender"
        },
        "text": "String - Text of the message"
      },
      "event": {
        "title": "String - Title of the event",
        "date": "String - Date and time of the event (e.g. June 20, 2023, 12:00 PM - June 20, 2023, 1:00 PM UTC)",
        "location": "String - Location of the event, or Online for online events",
        "organizer": "String - Name of the organizer of the event"
      },
      "article": {
        "title": "String - Title of the article",
        "snippet": "String - Beginning of the article",
        "newsletter": {
          "name": "String - Name of the newsletter that the article was published in",
          "thumbnail": "String - Link to the logo of the newsletter"
        }
      },
      "job": {
        "title": "String - Title of the job",
        "company": "String - Name of the company that offers the job",
        "location": "String - Location of the job"
      },
      "details_link": "String - Link to the details of the ad on LinkedIn Ad Library, or to the employer brand page of the company for `company_discovery` ads"
    },
    ...
  ]
}