Docs · LinkedIn ad details
LinkedIn ad details
One LinkedIn ad's creative, payer and public delivery disclosures.
https://api.lurkapi.com/v1/linkedin/adWhen 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.
| Parameter | Description |
|---|---|
urlstringrequired | Public LinkedIn Ad Library detail URL from the adLibraryUrl field of search ads.
|
Example request
Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.
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"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);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 ….
Show the example response (2 KB)Hide
{
"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.
Show all 27 fieldsHide
| 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 | stringnullable | Advertiser name shown on the preview. |
| advertiser.url | stringnullable | Advertiser's LinkedIn page, when linked. |
| creativeType | stringnullable | Raw creative type LinkedIn publishes in its preview markup. |
| format | stringnullable | Human-readable ad format shown by LinkedIn, when available. |
| text | stringnullable | Visible ad copy. Search previews may truncate it; use ad details for the full public copy. |
| headline | stringnullable | 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 | numbernullable | Source bitrate in bits per second when supplied by LinkedIn. |
| cta | stringnullable | Call-to-action text shown on the preview. |
| payer | stringnullable | Organization paying for the ad, as disclosed by LinkedIn. |
| availability | stringnullable | Ad run-date text exactly as LinkedIn shows it. Null when not disclosed. |
| totalImpressions | stringnullable | 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 | stringnullable | 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). All error codes.
| 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, this endpoint is the linkedin_ad tool. Ask in plain English, for example:
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:
{
"url": "https://www.linkedin.com/ad-library/detail/1558746953"
}Tool results skip nulls and empty lists to save tokens.