LinkedIn Ad Library
GET /v1/ad-library/linkedin/search-ads

LinkedIn Ad Library Search API

LinkedIn Ad Library search — targeting{}, ISO dates, impressions, CTA/destination, cursor pagination (2 credits).

2 credits per request
TL;DR
LinkedIn Ad Library search — targeting{}, ISO dates, impressions, CTA/destination, cursor pagination (2 credits). The LinkedIn Ad Library Search API (LinkedIn Ad Library) is a single authenticated GET request to /v1/ad-library/linkedin/search-ads that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the LinkedIn Ad Library Search API?

Search LinkedIn's Ad Library and get transparency fields as clean JSON: headline + description, targeting{language, location, company, …}, ISO startDate/endDate + adDuration, totalImpressions + impressionsByCountry[], cta + destinationUrl, advertiser{id, name, url, logo}, media[] / carouselImages[]. Filter with q (advertiser), keyword, companyId, country or countries (US,CA,MX), and startDate/endDate. Page with cursor / paginationToken (nextCursor + hasMore + totalAds). Flat 2 credits on the native path.

What you get

  • targeting{} — language, location, company, and other LinkedIn targeting segments
  • ISO startDate/endDate, adDuration, totalImpressions, impressionsByCountry[]
  • cta, destinationUrl, headline/description split, advertiser id + LinkedIn page URL
  • Cursor pagination via paginationToken / nextCursor + totalAds

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/ad-library/linkedin/search-ads?q=microsoft" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "query": "microsoft",
    "keyword": null,
    "companyId": null,
    "country": "US",
    "countries": [
      "US"
    ],
    "startDate": null,
    "endDate": null,
    "totalAds": 7523,
    "totalReturned": 3,
    "paginationToken": "1456462353-1785251292711",
    "nextCursor": "1456462353-1785251292711",
    "isLastPage": false,
    "hasMore": true,
    "ads": [
      {
        "platform": "linkedin_ad_library",
        "id": "1456323573",
        "url": "https://www.linkedin.com/ad-library/detail/1456323573",
        "text": "Drowning in one off scripts and manual steps? In a free 15 minute consult, our experts help streamline IT Infrastructure Operations with PowerShell.",
        "cta": "Learn more",
        "landingUrl": "https://calendly.com/d/cvqn-kt5-t72/free-consultation?utm_campaign=32735245-PowerHouse&utm_source=linkedin&utm_medium=paidsocial&utm_term=free%20consultation&utm_content=calendly%20link&trk=ad_library_ad_preview_content_image",
        "adFormat": null,
        "firstShown": "2026-07-28",
        "lastShown": "2026-08-02",
        "impressions": "1k-5k",
        "country": "US",
        "advertiser": {
          "id": "16217038",
          "name": "ScriptRunner Software GmbH",
          "url": "https://www.linkedin.com/company/16217038",
          "logo": "https://media.licdn.com/dms/image/v2/C4D0BAQFYeG3JIAlUQg/company-logo_100_100/company-logo_100_100/0/1630544718632/scriptrunner_logo?e=1787184000&v=beta&t=CeO2dmEiPsb-6gTcpJtkBMm0c4JSLZ6b6zfm44wc_7s"
        },
        "media": [],
        "description": "Drowning in one off scripts and manual steps? In a free 15 minute consult, our experts help streamline IT Infrastructure Operations with PowerShell.",
        "destinationUrl": "https://calendly.com/d/cvqn-kt5-t72/free-consultation?utm_campaign=32735245-PowerHouse&utm_source=linkedin&utm_medium=paidsocial&utm_term=free%20consultation&utm_content=calendly%20link&trk=ad_library_ad_preview_content_image",
        "adDuration": "Ran from Jul 28, 2026 to Aug 2, 2026",
        "startDate": "2026-07-28",
        "endDate": "2026-08-02",
        "totalImpressions": "1k-5k",
        "impressionsByCountry": [
          {
            "country": "United States",
            "impressions": "97%"
          },
          {
            "country": "Canada",
            "impressions": "3%"
          }
        ],
        "targeting": {
          "language": "Targeting includes English",
          "location": "Targeting includes Germany, Switzerland and Netherlands, Benelux, DACH, United States, Canada, Austria, Belgium, United Kingdom"
        },
        "carouselImages": [],
        "paidForBy": "ScriptRunner Software GmbH",
        "countries": [
          "US"
        ]
      },
      {
        "platform": "linkedin_ad_library",
        "id": "1526380116",
        "url": "https://www.linkedin.com/ad-library/detail/1526380116",
        "text": "Built to grow together: The FY27 Microsoft Marketplace opportunity",
        "headline": "Built to grow together: The FY27 Microsoft Marketplace opportunity",
        "adFormat": null,
        "country": "US",
        "advertiser": {
          "name": "Built to grow together: The FY27 Microsoft Marketplace opportunity"
        },
        "media": [],
        "description": null,
        "destinationUrl": null,
        "adDuration": null,
        "startDate": null,
        "endDate": null,
        "totalImpressions": null,
        "impressionsByCountry": [],
        "targeting": null,
        "carouselImages": [],
        "paidForBy": null,
        "countries": [
          "US"
        ]
      }
    ]
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success, cached, creditsUsed, and a data object with the following fields:

