LurkAPI
Docs · LinkedIn ad details

LinkedIn ad details

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

1 credit per callFresh within 1 hourMCP tool: linkedin_ad
GEThttps://api.lurkapi.com/v1/linkedin/ad

Example response

When to use this

Use it to read one ad in full: its creative, who paid for it, when it ran, and its impressions and targeting where LinkedIn publishes them. Pass the adLibraryUrl from ad search (linkedin_search_ads).

LinkedIn mostly publishes these details for ads shown in the EU, so elsewhere they're often missing. Counts and dates come as LinkedIn writes them; we don't guess exact values. When LinkedIn hides the ad's preview, restricted is true, but its delivery details can still be there.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?. Join several with &.

ParameterDescription
url
stringrequired
The ad's LinkedIn Ad Library URL, from adLibraryUrl in search ads, e.g. https://www.linkedin.com/ad-library/detail/1558746953.
Example
https://www.linkedin.com/ad-library/detail/1558746953

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (2 KB)
{
  "success": true,
  "credits_remaining": 999979,
  "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",
  "message": null,
  "event": null,
  "carouselCards": null,
  "payer": "IXTENSA GmbH & Co. KG",
  "availability": "Ran from Sep 24, 2026 to Oct 2, 2026",
  "totalImpressions": "5k-10k",
  "impressionsByCountry": [
    {
      "country": "Germany",
      "impressions": "100%"
    }
  ],
  "targeting": [
    {
      "label": "Language",
      "value": "Targeting includes English"
    },
    {
      "label": "Location",
      "value": "Targeting includes Germany"
    },
    {
      "label": "Audience",
      "value": "Targeted and excluded"
    },
    {
      "label": "Demographic",
      "value": "Not used"
    },
    {
      "label": "Company",
      "value": "Targeted and excluded"
    },
    {
      "label": "Education",
      "value": "Not used"
    },
    {
      "label": "Job",
      "value": "Targeted and excluded"
    },
    {
      "label": "Member Interests and Traits",
      "value": "Not used"
    }
  ],
  "restricted": false
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: videos[].url is the url of every item in videos. null means there's no value.

Show all 36 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
idstringLinkedIn Ad Library ad id.
adLibraryUrlstringPublic detail page for this ad.
advertiserobjectThe advertiser shown on the ad.
advertiser.namestringcan be nullAdvertiser name shown on the preview.
advertiser.urlstringcan be nullAdvertiser's LinkedIn page. Ad details only; search previews don't link it.
creativeTypestringcan be nullThe ad type, as LinkedIn's raw code.
formatstringcan be nullThe ad format in plain words, as LinkedIn shows it, when available.
textstringcan be nullVisible ad copy, or the message body for message ads. Search previews may truncate it; use ad details for the full public copy.
headlinestringcan be nullAd headline when the preview exposes one: the event name for event ads, the document title for document ads.
imagesstring[]Preview, carousel and document page image URLs in source order. URLs can expire.
videosobject[]Video variants from ad details, or an empty list. Search previews have none; their poster is in images.
videos[].urlstringPlayable video source URL.
videos[].bitratenumbercan be nullSource bitrate in bits per second when supplied by LinkedIn.
ctastringcan be nullCall-to-action button text. Ad details only; search previews don't show it.
messageobjectcan be nullMessage ad details; null for other formats.
message.senderstringcan be nullMember shown as the message's sender.
message.buttonsstring[]can be nullButton labels in order. Ad details only; null in search previews.
eventobjectcan be nullEvent ad details; null for other formats.
event.datestringcan be nullEvent start time exactly as LinkedIn shows it, e.g. September 15, 2026, 4:55 PM UTC.
event.locationstringcan be nullWhere the event takes place as LinkedIn shows it, e.g. Online.
carouselCardsobject[]can be nullCarousel cards in order; null for other formats.
carouselCards[].titlestringcan be nullCard title.
carouselCards[].imagestringcan be nullCard image URL. URLs can expire.
payerstringcan be nullOrganization paying for the ad, as disclosed by LinkedIn.
availabilitystringcan be nullAd run-date text exactly as LinkedIn shows it. Null when not disclosed.
totalImpressionsstringcan be nullTotal impressions, as the number or range LinkedIn shows. Mostly published for ads shown in the EU.
impressionsByCountryobject[]Where the ad was shown, by country; empty when LinkedIn doesn't publish it.
impressionsByCountry[].countrystringCountry name or code shown in LinkedIn's breakdown.
impressionsByCountry[].impressionsstringcan be nullThis country's share of impressions as LinkedIn shows it, e.g. 100%. It's a percentage, not a count.
targetingobject[]Who the ad targeted: language and location first, then one row per targeting type. Mostly published for ads shown in the EU; empty otherwise.
targeting[].labelstringTargeting category LinkedIn shows, e.g. Language, Location, Audience or Company.
targeting[].valuestringFor Language and Location, the disclosed segments, e.g. Targeting includes Germany, France. For each parameter in LinkedIn's table (Audience, Company, Job…): Targeted, Excluded, Targeted and excluded, or Not used.
restrictedbooleanTrue when LinkedIn hides the ad's preview. Delivery details can still be there.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 1 hour. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
404not_foundWhat you asked for (a post, an ad, a subreddit) doesn't exist, or there's no endpoint at that path. Charged if the platform was checked.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the linkedin_ad tool. For example:

Ask Claude
Use LurkAPI's linkedin_ad tool with url "https://www.linkedin.com/ad-library/detail/1558746953", then summarize what you find.

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

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

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts