Introducing the Instagram APIRead more →

LinkedIn Ad Library Search API. Ads matching your search.

Ads by keyword, advertiser or payer. We handle the proxies, blocks and platform changes.

LinkedIn Ad Library Search API at a glance

Searches LinkedIn's public Ad Library for ads by keyword, advertiser name, company ID or payer, filtered by country and the days they ran. Each result is the library's card: the ad's ID and link, advertiser name and logo, format, headline, the start of its text, images, a video's cover, carousel slides and a document's first pages. Results come newest or oldest first, and the LinkedIn Ad Library Ad API returns any of them in full from its ID.

GET /v1/linkedin/search_ads

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 20 typed fields null when unknown
  • 24 ads per page, most recently started first
  • query is all it needs, e.g. hiring

Send one request. Get up to 24 ads 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
query = hiring
GET /v1/linkedin/search_adsTry in
const params = new URLSearchParams({
  query: "hiring",
});
const res = await fetch(`https://socialtap.dev/v1/linkedin/search_ads?${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, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/linkedin/search_adsLong 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

    What to search for, as search_by says: words in the ad (keyword); words in the advertiser's name (advertiser), fuzzy, so other companies with those words come too; a company's numeric ID, or several with commas (advertiser_id), exact; words in the ad's "Paid for by" line (payer).

  • 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 Search API.

  • List a competitor's LinkedIn ads

  • Find ads on a topic in one market

  • Find who pays for ads on a topic

  • Watch a company's new ads

Good to know before you build.

  • A result has what the library's card shows. Who paid, run dates, impressions, countries, targeting, destination, call to action, video file and full text are null: the LinkedIn Ad Library Ad API returns them from the result's ID.
  • The advertiser's ID and link are null too, unless the request names exactly one company by ID, whose ads these all are.
  • search_by=advertiser matches words in advertisers' names, so it can bring in other companies ("microsoft" also finds a company with Microsoft in its tagline). search_by=advertiser_id is exact.
  • since and until keep the ads that ran during the window, in whole days, as LinkedIn filters them: an ad counts when it first ran before until and last ran on or after since. Cards carry no dates, and the LinkedIn Ad Library Ad API returns an ad's.
  • After the matching ads, the library lists company discovery ads, which have no number of their own: their ID is employer-brand-<company>-<channel>, and the LinkedIn Ad Library Ad API takes it too.
  • A word as common as "the" or "a" finds only company discovery ads, and the walk ends at platform_limit. Searched within one company or advertiser, such a word is dropped and all its ads come back. As an advertiser's name, it filters nothing.
  • An ad LinkedIn deleted stays listed with is_active false. is_active is null on every other ad, as the library shows no status.

1 credit per page. Failed requests are free.

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

SourcePrice per successful pagePer 1,000 pages
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 Search API.

More in the API reference.

How do I get all of one company's ads?
Set search_by=advertiser_id and query to its ID, from the LinkedIn Profile API or advertiser.id from the LinkedIn Ad Library Ad API. By name, search_by=advertiser also finds other companies with those words in their names.
How do I search one company's ads for a word?
Set query to the word and advertiser_id to the company's ID or its link by ID, or advertiser to words in its name, which also finds other companies with those words. Both work the same with search_by=payer.
Why is a since more than a year back refused?
Because LinkedIn's dates reach back only a year and answer "No results found" past that, which would look like no ads. Without since and until, the search covers everything the library has, back to when it started.
How much does the LinkedIn Ad Library Search API cost?
A page of up to 24 ads costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it with your own search.

Type 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