Top-level fields

  • queryThe search query you sent.
  • keywordKeyword.
  • companyIdCompany id.
  • countryCountry for the request context. On popular-creators top-level: ISO feed market you queried (e.g. US) — not each creator's home country (see region).
  • countriesCountries (array).
  • startDateAd start date (YYYY-MM-DD) when LinkedIn exposes a ran-from range.
  • endDateAd end date (YYYY-MM-DD) when LinkedIn exposes a ran-from range.
  • totalAdsTotal ads matching the LinkedIn Ad Library search criteria.
  • totalReturnedNumber of items returned in this response.
  • paginationTokenOpaque LinkedIn Ad Library pagination token for the next page.
  • nextCursorCursor to pass for the next page of results. May be null when the platform does not expose deep pagination (e.g. some Facebook Ad Library searches).
  • isLastPageWhether LinkedIn reports this search page as the last page.
  • hasMoreWhether more results are available beyond this page. When true, pass nextCursor to fetch the next page.

Ads

Each item in ads contains:

  • platformPlatform identifier for this response (matches the endpoint's platform).
  • idStable platform ID for the item.
  • urlCanonical URL of the item.
  • textText content.
  • ctaCall-to-action text.
  • landingUrlLanding page the ad links to.
  • adFormatFormat of the ad creative.
  • firstShownWhen the ad was first shown.
  • lastShownWhen the ad was last shown.
  • impressionsEstimated ad impressions.
  • countryCountry for the request context. On popular-creators top-level: ISO feed market you queried (e.g. US) — not each creator's home country (see region).
  • advertiserAdvertiser running the ad.
  • mediaMedia attached to the item.
  • descriptionDescription text.
  • destinationUrlClick-through / landing URL from the ad creative.
  • adDurationLinkedIn 'Ran from … to …' availability string.
  • startDateAd start date (YYYY-MM-DD) when LinkedIn exposes a ran-from range.
  • endDateAd end date (YYYY-MM-DD) when LinkedIn exposes a ran-from range.
  • totalImpressionsEstimated total impressions band from LinkedIn Ad Library (e.g. 1k-5k).
  • impressionsByCountryPer-country impression share rows ({country, impressions}).
  • targetingLinkedIn Ad Library targeting segments (language, location, company, and related keys).
  • carouselImagesOrdered carousel creative image URLs when the ad is a carousel.
  • paidForByPayer entity string from LinkedIn's 'Paid for by' line.
  • countriesCountries (array).

Parameters

NameTypeRequiredDescription
qstringNoAdvertiser / account owner name (min 2 when used). Provide q/company, keyword, or companyId.
companystringNoSC alias of q — advertiser / account owner name.
keywordstringNoOptional keyword filter on ad creative copy.
companyIdstringNoLinkedIn numeric company id for exact advertiser match.
countrystringNoSingle ISO country code. Default US. Ignored when countries is set.
countriesstringNoComma-separated ISO country codes (e.g. US,CA,MX).
startDatestringNoCustom range start YYYY-MM-DD (use with endDate).
endDatestringNoCustom range end YYYY-MM-DD (use with startDate).
cursorstringNoPagination token from paginationToken / nextCursor.
paginationTokenstringNoSC alias of cursor.
limitintegerNoMax items to return (default 20, max 200). Flat 2 credits per call on the native path; the extended fallback bills per returned ad.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. Envelope includes cached + cachedAt on hits.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool linkedin_ad_library_search_ads via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/ad-library/linkedin/search-ads and parse the JSON response.

Use cases

Trend Discovery

Find trending content by keyword or hashtag.

Content Sourcing

Build feeds and playlists programmatically.

Monitoring

Track topics, brands, and competitors.

Research

Sample large sets of content for analysis.

Frequently asked questions

What does the LinkedIn Ad Library Search API do?+

The LinkedIn Ad Library Search API lets you search and return matching results from a public LinkedIn Ad Library query using one GET request to /v1/ad-library/linkedin/search-ads. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the LinkedIn Ad Library Search API cost?+

Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.

Do I need a LinkedIn Ad Library API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.

Is the LinkedIn Ad Library Search API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

More LinkedIn Ad Library APIs

Ready to use the LinkedIn Ad Library Search API?

Sign up, grab your key, and make your first call in 60 seconds.