---
title: "Ad"
description: "Get one ad from the LinkedIn Ad Library: its full text and media, who paid, and when disclosed its run dates, impressions and targeting."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/ads/llms.txt)

```http
GET | POST /v1/linkedin-ads/ad
```

Send parameters as a query string with `GET`, or as a JSON body with `POST`. Both are equivalent.

## Request

```bash tab="cURL"
curl "https://gateway.apinoa.com/v1/linkedin-ads/ad?id=1578851684" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ id: "1578851684" });
const res = await fetch(`https://gateway.apinoa.com/v1/linkedin-ads/ad?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/linkedin-ads/ad",
    params={"id": "1578851684"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## What to Pass

| Pass | Reads | Notes |
|---|---|---|
| `id` | The ad | Its Ad Library id, or its Ad Library URL (`linkedin.com/ad-library/detail/<id>`) |

Pass one source per call. Every identifier also takes the page URL.

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `id` | string |  | The ad's Ad Library id, or its Ad Library URL (linkedin.com/ad-library/detail/<id>). |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`Ad`](/docs/api-reference/ads/response-schema#ad) in `data`. A real response, shortened: arrays keep their first entries and long text is cut.

```json
{
  "success": true,
  "data": {
    "library": "linkedin-ads",
    "id": "1578851684",
    "url": "https://www.linkedin.com/ad-library/detail/1578851684",
    "advertiser": {
      "id": "101691424",
      "name": "Quantum Security Defence",
      "url": "https://www.linkedin.com/company/101691424",
      "avatarUrl": "https://media.licdn.com/dms/image/v2/D4E0BAQHoN-S2VTf9bg/company-logo_…",
      "ext": {
        "type": "company"
      }
    },
    "paidBy": "Quantum Security and Defense Working Group lts",
    "format": "Single Image Ad",
    "text": "The G7 is urging governments and companies to start the transition to …",
    "linkUrl": "https://lnkd.in/e5J2WDUc",
    "images": [
      {
        "url": "https://media.licdn.com/dms/image/v2/D4E22AQEOAg2S6vIyxw/feedshare-ima…"
      }
    ],
    "videos": [],
    "cards": [],
    "firstShownAt": "2026-09-29",
    "lastShownAt": "2026-10-03",
    "impressions": {
      "text": "< 1k",
      "upper": 1000
    },
    "countries": [
      {
        "country": "Spain",
        "percent": 10
      },
      {
        "country": "Greece",
        "percent": 9
      },
      {
        "country": "France",
        "percent": 9
      }
    ],
    "ext": {
      "creativeType": "SPONSORED_STATUS_UPDATE",
      "links": [
        "https://lnkd.in/e5J2WDUc"
      ],
      "targeting": {
        "language": "Targeting includes English",
        "location": "Targeting includes Europe",
        "parameters": [
          {
            "name": "Audience",
            "targeted": false,
            "excluded": false
          },
          {
            "name": "Demographic",
            "targeted": false,
            "excluded": false
          },
          {
            "name": "Company",
            "targeted": false,
            "excluded": false
          }
        ]
      }
    }
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | A parameter is missing, unknown or out of range. The message names it. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 404 | `NOT_FOUND` | No ad has this id in the LinkedIn Ad Library. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 502 | `UPSTREAM_ERROR` | The library answered with something unusable. Retry with backoff. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## Notes

- Every record follows the shared [Ads API schema](/docs/api-reference/ads/response-schema). What only LinkedIn states is in `ext`.
- `firstShownAt`, `lastShownAt`, `impressions`, `countries` and `ext.targeting` are present only when LinkedIn discloses them for the ad. It discloses them for some ads only, under the EU's transparency rules, so many ads, especially those shown only outside the EU, have none. `lastShownAt` of today means the ad is still running.
- `impressions` is a range as LinkedIn states it (`text`), with the bounds it states (`lower`, `upper`). `countries` gives each country by name with its share of the impressions in `percent`; LinkedIn can take up to 48 hours to show it for a new ad.
- `ext.targeting` states the language and location as LinkedIn prints them (in the ad's language), and for each targeting category (Audience, Demographic, Company, Education, Job, Member Interests and Traits) whether it was used to target or to exclude. LinkedIn does not name the segments inside a category.
- An advertiser can be a company or a member (`advertiser.ext.type`). A company's `advertiser.id` is what `ads?advertiser=` takes. A thought-leader ad carries the member whose post is promoted in `ext.poster`.
- A video's `url` is its best file; `ext.sources` lists every file with its bitrate. Video files, pictures and document pages are links to LinkedIn's media servers.
