# LinkedIn ad details

> One LinkedIn ad's creative, payer and public delivery disclosures.

- **Request:** `GET https://api.lurkapi.com/v1/linkedin/ad`
- **Auth:** `x-api-key` header ([get a free key](https://lurkapi.com/login?next=/dashboard))
- **Cost:** 1 credit per call. Validation errors, `401`/`402`/`429` rejections and `5xx` failures are free; `not_found` is charged ([how charging works](https://lurkapi.com/docs.md#credits)).
- **MCP tool:** `linkedin_ad` on `https://api.lurkapi.com/mcp`
- **Freshness:** responses are cached for up to 1 hour
- **Try it live:** https://lurkapi.com/docs/linkedin/ad#try (no signup)
- **Platform:** [LinkedIn](https://lurkapi.com/docs/linkedin.md) (linkedin.com)
- **Web page:** https://lurkapi.com/docs/linkedin/ad

## When to use this

Use the adLibraryUrl from ad search. Returns the public ad preview and any payer, run-date, impression and targeting disclosures LinkedIn publishes. These may be absent outside EU-delivered ads. Counts and dates stay in LinkedIn's display format rather than guessing exact values. A restricted creative is marked restricted, while genuine delivery disclosures remain available.

## Parameters

All parameters go in the query string.

| Name | Type | Required | Default | Allowed values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `url` | string | yes |  |  | Public LinkedIn Ad Library detail URL from the adLibraryUrl field of search ads. | `https://www.linkedin.com/ad-library/detail/1558746953` |

## Example request

Replace `YOUR_API_KEY` with your key, or set `LURKAPI_KEY` for the code. [Get a free key](https://lurkapi.com/login?next=/dashboard).

curl:

```bash
curl "https://api.lurkapi.com/v1/linkedin/ad?url=https%3A%2F%2Fwww.linkedin.com%2Fad-library%2Fdetail%2F1558746953" \
  -H "x-api-key: YOUR_API_KEY"
```

JavaScript:

```js
const params = new URLSearchParams({
  url: "https://www.linkedin.com/ad-library/detail/1558746953",
});
const res = await fetch(`https://api.lurkapi.com/v1/linkedin/ad?${params}`, {
  headers: { "x-api-key": process.env.LURKAPI_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.images);
```

Python:

```python
import os
import requests

res = requests.get(
    "https://api.lurkapi.com/v1/linkedin/ad",
    params={
        "url": "https://www.linkedin.com/ad-library/detail/1558746953",
    },
    headers={"x-api-key": os.environ["LURKAPI_KEY"]},
    timeout=60,
)
data = res.json()
if not data["success"]:
    raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["images"])
```

## Example response

A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in `…`.

200 OK (application/json):

```json
{
  "success": true,
  "credits_remaining": 999996,
  "credits_charged": 1,
  "id": "1558746953",
  "adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1558746953",
  "advertiser": {
    "name": "IXTENSA 🧡 HubSpot",
    "url": "https://www.linkedin.com/company/7267658"
  },
  "creativeType": "SPONSORED_STATUS_UPDATE",
  "format": "Single Image Ad",
  "text": "Viele HubSpot-Kunden kämpfen mit denselben Problemen – und lassen dadurc…",
  "headline": "Live-Webinar am 14.10.2026 um 11 Uhr",
  "images": [
    "https://media.licdn.com/dms/image/v2/D4D10AQGJm7MnzSEBvA/image-shrink_12…"
  ],
  "videos": [],
  "cta": "Sign Up",
  "payer": "IXTENSA GmbH & Co. KG",
  "availability": "Ran from Sep 24, 2026 to Sep 30, 2026",
  "totalImpressions": "1k-5k",
  "impressionsByCountry": [
    {
      "country": "Germany",
      "impressions": "100%"
    }
  ],
  "targeting": [
    {
      "label": "Language",
      "value": "Targeting includes English"
    },
    {
      "label": "Location",
      "value": "Targeting includes Germany"
    }
  ],
  "restricted": false
}
```

## Response fields

Every field of a successful response. `[]` marks a list: `a[].b` is the `b` of each item in `a`. **nullable** fields can be `null`; **optional** fields can be missing.

| Field | Type | Description |
| --- | --- | --- |
| `success` | `true` | Always true here; errors have `success: false`. |
| `credits_remaining` | `number` | Your balance after this call. On anonymous playground calls: free tries left today. |
| `credits_charged` | `number` | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| `id` | `string` | LinkedIn Ad Library ad id. |
| `adLibraryUrl` | `string` | Public detail page for this ad. |
| `advertiser` | `object` | The advertiser shown on the ad. |
| `advertiser.name` | `string`, nullable | Advertiser name shown on the preview. |
| `advertiser.url` | `string`, nullable | Advertiser's LinkedIn page, when linked. |
| `creativeType` | `string`, nullable | Raw creative type LinkedIn publishes in its preview markup. |
| `format` | `string`, nullable | Human-readable ad format shown by LinkedIn, when available. |
| `text` | `string`, nullable | Visible ad copy. Search previews may truncate it; use ad details for the full public copy. |
| `headline` | `string`, nullable | Ad headline when the preview exposes one. |
| `images` | `string[]` | Preview and carousel image URLs in source order. URLs can expire. |
| `videos` | `object[]` | Video variants from the ad preview, or an empty list. |
| `videos[].url` | `string` | Playable video source URL. |
| `videos[].bitrate` | `number`, nullable | Source bitrate in bits per second when supplied by LinkedIn. |
| `cta` | `string`, nullable | Call-to-action text shown on the preview. |
| `payer` | `string`, nullable | Organization paying for the ad, as disclosed by LinkedIn. |
| `availability` | `string`, nullable | Ad run-date text exactly as LinkedIn shows it. Null when not disclosed. |
| `totalImpressions` | `string`, nullable | Total impression count or range in LinkedIn's display format. Mostly disclosed for ads delivered in the EU. |
| `impressionsByCountry` | `object[]` | Published delivery by country; empty when not disclosed. |
| `impressionsByCountry[].country` | `string` | Country name or code shown in LinkedIn's breakdown. |
| `impressionsByCountry[].impressions` | `string`, nullable | LinkedIn's displayed delivery share for this country, e.g. 100%; this is not an absolute impression count. |
| `targeting` | `object[]` | Published targeting fields, generally for EU-delivered ads; empty when not disclosed. |
| `targeting[].label` | `string` | Targeting category LinkedIn shows, e.g. language or location. |
| `targeting[].value` | `string` | Publicly disclosed targeting information for the category. |
| `restricted` | `boolean` | True when LinkedIn explicitly restricts the creative preview; delivery disclosures may still be available. |

## Caching and freshness

Responses are cached for up to 1 hour, so a repeat call within that window can return the same data. It still costs 1 credit.

## Errors

Errors return `{ success: false, error, code, docs }` with the HTTP status below. Validation errors, `401`/`402`/`429` rejections and `5xx` failures are free; `not_found` is charged ([how charging works](https://lurkapi.com/docs.md#credits)). [All error codes](https://lurkapi.com/docs.md#errors).

| Status | Code | Meaning |
| --- | --- | --- |
| 401 | `missing_api_key` | No API key. Send it in the `x-api-key` header. |
| 401 | `invalid_api_key` | The key is unknown or was revoked. |
| 402 | `insufficient_credits` | Not enough credits for this call. Buy a pack or wait for tomorrow's top-up. |
| 404 | `not_found` | The endpoint, or the thing you asked for (ad, post, subreddit), doesn't exist. Charged when the platform was checked. |
| 405 | `method_not_allowed` | Endpoints take GET with query params. |
| 429 | `rate_limited` | Too many calls at once. Wait for the `retry-after` seconds, then retry. |
| 500 | `internal_error` | Something broke on our side. Retry; 5xx errors are free. |
| 502 | `upstream_error` | The platform didn't give a usable answer. Retry; 5xx errors are free. |
| 503 | `upstream_busy` | All our connections to the platform are busy. Retry in a few seconds; 5xx errors are free. |
| 504 | `upstream_timeout` | The platform took over 30 seconds to answer. Retry; timeouts are free. |

## Use it in Claude

Once LurkAPI is [connected to Claude](https://lurkapi.com/docs.md#claude), this endpoint is the `linkedin_ad` tool. Ask in plain English, for example:

Ask Claude:

```text
Use LurkAPI's linkedin_ad with url "https://www.linkedin.com/ad-library/detail/1558746953" and summarize what you find.
```

Claude calls `linkedin_ad` with arguments like these, and each call costs 1 credit:

Tool arguments:

```json
{
  "url": "https://www.linkedin.com/ad-library/detail/1558746953"
}
```

Tool results skip nulls and empty lists to save tokens.

---

Previous: [Search LinkedIn ads](https://lurkapi.com/docs/linkedin/search-ads.md) · Next: [Linktree page](https://lurkapi.com/docs/linkinbio/linktree.md)
