Ad Library

Ads a company runs on LinkedIn, from LinkedIn's Ad Library: advertiser, ad format, headline, text, image and ad page.

Try it in the dashboard 10 free credits when you sign up, no card.

GET/v1/linkedin/ads

Costs 2 credits per request. Only requests that return data are charged.

Parameters

NameTypeDescription
companyrequired string The advertiser: its LinkedIn company page address (https://www.linkedin.com/company/microsoft) or its name.
limitoptional integer How many ads to return, newest first. Default: 10. From 1 to 25.

Example request

curl "https://pipefetch.com/v1/linkedin/ads?company=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fmicrosoft&limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Example response

A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.

200 OK · application/json
{
  "data": {
    "company": "https://www.linkedin.com/company/microsoft",
    "ads": [
      {
        "id": "1702343736",
        "url": "https://www.linkedin.com/ad-library/detail/1702343736",
        "advertiser": "Microsoft Project Support by Milestone",
        "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D560BAQGm7yy5ucge-A/company-logo_100_100/B56Zf6yI0AHQAU-/0/1752259137092?e=1797465600&v=beta&t=punRC_MkyFkw-smExi…",
        "payer": null,
        "format": "Single Image Ad",
        "creativeType": "SPONSORED_STATUS_UPDATE",
        "headline": "Save hours and hours—with fast troubleshooting support.",
        "text": "What do you do when you hit a roadblock with Project Online? Stop googling and start getting answers fast—from our frien…",
        "textTruncated": true,
        "callToAction": null,
        "destinationUrl": null,
        "imageUrl": "https://media.licdn.com/dms/image/v2/D5610AQFWME1VPbgVLw/image_627_1200/B56aILrlgqKoAg-/0/1795492305128/nochatbot1200jpgjpg?e=2147483647&v=beta&t=c_VX…",
        "firstShownAt": null,
        "lastShownAt": null
      },
      {
        "id": "1702623866",
        "url": "https://www.linkedin.com/ad-library/detail/1702623866",
        "advertiser": "Microsoft in Business",
        "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D560BAQGfxIUgUdeVww/company-logo_100_100/B56ZgZynj1HQAQ-/0/1752779356692?e=1797465600&v=beta&t=qTEJ_W-RP50SuA-ODW…",
        "payer": null,
        "format": "Single Image Ad",
        "creativeType": "SPONSORED_STATUS_UPDATE",
        "headline": "Vylor builds a governed agentic AI knowledge framework on Microsoft Foundry in 6 months | Microsoft Customer Stories",
        "text": "What if scaling AI didn’t mean building a new solution for every team? With Microsoft Foundry and Azure, Vylor built a …",
        "textTruncated": true,
        "callToAction": null,
        "destinationUrl": null,
        "imageUrl": "https://media.licdn.com/dms/image/v2/D4E10AQG4YB7fPn2I3w/image-shrink_1280/B4EaIN2zzCHUAY-/0/1795528801945?e=2147483647&v=beta&t=-8WYmuHisSv_W1306UA4C…",
        "firstShownAt": null,
        "lastShownAt": null
      }
    ]
  },
  "credits": {
    "used": 2,
    "remaining": 98
  }
}

Good to know

  • A request costs 2 credits: LinkedIn's Ad Library is read over residential addresses, which cost us more.
  • The ad text is the text LinkedIn shows in the library card; bodyTruncated says when LinkedIn cut it.
  • A company without ads in the library answers 404 no_ads and costs nothing.

Errors

Every error has the same shape, and none of them is charged. The full list is in the error reference.

Looking for an overview and use cases? See the LinkedIn Ad Library API page.