Introducing the Instagram APIRead more →

LinkedIn Ad Library Ad API. Send an ad link or ID.

Creative, payer and EU targeting, in any format. We handle the proxies, blocks and platform changes.

LinkedIn Ad Library Ad API at a glance

Returns one ad from LinkedIn's public Ad Library, in any format, from its link or ID: advertiser, who paid, text, media and destination. You also get the headline and call to action, the member a promoted post appears from, the video file, every carousel slide, a document's first pages, a message ad's sender and buttons, and a job's or event's details. Ads shown in the EU and Brazil add their run dates, an impressions range, each country's share of it and the targeting.

GET /v1/linkedin/ad

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 20 typed fields null when unknown
  • url is all it needs, e.g. https://www.linkedin.com/ad-library/detail/1603768123
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 20 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.linkedin.com/ad-library/detail/1603768123
GET /v1/linkedin/adTry in
const params = new URLSearchParams({
  url: "https://www.linkedin.com/ad-library/detail/1618054634",
});
const res = await fetch(`https://socialtap.dev/v1/linkedin/ad?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/linkedin/adLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 4 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field LinkedIn Ad Library doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    A LinkedIn Ad Library ad: its link (linkedin.com/ad-library/detail/<id>), a company discovery ad's (linkedin.com/ad-library/employer-brand/<id>?talentMarketplaceChannelId=<n>), or its ID alone.

  • Write one parser

    LinkedIn Ad Library, TikTok Ad Library, Facebook Ad Library and Google Ads Transparency Center answer in these fields, so the code that reads one reads them all.

platformstring
Library owner's platform ID (facebook for Meta's library, tiktok, google, linkedin).
idstring
Library ad ID (string).
urlstring
Public library page of the ad.
advertiserobject
The advertising page, business or account.
paid_bystring
Disclosed payer ("Paid for by").
is_activeboolean
True while the ad is running.
first_shown_atstring
First delivery, RFC 3339 UTC (often date-only: see approximate_fields).
last_shown_atstring
Last delivery, RFC 3339 UTC; null while active.

What teams build with the LinkedIn Ad Library Ad API.

  • See a competitor's ad creative and landing page

  • See where an ad ran and its targeting

  • Get full detail for Ad Library search results

Good to know before you build.

  • Run dates, impressions and targeting are null for ads not shown in the EU or Brazil: the library discloses them only there.
  • is_active is null because the library shows no status, except false on an ad it marks deleted (platform_specific.linkedin.is_deleted), whose content it still shows.
  • Dates are whole days and impressions are LinkedIn's ranges, with 0 as the lower bound of its "< 1k" (both listed in approximate_fields).
  • Text keeps LinkedIn's personalization placeholders, such as %FIRSTNAME%. An ad with several versions returns the one the library shows.
  • An unknown ID returns not_found, and so does the error page LinkedIn serves when the library fails: retry later an ad you know exists.
  • advertiser.url is the library's numeric company link (linkedin.com/company/<id>), which opens only for signed-in members. The LinkedIn Profile API takes a Page's name, not that number.
  • Targeted locations are split from one line of text, where a place's own comma looks like the one between places (Boston, MA, France). A list that could read more than one way keeps every piece apart and is listed in approximate_fields.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the LinkedIn Ad Library Ad API.

More in the API reference.

Where do I get an ad's ID?
From the LinkedIn Ad Library Search API, or the end of the ad's link in the Ad Library. A company discovery ad has no number of its own: its ID is the one the search returns, employer-brand-<company>-<channel>.
How much does the LinkedIn Ad Library Ad API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs