LinkedIn API

LinkedIn Ads search API

Search the LinkedIn Ad Library by company or keyword and list matching ads (advertiser, headline, creative text, format, CTA, and run dates) with pagination.

$1.20/1k req, pay per request, no subscription.

What the API returnedads[0]
{
"id": "1487990211",
"advertiser": "Microsoft",
"advertiserLinkedinPage": "https://www.linkedin.com/company/microsoft",
"headline": "Microsoft Copilot",
"description": "Get ahead of what's important with Copilot in Outlook.",
"adType": "VIDEO",
"cta": "Sign Up",
"destinationUrl": "https://copilot.microsoft.com/outlook?utm_source=linkedin_ads",
... 5 more fields
}
Uptime
94.16%
30d · 19,293 calls
Requests
19,434
30d · weekly, last 12 wks
Response
4.2s
median · 30d

Pricing

LinkedIn Ads search API pricing

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get LinkedIn ads search in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 18 of 19 fields. See every field

{
  "found": true,
  "data": {
    "nextCursor": "eyJvZmZzZXQiOjN9",
    "totalAds": 10617,
    "ads": [
      {
        "id": "1487990211",
        "advertiser": "Microsoft",
        "advertiserLinkedinPage": "https://www.linkedin.com/company/microsoft",
        "headline": "Microsoft Copilot",
        "description": "Get ahead of what's important with Copilot in Outlook.",
        "adType": "VIDEO",
        "cta": "Sign Up",
        "destinationUrl": "https://copilot.microsoft.com/outlook?utm_source=linkedin_ads",
        "startDate": "2026-08-12",
        "endDate": "2026-09-20",
        "totalImpressions": "100,000-500,000",
        "url": "https://www.linkedin.com/ad-library/detail/1487990211",
        "advertiserLogo": "https://media.licdn.com/dms/image/C560BAQE-microsoft-logo/company-logo?e=1727740800&v=beta&t=signedtoken"
      },
      {
        "id": "1487990455",
        "advertiser": "Microsoft",
        "advertiserLinkedinPage": "https://www.linkedin.com/company/microsoft",
        "headline": "From Idea to First Commit",
        "description": "In Episode 4 of AI Builders, learn how Copilot can help shape your next project.",
        "adType": "SINGLE_IMAGE",
        "cta": "Watch Now",
        "destinationUrl": "https://www.microsoft.com/ai-builders/episode-4?utm_source=linkedin_ads",
        "startDate": "2026-08-03",
        "endDate": "2026-09-10",
        "totalImpressions": "50,000-100,000",
        "url": "https://www.linkedin.com/ad-library/detail/1487990455",
        "advertiserLogo": "https://media.licdn.com/dms/image/C560BAQE-microsoft-logo/company-logo?e=1727740800&v=beta&t=signedtoken"
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • companystring

    microsoft

    Company name to search (e.g. "microsoft").

  • companyIdstring

    LinkedIn company identifier.

  • countriesstring

    US,CA

    Comma-separated two-letter country codes (e.g. "US,CA,MX").

  • endDatestring

    2026-09-28

    Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.

  • keywordstring

    copilot

    Keyword term for the ad search.

  • paginationTokenstring

    Opaque pagination token from a previous response's nextCursor.

  • startDatestring

    2026-08-01

    Search start date in YYYY-MM-DD format. An earlier date is moved up to one year ago in UTC when your range overlaps LinkedIn's accepted dates.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each addata.ads[]

Populated whenever the provider has data for the entity.

  • adTypestring

    VIDEO

    Populated whenever the provider has data for the entity.

  • advertiserstring

    Microsoft

    Populated whenever the provider has data for the entity.

  • advertiserLinkedinPagestring

    https://www.linkedin.com/company/microsoft

  • advertiserLogostring

    https://media.licdn.com/dms/image/C560BAQE-microsoft-logo/company-logo?e=1727740800&v=beta&t=signedtoken

    Advertiser logo image URL. The query string is a signed token, so keep the URL intact.

  • ctastring

    Sign Up

  • descriptionstring

    Get ahead of what's important with Copilot in Outlook.

  • destinationUrlstring

    https://copilot.microsoft.com/outlook?utm_source=linkedin_ads

  • endDatestring

    2026-09-20

  • headlinestring

    Microsoft Copilot

  • idstring

    1487990211

    Populated whenever the provider has data for the entity.

  • startDatestring

    2026-08-12

  • totalImpressionsstring

    100,000-500,000

  • urlstring

    https://www.linkedin.com/ad-library/detail/1487990211

    Canonical LinkedIn Ad Library URL for this ad.

datadata
  • nextCursorstring

    eyJvZmZzZXQiOjN9

  • totalAdsinteger

    10617

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the LinkedIn Ads search API

The AnyAPI LinkedIn Ads search API returns LinkedIn ads search data as normalized JSON from one POST call to /v1/run/linkedin.ads_search. Search the LinkedIn Ad Library by company or keyword and list matching ads (advertiser, headline, creative text, format, CTA, and run dates) with pagination. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 94.2% of LinkedIn ads search calls through AnyAPI succeeded, with a median response time of 4.2 seconds across 19,293 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Search the LinkedIn Ad Library by company or keyword and list matching ads (advertiser, headline, creative text, format, CTA, and run dates) with pagination. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 94.2% of LinkedIn ads search calls through AnyAPI succeeded, with a median response time of 4.2 seconds across 19,293 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 LinkedIn Ads search calls at $0.0012 each.

Send a POST request to https://api.getanyapi.com/v1/run/linkedin.ads_search with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.