LinkedIn Ads Library API

LinkedIn Ad Library Scraper API for Ads and Targeting

Search LinkedIn’s ad library by advertiser, payer, keyword, country, date, impressions and targeting, then read creative and transparency details. Build a reference of the messages reaching professional audiences.

WHAT YOU CAN BUILD / 04 ENDPOINTS

Put LinkedIn Ads Library data to work.

Find your use case, then explore the request and response.

Search ads

GET/v1/linkedin/ads/search

Build a B2B creative research library by filtering ads by advertiser, payer, keyword, country, dates, impressions and targeting.

Ad details

GET/v1/linkedin/ad

Build an ad research card with creative media, advertiser, payer, disclosed targeting, dates and impressions.

Unified ad search

GET/v1/linkedin/ad-library/ads/search

Build a cross-library ad research workflow using the unified search route with LinkedIn advertiser, targeting and date filters.

Unified ad details

GET/v1/linkedin/ad-library/ads

Build a unified ad detail view from a LinkedIn ad’s creative, advertiser and transparency information.

HOW IT WORKS

From API key to LinkedIn Ads Library data in four steps.

Run a sample below without a key.

  1. 01

    Get your API key

    Create a free account and copy your key. You start with 100 free credits; no card needed.

  2. 02

    Choose an endpoint

    Pick one of the 4 LinkedIn Ads Library endpoints and add its input, such as a company.

  3. 03

    Send one request

    Call it with your key in the x-api-key header. ScrapeAtlas reads the public LinkedIn Ads Library data and retries when a read fails.

  4. 04

    Use the JSON

    Get structured JSON with a coverage status. Only successful requests use a credit.

TRY IT HERE / LIVE SAMPLE

Try a sample request.

Try the LinkedIn Ads Library API right here. This sample uses the Search ads endpoint and returns live JSON. No API key needed.

  1. 01
    Choose a sample value

    Start with salesforce, or change the company field to your own value.

  2. 02
    Select Run sample

    Execute the sample code and see the response in the JSON response tab.

  3. 03
    Build on the result

    Open the full playground to try more parameters and copy code for your app.

Open this endpoint in the playground Request and response fields
LIVE SAMPLE / Search adsNo API key needed

Preparing the sample…

// Run this sample here — no API key needed.
const value = "salesforce";
const url = new URL("/website/demo/linkedin-ads",
  "https://api.scrapeatlas.com");
url.searchParams.set("value", value);

const response = await fetch(url);
const data = await response.json();
console.log(data);
GET/v1/linkedin/ads/search

A live example from our playground. Change the value above, then select Run sample.

CUSTOMER STORIES

What they are saying
about us.

Nigel Yong — Founder, PostOnce

Pay as you go

Start free.
Build at your pace.

One-time credit packs, priced in US dollars. Credits never expire, and there is no monthly commitment.

Free

Try the API with your next idea.

$0No credit card needed

100 free credits

One starter grant per account

Starter

For a new idea or a one-off project.

$19USD / one-time

10,000 credits

$1.90 per 1,000 successful requests

Growth

Save 6.3%

For regular workflows and bigger builds.

$89USD / one-time

50,000 credits

$1.78 per 1,000 successful requests

Enterprise Plan

Want to scrape larger volumes?

Let’s talk about a plan that fits your scale.

LinkedIn Ads Library API

Frequently Asked Questions

Explore the API reference

LinkedIn Ads Library API and scraping

What can I retrieve from the LinkedIn Ads Library API?

Search ads and retrieve individual creative records with advertiser, payer, dates, disclosed targeting and impressions. Use the data to build a B2B creative research library or compare messages across advertisers.

How do I scrape LinkedIn Ads Library results by advertiser?

Use Ad Search with a company name or company ID. Add payer, keywords, countries, dates, impression ranges and targeting filters to refine the search. Pass the returned continuation token with the same filters for another page.

How can I use the LinkedIn Ads Library for competitor research?

Search by company name or ID to collect an advertiser’s creative records, then organize them by date or message in your application. Ad Details adds the media, payer and disclosed targeting for a selected creative.

LinkedIn Ads Library: advertiser searches and ad transparency

Which LinkedIn Ads Library transparency fields can I retrieve?

Ad Details returns the creative media alongside payer, advertiser, disclosed targeting, dates and impressions. Look up an ad by its exact ID or canonical URL to build an evidence-based research card around a specific creative.

Which creative formats can I inspect with the LinkedIn Ads Library API?

Ad Details includes format-specific data for image, video, carousel, message, InMail, article and event creatives, plus document previews. Use the media and advertiser fields to organize the returned creatives in a research gallery.

Can the LinkedIn Ads Library API filter ads by country and date?

Yes. Search accepts countries, date presets or a date pair, impression ranges and targeting facets, with newest or oldest ordering. The unified library search route exposes the same LinkedIn search workflow.

API access and integration

How do I get a ScrapeAtlas API key and authenticate requests?

Create a ScrapeAtlas account and generate an API key in the dashboard. Send the key in the x-api-key request header when calling https://api.scrapeatlas.com. The API playground lets you enter an endpoint’s parameters and inspect its JSON response.

Can I call the scraping API from Python, JavaScript or the CLI?

Yes. Send authenticated HTTP requests from Python, JavaScript or another language that supports HTTP. The endpoint reference includes request examples and response fields. Use the ScrapeAtlas CLI for terminal workflows and pass the returned pagination values when requesting additional result pages.

Can I connect an AI assistant to the ScrapeAtlas MCP server?

Yes. Connect an MCP-compatible assistant to the ScrapeAtlas MCP server to discover and call the public platform tools with your ScrapeAtlas account. The agent reference also gives coding assistants a readable guide to the endpoints and their request schemas.

Make something with it

Ready to build?

Bring social data into your next project.
Start with 100 free credits and see what you can build.

No credit card needed.Building with an AI agent?