# LinkedIn Ad Library Scraper · LinkedIn Ads, No Login (`instagram-data-api/linkedin-ad-library-scraper`) Actor

LinkedIn Ad Library scraper, no login, no cookies. Competitor LinkedIn ads by company, keyword, payer or Ad Library URL: format, headline, text, images, video, carousel slides. One tick adds link, button, payer, run dates and, for EU ads, impressions by country and targeting. CSV, Excel, JSON.

- **URL**: https://apify.com/instagram-data-api/linkedin-ad-library-scraper.md
- **Developed by:** [Instagram Data API](https://apify.com/instagram-data-api) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.90 / 1,000 ads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### LinkedIn Ad Library scraper — LinkedIn ads of any company, no login

**Type company names or keywords, or paste LinkedIn company links, Ad Library links or ad IDs — get the ads LinkedIn's Ad Library shows for them: advertiser, format, headline, text, images, video, carousel slides. No login, no cookies. $2.40 per 1,000 ads on the Starter plan. 2,000 ads of 20 keywords in 19–28 seconds on Apify (17 Nov 2026).**

![LinkedIn Ad Library Scraper output: advertiser, format, headline, start date, days running, impressions, top country, button and payer for each ad](https://media.fypspy.com/instagram-data-api/linkedin-ad-library-scraper/rows-v1.png)

**Real row, 17 Nov 2026:** Deichmann's carousel ad «DEICHMANN trifft Nachwuchskräfte» — ran 5–17 Nov, 150k–200k impressions, Germany first, targeted at Nordrhein-Westfalen in German, paid for by «DEICHMANN SE».

- 🔎 **One box takes anything:** a company name, a LinkedIn company link or number, an Ad Library link (keeps its filters), an ad link or ID, `payer:Name`. Keywords have a box of their own.
- 🎯 **The company you typed, not its look-alikes:** LinkedIn's name search matches parts of names («Nike» → «Niketa…», «Niketrans»); the Actor finds the advertiser with exactly that name and reads only its ads.
- 🧾 **49 fields per ad**; what LinkedIn does not show is `null` and named in `notCollected` — never a fake 0.
- 🇪🇺 **Payer, link, button, video file, run dates, impressions by country, targeting** with one tick — «Include ad details» ($1.10 per 1,000 ads on Starter).
- 📊 **A free summary row per line:** LinkedIn's own counter, delivered, why it stopped.
- 🔓 **Never charged:** duplicates, names and keywords with no ads, wrong ad IDs, bad links, an ad page LinkedIn did not answer for, anything that failed.

**Try it:** press **Start** — the prefilled `Deichmann` returns that company's 50 newest ads and one summary row in about 10 seconds.

### What data does the LinkedIn Ad Library scraper return?

| Group | Fields |
|---|---|
| Ad | `adId`, `adLibraryUrl`, `format`, `formatLabel`, `creativeType`, `searchUrl` |
| Advertiser | `advertiserName`, `advertiserLogoUrl`; thought-leader ads (a member's post promoted by a company): `isThoughtLeaderAd`, `thoughtLeaderName`, `thoughtLeaderTagline`, `thoughtLeaderPhotoUrl` |
| Creative | `headline`, `body`, `bodyTruncated`, `imageUrl`, `images`, `videoThumbnailUrl`, `slides`, `slidesCount`, `documentTitle`, `documentPageCount`, `documentPreviewImages`, `senderName` |
| With «Include ad details» | `advertiserUrl`, `advertiserId`, `advertiserType`, `thoughtLeaderUrl`, `paidBy`, `ctaText`, `videoUrl`, `variantsCount`, the full `body` |
| With details, ads shown in the EU | `startDate`, `endDate`, `daysRunning`, `clickUrl`, `impressions`, `impressionsMin`, `impressionsMax`, `impressionsByCountry`, `topCountry`, `targeting`, `targetingLanguage`, `targetingLocation` |
| Always | `rowType`, `query`, `detailsCollected`, `notCollected`, `scrapedAt` |

Plainly: without details a row is what the search page shows — the text is its first ~120 characters (`bodyTruncated: true`). Run dates, the link an ad leads to, impressions and targeting are published by LinkedIn only for ads shown in the EU: in our run of 1,000 ads for ten keywords with no country filter, 376 had them (17 Nov 2026). Formats met: single image, video, carousel, document, article, message, text, job, follow-company, event.

### Input

| Field | What it does |
|---|---|
| `queries` | Company names, LinkedIn company links or numbers, Ad Library search links, ad links or `ad:ID`, `payer:Name` — one per line, any mix |
| `keywords` | Words in the ad text, one search per line |
| `maxAdsPerQuery` | Ads per line, newest first (default 100, up to 10,000) |
| `maxAds` | Optional cap for the whole run |
| `includeDetails` | The ad's own page: payer, link, button, video, dates, EU impressions and targeting — one more read per ad, charged per ad |
| `countries` | Two-letter codes (`US`, `GB`, `DE`…): ads shown in any of them; empty = everywhere |
| `dateRange` | `all`, `last-30-days`, `current-month`, `current-year`, `last-year` |
| `startDate`, `endDate` | A date or a period back («7 days»): ads shown in the range; replaces `dateRange` |
| `sortOrder` | `newest` (default) or `oldest` — LinkedIn's two orders |
| `companyMatch` | `exact` (default: that advertiser only) or `contains` (LinkedIn's name search as it is) |
| `maxConcurrency` | Requests side by side, each through its own IP (default 32, the most) |

```json
{
  "queries": ["Deichmann", "https://www.linkedin.com/company/6367756", "ad:1609358143"],
  "keywords": ["crm software"],
  "countries": ["DE", "FR"],
  "maxAdsPerQuery": 50,
  "includeDetails": true
}
```

### Output example

A real row of a run on 17 Nov 2026 with «Include ad details» (media links shortened, lists cut to their first items, empty fields left out):

```json
{
  "rowType": "ad",
  "query": "Deichmann",
  "adId": "1609358143",
  "adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1609358143",
  "advertiserName": "Deichmann",
  "advertiserUrl": "https://www.linkedin.com/company/6367756",
  "advertiserId": "6367756",
  "advertiserType": "company",
  "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D4E0BAQFIffRXlVFjoQ/c…",
  "format": "CAROUSEL",
  "formatLabel": "Carousel Ad",
  "creativeType": "SPONSORED_UPDATE_CAROUSEL",
  "headline": "DEICHMANN trifft Nachwuchskräfte",
  "body": "DEICHMANN trifft Nachwuchskräfte auf Uni-Jobmessen 🎓💚\n\nDiese Woche waren wir gleich zweimal unterwegs, um mit Young Talents ins Gespräch zu kommen: be …",
  "bodyTruncated": false,
  "ctaText": null,
  "clickUrl": "https://www.linkedin.com/posts/deichmann_deichmann-arbeitgeber-it-acti…",
  "imageUrl": "https://media.licdn.com/dms/image/v2/D4D10AQH_4yNr3S-09A/i…",
  "images": ["https://media.licdn.com/dms/image/v2/D4D10AQH_4yNr3S-09A/i…"],
  "videoUrl": null,
  "slides": [{"imageUrl": "https://media.licdn.com/dms/image/v2/D4D10AQH_4yNr3S-09A/i…", "title": "DEICHMANN trifft Nachwuchskräfte", "linkUrl": "https://www.linkedin.com/posts/deichmann_deichmann-arbeitgeber-it-acti…"}],
  "slidesCount": 4,
  "isThoughtLeaderAd": false,
  "variantsCount": 1,
  "paidBy": "DEICHMANN SE",
  "startDate": "2026-11-05",
  "endDate": "2026-11-17",
  "daysRunning": 13,
  "impressions": "150k-200k",
  "impressionsMin": 150000,
  "impressionsMax": 200000,
  "impressionsByCountry": [
    {"country": "Germany", "share": "100%", "percent": 100, "lessThan": false},
    {"country": "Austria", "share": "<1%", "percent": 1, "lessThan": true}
  ],
  "topCountry": "Germany",
  "targeting": {
    "language": {"included": "Deutsch", "excluded": null},
    "location": {"included": "Nordrhein-Westfalen, Deutschland", "excluded": null},
    "education": {"targeted": true, "excluded": false},
    "job": {"targeted": true, "excluded": true}
  },
  "targetingLanguage": "Deutsch",
  "targetingLocation": "Nordrhein-Westfalen, Deutschland",
  "detailsCollected": true,
  "notCollected": [],
  "scrapedAt": "2026-11-17T18:10:15Z"
}
```

Every input line also ends with one free `rowType: "summary"` row: `inputKind`, `searchUrl`, `advertiserName`, `advertiserId`, `totalInLibrary` (LinkedIn's counter), `delivered`, `duplicatesSkipped`, `filteredOut`, `stoppedBecause`, `note`.

### How much does it cost to scrape the LinkedIn Ad Library?

Pay per result — no subscription.

| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Ad (per 1,000) | $2.50 | $2.40 | $2.15 | $1.90 |
| Ad details (per 1,000 ads, only when ticked) | $1.65 | $1.10 | $0.55 | $0.50 |
| Run start | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

Examples on Starter: 1,000 ads for a keyword — $2.40. 200 ads of a competitor with payer, dates, impressions and targeting — $0.70. An ad asked by its own link or `ad:ID` is read from the ad's page, so it is an ad with details ($0.0035). Set «Maximum cost per run» and the run stops there and says so in its status and in each unfinished line's summary row; the log says at the start what the run can cost at most. Checked on Apify (17 Nov 2026): with a $0.05 limit and details ticked the run delivered 14 ads, each with its details — with details on, the limit buys complete ads, not more ads without them.

### FAQ

**Do I need a LinkedIn account, cookies or an API token?**
No. Nothing to log in with; your account is never used.

**Is it the same data as on linkedin.com/ad-library?**
Yes — what a visitor of the Ad Library sees for the same search and filters, read the way the site shows it.

**Am I charged for names with no ads, wrong IDs or duplicates?**
No. They end with a free summary row that says what happened. An ad that matches two of your lines is delivered and charged once.

**Why are impressions, targeting, dates or the link null?**
LinkedIn publishes run dates, the link an ad leads to, impressions and targeting only for ads shown in the EU; for other ads the row says so in `notCollected`. An ad younger than two days has its total but no split by country yet — LinkedIn's page says the split «may take up to 48 hours». Add `countries` with EU codes to get ads that carry this data.

**How does a company name find the right advertiser?**
The name search is read first; an ad of the advertiser whose name is exactly what you typed (letters and digits compared, case ignored) is opened, and its page gives the company's LinkedIn number — the search then runs by that number. The first three pages of the name search are looked through. If no advertiser has exactly that name you get LinkedIn's own results and the summary row names the advertisers found; a company link that matches nobody ends with a free «not found» row. Surest of all: the link with the company's number (`linkedin.com/company/6367756`).

**What is a thought-leader ad?**
A member's post that a company promotes. The company stays `advertiserName`; the member is in `thoughtLeaderName`. When a member promotes a post of their own, the member is the advertiser and `advertiserId` is null.

**How fast is it?**
Our own runs on Apify, 17 Nov 2026, default settings (512 MB, 32 requests side by side):

| Job | Ads | Whole run |
|---|---|---|
| The prefilled `Deichmann` | 50 | 9–10 s (two runs) |
| 20 keywords, 100 ads each | 2,000 | 19–28 s (two runs) |
| 10 keywords, 100 ads each, with «Include ad details» | 1,000 | 39–46 s (two runs) |
| One keyword, one long search | 2,000 | 126 s |

LinkedIn gives 24 ads a page and the pages of one search come one after another — about 16 ads a second for one line. Different lines run side by side, and so do the ad pages of «Include ad details». Rows appear while the run goes.

**Does LinkedIn refuse requests?**
Datacenter IPs — almost always (1 of 30 fresh ones was let in), so the Actor works through Apify's residential IPs and pays that traffic itself. There, about one fresh IP in six is refused and an IP that asks too often gets a «429»; the Actor drops such an IP and asks again through another. In our 30 Apify runs of 17 Nov 2026: 9,657 requests, 400 asked again, 8,058 ad pages read and none lost. A line LinkedIn refuses six times in a row on fresh IPs gets a free row that says so.

**How many ads can I get for one search?**
Up to 10,000 per line. For more, or for speed, split the search into several lines — by country or by date range — they run side by side. LinkedIn's Ad Library keeps about a year of ads.

**Do image and video links last?**
No — LinkedIn's media links expire. Download what you need soon after the run.

**Coming from another LinkedIn ads Actor?**
The usual field names work as they are: `startUrls`, `urls`, `searchUrls`, `adUrls`, `companies`, `advertisers`, `companyNames`, `companyIds`, `companyUrls`, `keyword`, `searchTerms`, `payers`, `resultsLimit`, `maxItems`, `maxResults`, `maxAdsPerSearch`, `skipDetails`, `scrapeAdDetails`, `fetchAdDetails`, `enrichAdDetails`, `detailMode`, `dateOption`, `dateFrom` / `dateTo`, `sortBy`, `concurrency`.

**Can I try it for free?**
Yes — the free plan's $5 credit is about 2,000 ads at the Free-plan price ($2.50 per 1,000); there is no cap of ours on top. The Actor runs in 512 MB and uses Apify's residential proxy, which Apify lists for the Free plan too; you are not charged for that traffic — it is inside the price per ad.

### Not supported

- Ads older than what the Ad Library keeps (about a year) and ads LinkedIn has removed.
- Run dates, the destination link, impressions and targeting for ads that were not shown in the EU — LinkedIn does not publish them.
- Impressions-range and targeting-category filters as form fields (a pasted Ad Library link with those filters works; LinkedIn applies them to EU ads only).
- More than 10,000 ads on one line; one search read in parallel (its pages come one after another).
- Downloading the media files, the pages of a document ad beyond its preview, landing-page data.
- Follower counts or other company-page data — this Actor reads the Ad Library only.

### Related scrapers

Prices on the Starter plan.

**Ads intelligence**

- [Google Ads Transparency Center Scraper](https://apify.com/instagram-data-api/google-ads-transparency-scraper) — a website's or advertiser's Google ads with format, first and last shown, days shown and a preview; 2,000 ads in 24 s on Apify. From $1.65 / 1,000 ads.
- [Meta Ads Library Scraper](https://apify.com/instagram-data-api/meta-ads-library-scraper) — the ads Meta's Ad Library shows for a keyword, page or link: text, media, dates, platforms, advertiser; EU reach, targeting and payer with one tick; 2,000 ads of 20 keywords in 58 s on Apify. From $0.75 / 1,000 ads.

**News**

- [Google News Scraper](https://apify.com/instagram-data-api/google-news-scraper) — articles by keyword, topic, place or publisher with Google's operators, 83 editions and any dates; 1,994 articles from 20 searches in 22 s on Apify. From $3.10 / 1,000 articles.

**Jobs**

- [LinkedIn Jobs Scraper](https://apify.com/instagram-data-api/linkedin-jobs-scraper) — jobs by title and place, no login; with full details, the job text, seniority, applicants count and the stated pay as numbers; 1,000 full jobs in 49–55 s on Apify. From $0.35 / 1,000 jobs; $1.15 with full details.

# Changelog

This Actor's version history is a separate document: https://apify.com/instagram-data-api/linkedin-ad-library-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

One per line, any mix:
• a company (advertiser) name — `Deichmann`. Read as that exact advertiser (see «Company name match»)
• a LinkedIn company link — `https://www.linkedin.com/company/deichmann/` or with its number `https://www.linkedin.com/company/6367756`; a bare number is a company number
• an Ad Library search link — keeps its own filters (countries, dates, payer, keyword, impressions, targeting)
• one ad — its link `https://www.linkedin.com/ad-library/detail/1609358143` or `ad:1609358143` (read from the ad's own page: charged as an ad with details)
• `payer:Name` — ads by who paid; `keyword:words` — the same as the keywords box
Duplicates are removed before anything is read.

## `keywords` (type: `array`):

Ads whose text holds these words, any advertiser — one search per line, e.g. `project management software`.

## `maxAdsPerQuery` (type: `integer`):

How many ads to take for each line, newest first. LinkedIn gives 24 ads a page.

## `maxAds` (type: `integer`):

Optional cap over all lines together.

## `includeDetails` (type: `boolean`):

One more read per ad — its own page: the full text, where the ad leads, the button, the video file, the advertiser's LinkedIn page and number, who paid, the days it ran; and for ads shown in the EU — total impressions, impressions by country and targeting (LinkedIn publishes these only for EU ads). Charged per ad whose page was read (event «Ad details», $1.10 per 1,000 ads on the Starter plan ($1.65 on Free)); an ad LinkedIn did not answer for is not charged.

## `countries` (type: `array`):

Two-letter country codes where the ads were shown — `US`, `GB`, `DE`, `FR`… Several codes = ads shown in any of them. Empty = everywhere. A pasted Ad Library link keeps its own.

## `dateRange` (type: `string`):

LinkedIn's own periods: ads that were shown in the period.

## `startDate` (type: `string`):

A date (YYYY-MM-DD) or a period back from today («7 days», «3 months»). Setting a date here or below replaces «Date range». LinkedIn's own date picker takes the last 12 months.

## `endDate` (type: `string`):

A date (YYYY-MM-DD) or a period back from today. Empty with a start date = up to yesterday.

## `sortOrder` (type: `string`):

LinkedIn's two orders. «Oldest first» over a very broad search can make LinkedIn's own page fail — the line then ends with a free row that says so.

## `companyMatch` (type: `string`):

LinkedIn's name search matches parts of names: «Nike» also finds «Niketa …» and «Niketrans». «Exact» finds the advertiser with exactly the typed name and reads only that company's ads (by its LinkedIn number); if no advertiser has exactly that name, you get LinkedIn's own results and the summary row names the advertisers. «Contains» takes LinkedIn's results as they are.

## `proxyConfiguration` (type: `object`):

Leave as it is: the run works through Apify's residential IPs (LinkedIn refuses almost every datacenter IP) and changes the IP by itself when one is refused; that traffic is inside the price per ad. Set a group or your own proxies only to force them.

## `maxConcurrency` (type: `integer`):

How many requests go side by side, each through its own proxy IP: input lines and, with details, the ads' own pages. 32 is the measured default: 1,000 ads with details took 36 s at 32 and 54–57 s at 16 (Apify runs, 17 Nov 2026).

## Actor input object example

```json
{
  "queries": [
    "Deichmann"
  ],
  "maxAdsPerQuery": 50,
  "includeDetails": false,
  "dateRange": "all",
  "sortOrder": "newest",
  "companyMatch": "exact",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 32
}
```

# Actor output Schema

## `results` (type: `string`):

All rows of this run (JSON, CSV, Excel).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "Deichmann"
    ],
    "maxAdsPerQuery": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("instagram-data-api/linkedin-ad-library-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["Deichmann"],
    "maxAdsPerQuery": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("instagram-data-api/linkedin-ad-library-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "Deichmann"
  ],
  "maxAdsPerQuery": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call instagram-data-api/linkedin-ad-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,instagram-data-api/linkedin-ad-library-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SVLOQH3ox4pwToxej/builds/YKLuIi8Ua30Tv4eLE/openapi.json
