LinkedIn API

LinkedIn Ads API

Search the LinkedIn Ad Library by search URL and list the matching ads (advertiser, creative text, format).

$1.58/1k results, pay per request, no subscription.

What the API returneditems[0]
{
"id": "1487405616",
"url": "https://www.linkedin.com/ad-library/detail/1487405616",
"advertiser": "Northwind Analytics",
"advertiserLogo": "https://media.licdn.com/dms/image/D4E0BAQF-northwind-logo/company-logo?e=1727740800&v=beta&t=signedtoken",
"text": "Turn your pipeline data into forecasts your whole team can trust.",
"format": "VIDEO",
"image": "https://media.licdn.com/dms/image/D4E10AQF-northwind-creative/ad-creative-1487405616.jpg"
}
Uptime
88.81%
30d · 706 calls
Requests
706
30d · weekly, last 12 wks
Response
29.1s
median · 30d

Pricing

LinkedIn Ads API pricing

You pay
$15.76
$1.58/1k results, only for what you use. No monthly plan.
One request costs at most $0.0331 (21 results).
The $0.10 starting balance covers at least 3 requests.

Try it

Get LinkedIn ads 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 10 of 11 fields. See every field

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "1487405616",
        "url": "https://www.linkedin.com/ad-library/detail/1487405616",
        "advertiser": "Northwind Analytics",
        "advertiserLogo": "https://media.licdn.com/dms/image/D4E0BAQF-northwind-logo/company-logo?e=1727740800&v=beta&t=signedtoken",
        "text": "Turn your pipeline data into forecasts your whole team can trust.",
        "format": "VIDEO",
        "image": "https://media.licdn.com/dms/image/D4E10AQF-northwind-creative/ad-creative-1487405616.jpg"
      },
      {
        "id": "1487405990",
        "url": "https://www.linkedin.com/ad-library/detail/1487405990",
        "advertiser": "Northwind Analytics",
        "advertiserLogo": "https://media.licdn.com/dms/image/D4E0BAQF-northwind-logo/company-logo?e=1727740800&v=beta&t=signedtoken",
        "text": "Cut close time by three days with automated variance alerts.",
        "format": "SINGLE_IMAGE",
        "image": "https://media.licdn.com/dms/image/D4E10AQF-northwind-creative/ad-creative-1487405990.jpg"
      },
      {
        "id": "1487406102",
        "url": "https://www.linkedin.com/ad-library/detail/1487406102",
        "advertiser": "Northwind Analytics",
        "advertiserLogo": "https://media.licdn.com/dms/image/D4E0BAQF-northwind-logo/company-logo?e=1727740800&v=beta&t=signedtoken",
        "text": "See why 400+ finance teams switched off spreadsheets this quarter.",
        "format": "CAROUSEL",
        "image": "https://media.licdn.com/dms/image/D4E10AQF-northwind-creative/ad-creative-1487406102.jpg"
      }
    ]
  }
}

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.

  • urlstring

    https://www.linkedin.com/company/northwind-analytics

    LinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035).

  • limitinteger

    3

    Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.

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

Response

JSON, one example value per field.

each itemdata.items[]

Ad records from the LinkedIn Ad Library. Populated whenever the provider has data for the entity.

  • advertiserstring

    Northwind Analytics

    Advertiser (company) name. Populated whenever the provider has data for the entity.

  • advertiserLogostring

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

    Advertiser logo image URL.

  • formatstring

    VIDEO

    Ad format (e.g. SINGLE_IMAGE, VIDEO).

  • idstring

    1487405616

    LinkedIn ad id. Populated whenever the provider has data for the entity.

  • imagestring

    https://media.licdn.com/dms/image/D4E10AQF-northwind-creative/ad-creative-1487405616.jpg

    Ad creative image URL.

  • textstring

    Turn your pipeline data into forecasts your whole team can trust.

    Ad creative body text.

  • urlstring

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

    Canonical LinkedIn Ad Library detail URL. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

    True when at least one ad was returned.

  • 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 API

The AnyAPI LinkedIn Ads API returns LinkedIn ads data as normalized JSON from one POST call to /v1/run/linkedin.ads. Search the LinkedIn Ad Library by search URL and list the matching ads (advertiser, creative text, format). AnyAPI returns one normalized schema whichever source serves it. It costs $1.58 per 1,000 results, and never more than $0.0331 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 88.8% of LinkedIn ads calls through AnyAPI succeeded, with a median response time of 29.1 seconds across 706 measured calls.

It costs $1.58 per 1,000 results, and never more than $0.0331 for a single request, 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 search URL and list the matching ads (advertiser, creative text, format). 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, 88.8% of LinkedIn ads calls through AnyAPI succeeded, with a median response time of 29.1 seconds across 706 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 at least 3 LinkedIn Ads calls at up to $0.0331 each.

Send a POST request to https://api.getanyapi.com/v1/run/linkedin.ads 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.