# LinkedIn Ad Library Checker: Company Ads (`kaleidoscopelabs/linkedin-ads-checker`) Actor

LinkedIn ads scraper and LinkedIn Ad Library checker: see whether a company runs LinkedIn ads, how many, how many in the last 30 days, and its latest ads with text, format and media. Enter company IDs, links or advertiser names; a company with no ads is answered too.

- **URL**: https://apify.com/kaleidoscopelabs/linkedin-ads-checker.md
- **Developed by:** [Kaleidoscope Labs](https://apify.com/kaleidoscopelabs) (community)
- **Categories:** Social media, Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 lookups

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

### What can this LinkedIn ads scraper do?

**A LinkedIn ads scraper for the LinkedIn Ad Library: check whether a company runs LinkedIn ads, how many, how many in the last 30 days, and its latest ads, one record per company or name.**

[![Use it from your AI agent: copy the MCP setup prompt](https://assets.kaleidoscopelabs.io/afy/mcp/mcp-setup.5ac6bded.png)](https://mcp.apify.com/?tools=kaleidoscopelabs/linkedin-ads-checker)

![Two names in, two records out: monday.com runs 4,372 ads, 1,666 in the last 30 days; "HubSpot, Inc." is found as HubSpot, with 1,649 and 523.](https://assets.kaleidoscopelabs.io/afy/linkedin-ads/hero.8dffa9a9.png)

- 🔎 **Is it advertising?** Each company gets a clear answer under your filter, a company with no ads included.
- 🔢 **How many ads:** the LinkedIn Ad Library's own count, for a country or anywhere, for all time, the last 30 days, this month, this year or last year.
- 📅 **Lately:** the same count for the last 30 days.
- 🖼️ **The latest ads:** up to 24 per company, with their text, headline, format and media links.
- 🔔 **Monitor:** on a schedule, only the ads a company has newly shown.
- 🔗 **Company IDs and links:** a sure answer.
- 🏷️ **Advertiser names:** enter a name as it appears on its ads; the run takes the first company whose ads carry that exact name or, if the search lists none to its end, that name without its legal form (GmbH, Inc., B.V.).
  Give the brand name the company advertises under, or the numeric company ID / a link containing it, not a legal name.
  A name can also be a person who advertises under their own profile: the record then carries their latest ads, with no company, whatever the country or date range.

Use it to track competitors' LinkedIn ads, or to generate leads from the companies that advertise on LinkedIn.

Run it from Apify Console, through the API, on a schedule, or from an AI agent.

### What data can you get from the LinkedIn Ad Library?

One record per company or name:

| Data | Field |
|---|---|
| Whether the company runs ads under the filter | `runsAds` |
| The library's count of its ads, and for the last 30 days | `adCount`, `adsLast30Days` |
| The company's ID, name, link and logo | `companyId`, `companyName`, `companyUrl`, `companyLogoUrl` |
| How the company was found | `matchedBy` |
| Its latest ads: ID, link, format, text, headline, description, images, video thumbnail, carousel cards, event | `ads` |
| With a monitor: its new ads, how many ads and pages the run read, whether it read them all, and whether anything changed | `newAds`, `adsChecked`, `pagesRead`, `complete`, `changed` |
| The filters the record was read under, and when | `country`, `dateOption`, `scrapedAt` |
| What the record lacks, and why | `missing` |

Records carry no impressions, targeting or spend.

The library keeps about a year of ads, so `runsAds: false` means none in that time. For a company ID it says nothing of the ID itself: the library answers an ID no company has the same way, so check the ID if a "no" surprises you.

A name that matches no advertiser says `company: notFound`. With `ads: notRead` beside it, the library's search had more ads than the run read, so the advertiser may be further down: a company ID gives a sure answer.

Media links are LinkedIn's. The logo link (`companyLogoUrl`) is signed to end about three weeks after the run: save the logo if you need it later.

### How to use LinkedIn Ad Library Checker

1. Create a free Apify account and open LinkedIn Ad Library Checker.
2. In **LinkedIn company IDs or links**, enter companies, one per line, for a sure answer; or in **Advertiser names**, enter names, for the best match. A run takes up to 1,000 companies and names together.
3. Choose the **Country** (a two-letter code, or ALL), the **Date range** (all time unless set), and how many of each company's latest ads you want. The count, `runsAds` and the ads are under the date range; `adsLast30Days` is always the last 30 days. A monitor takes all time only.
4. Click **Start**. Records appear in the Output tab; export them as JSON, CSV or Excel, or read them from the API.

### How to monitor companies for new ads

![A later monitor run returns only new ads: Microsoft 95 new of 1,162, Google 19 new of 1,121, NVIDIA none of 104.](https://assets.kaleidoscopelabs.io/afy/linkedin-ads/monitor.48542712.png)

Enter a **Monitor name** and run the same input on a schedule. Each run checks every company and name, one record each, and carries only ads the monitor has not seen before:

- `newAds` counts the ads the run read that the monitor had not seen. The record carries the first of them, up to 24 unless **Latest ads per company** is set; the rest are counted, not returned, and later runs do not return them. With 0 the monitor counts new ads and returns none. `adsChecked` is how many ads the run read: every ad the library lists for the company since the monitor's last run, page by page (24 ads a page), up to **Pages per company** (50 unless set). `pagesRead` is how many pages that took.
- `complete` is true when this run and the last one read every ad the company ran since, so `newAds` holds every new ad. It is false when Pages per company cut a read or a page could not be read; raise the setting to read them all. The run after you raise it counts the ads the earlier, shorter reads did not reach as new, and marks those companies `changed`, once. It is always false for a name whose advertiser has no company, such as a person advertising under their own profile: the monitor cannot read their ads page by page.
- A run reads the library up to two days before the day it starts, because the library lists the last days late. So a new ad comes in the first run at least two days after it started showing.
- `changed` is true when the company has new ads, or started or stopped showing ads, since the monitor's last run. Filter on `changed` for alerts.
- Each company's first run returns its latest ads as a lookup does, 3 unless Latest ads per company is set, and `newAds` and `changed` are absent: there is no earlier run to compare with. The monitor starts from that run, and every ad it read then is not new later.

The monitor keeps the IDs of the ads it has seen in a key-value store of its own in your account, `li-ads-monitor-<name>`. If a run cannot save what it found, after trying again at its end, it says so in its status, and its next run may return those ads again. To start a monitor over, delete that store or use a new name; a company checked under another Country starts over too. Let a monitor's runs not overlap: two at once may both return the same new ads. A company given twice in one input (by its ID and by a name that finds it) is checked twice, and its new ads come in one of the two records. Each check is charged as a lookup, each ad a record carries as an ad, and each page of a company's ads read after the first as an extra page.

### How much does it cost to check a company's LinkedIn ads?

| Event | Price | When |
|---|---|---|
| Lookup | $0.004 each | each company or name looked up, whether it runs ads or not; a name not found among the results read, with more left unread, is not charged |
| Ad | $0.00075 each | each ad a record carries: **Latest ads per company**, 3 when left empty (a monitor's later runs: up to 24 new ads), 0 for the check only; an ad the library shows only as its ID and format (a follower or job ad) is listed but not charged |
| Extra page | $0.001 each | with a monitor: each page of a company's ads read after the first, up to **Pages per company** |

| Example | Latest ads per company | Cost |
|---|---|---|
| 1,000 companies or names | 0 (the check only) | $4.00 |
| 1,000 companies or names | 3 (the default) | $6.25 |
| 1,000 companies or names | 24 | $22.00 |

Prices shown are for Apify's free plan; on paid plans they are up to 30% lower. The platform also charges $0.00005 when a run starts. The prefilled input (one name, a lookup with 3 ads) costs at most $0.00625, plus the start. Apify's free plan gives you $5 of usage a month, which covers about 1,250 checks, or 800 lookups with 3 ads each.

### Input

Enter company IDs, company links or advertiser names. A line that is none of these is skipped, not charged, and its record says so.

For example, two names, the check only:

```json
{
  "names": ["monday.com", "HubSpot, Inc."],
  "adsPerCompany": 0
}
```

### Output

![One company record, shortened: what was asked and how it was found, the company, whether it runs ads and how many, and its latest ads.](https://assets.kaleidoscopelabs.io/afy/linkedin-ads/record.1ca8d9b1.png)

The first record of that input's run, as the run returned it; only the logo link's signed query is shortened to `…`:

```json
{
  "recordType": "lookup",
  "query": "monday.com",
  "queryType": "name",
  "matchedBy": "name",
  "country": "ALL",
  "dateOption": "all-time",
  "scrapedAt": "2026-11-15T23:56:39Z",
  "companyId": "2525169",
  "companyName": "monday.com",
  "companyUrl": "https://www.linkedin.com/company/2525169",
  "companyLogoUrl": "https://media.licdn.com/dms/image/v2/D4E0BAQEIcDQUF_dKuQ/company-logo_100_100/B4EZuY8eu0GoAQ-/0/1767797550455/mondaydotcom_logo?…",
  "runsAds": true,
  "adCount": 4372,
  "adsLast30Days": 1666,
  "libraryUrl": "https://www.linkedin.com/ad-library/search?companyIds=2525169",
  "ads": [],
  "missing": [
    {
      "group": "ads",
      "reason": "notRequested"
    }
  ]
}
```

The second, `HubSpot, Inc.`, comes back as HubSpot with `"matchedBy": "nameWithoutLegalForm"`: a legal name works only as a fallback, and the brand name is surer.

### FAQ

#### Is it legal to read the LinkedIn Ad Library?

The library is public, and shows what large platforms must publish about ads. This Actor reads it signed out, and never logs in. Whether your use is allowed depends on what you do with the data and where you are; ask a lawyer when in doubt.

#### Does it collect personal data?

It reads public Ad Library pages, signed out. Some fields can carry personal data: the name, headline and picture of a member on a thought-leader ad, the name of a person who advertises under their own profile, the name and picture of a message ad's sender, and ad text, which can name people. Turn off **Members and senders** to leave the first three out. You are responsible for how you use and store the results under the GDPR, the KVKK or similar laws; ask a lawyer when in doubt.

#### Why does a name give no company?

The run takes an advertiser named exactly so among the library's first results. The record's `missing` says which case it is: `company: notFound` alone means the search found nothing to read further, and with `ads: notRead` it had more ads than the run read. A company ID gives a sure answer.

### Other Actors

| Actor | Use it with this one to |
|---|---|
| [Meta Ad Library & Facebook Ad Library Checker](https://apify.com/kaleidoscopelabs/facebook-ads-library-checker) | See whether the same companies run ads on Facebook and Instagram too: how many, and the day the newest started |
| [Ads Transparency Center: Google Ads Scraper](https://apify.com/kaleidoscopelabs/google-ads-transparency-data) | See whether the same companies advertise on Google too, and what their ads say |

*LinkedIn Ad Library Checker is an independent tool, not affiliated with, endorsed by or sponsored by LinkedIn Corporation. LinkedIn is a trademark of LinkedIn Corporation.*

# Changelog

This Actor's version history is a separate document: https://apify.com/kaleidoscopelabs/linkedin-ads-checker/changelog.md

# Actor input Schema

## `companies` (type: `array`):

One per line: a company's numeric ID, a company link with one (linkedin.com/company/1234567), or an Ad Library link with companyIds: a sure answer. A company link by name, or an Ad Library link with accountOwner, is looked up as an advertiser's name. A line that is none of these is skipped, not charged, and its record says so. Up to 1,000 companies and names a run.

## `names` (type: `array`):

One per line: an advertiser's name, as it appears on its ads, or an Ad Library link with accountOwner: a best match, the first company whose ads carry that exact name or, if the search lists none to its end, that name without its legal form (GmbH, Inc., B.V.). A name no advertiser carries among the library's first results is answered so. For a sure answer, enter the company's ID. Give the brand name the company advertises under, or the numeric company ID / a link containing it, not a legal name.

## `country` (type: `string`):

Where the ads were shown: a two-letter country code such as US or DE, or ALL for anywhere.

## `dateOption` (type: `string`):

Which ads to count and list, by when they were shown. The last 30 days' count is in every record whatever this is. A monitor takes all time only.

## `adsPerCompany` (type: `integer`):

How many of a company's latest ads its record carries, 0 to 24; each costs one ad. Left empty: 3 for a lookup and a monitor's first run of a company, then up to 24 new ads a run. 0 is the check alone.

## `monitorName` (type: `string`):

Name a monitor (letters, digits, hyphens) to get, on every run, only the ads it has not seen, with newAds and changed on each record. Each company's first run returns its latest ads, as a lookup does. Leave empty for plain lookups.

## `maxPagesPerCompany` (type: `integer`):

With a monitor: how many pages of a company's ads a run reads (24 ads a page), to check every ad since the last run. Each page after the first costs one extra page. A company past it gets complete: false.

## `includeMembers` (type: `boolean`):

The name, headline and picture of the member a thought-leader ad is shown under, the name of a person who advertises under their own profile, and the name and picture of a message ad's sender, as the Ad Library shows them. Turn it off to leave them out.

## Actor input object example

```json
{
  "companies": [
    "1234567",
    "https://www.linkedin.com/company/1234567/",
    "https://www.linkedin.com/ad-library/search?companyIds=1234567"
  ],
  "names": [
    "monday.com",
    "Pipedrive"
  ],
  "country": "DE",
  "dateOption": "current-year",
  "maxPagesPerCompany": 50,
  "includeMembers": true
}
```

# Actor output Schema

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

One record per company or name in the run's default dataset: whether it runs ads, how many, how many lately, its latest ads, and what the record lacks.

## `summary` (type: `string`):

What the run did: the lookups stored, the names with no advertiser, what could not be looked up, and the Ref to quote in an issue.

## `progress` (type: `string`):

The companies and names the run could not look up: written when the platform moves the run and at its end, so a run moved or resurrected counts them once.

# 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 = {
    "companies": [],
    "names": [
        "monday.com"
    ],
    "country": "ALL",
    "dateOption": "all-time",
    "maxPagesPerCompany": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaleidoscopelabs/linkedin-ads-checker").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 = {
    "companies": [],
    "names": ["monday.com"],
    "country": "ALL",
    "dateOption": "all-time",
    "maxPagesPerCompany": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("kaleidoscopelabs/linkedin-ads-checker").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 '{
  "companies": [],
  "names": [
    "monday.com"
  ],
  "country": "ALL",
  "dateOption": "all-time",
  "maxPagesPerCompany": 50
}' |
apify call kaleidoscopelabs/linkedin-ads-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaleidoscopelabs/linkedin-ads-checker"
        }
    }
}
```

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/U8DzOH4eba0jxgtDk/builds/ZMm3a3SPJiZUmJx0Z/openapi.json
