# LinkedIn Ad Library Scraper: Ads & Targeting · $0.80/1K (`pomlabs/linkedin-ad-library-scraper`) Actor

LinkedIn Ad Library: search by company, keyword, payer, country, date or URL. Ad text, image, video, link, CTA, run dates, impressions by country, targeting, who paid, advertiser list, new-ads monitor, video transcript and AI analysis. No login. Hard cost cap.

- **URL**: https://apify.com/pomlabs/linkedin-ad-library-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 ads delivered

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/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

Every public ad in the LinkedIn Ad Library, as clean data: search by company, keyword, payer, country, date or pasted address. No login, no cookies.

**$0.80 per 1,000 ads.** Ad details (dates, impressions, targeting, payer, full text) add $0.60 per 1,000. Higher plans pay less. You can cap the cost of every run.

### What you get for each ad

- Advertiser name, logo, company page and ID
- Format (single image, video, carousel, document, event, article, text, message, conversation, job, spotlight, follow company)
- Ad text, headline, description, call-to-action buttons, landing page and every link
- Images, video and document addresses; optional download of the files
- Run dates, days running, active or inactive
- Impressions range and impressions by country (when LinkedIn publishes them)
- Targeting details and who paid for the ad
- B2B intent score with the reasons

LinkedIn publishes dates, impressions and targeting only for some ads (mostly those shown in the European Union). Rows never invent a value: a field that LinkedIn does not publish is left out.

### Ways to search

| You send | You get |
|---|---|
| `companies`: names, company pages or numeric IDs | The ads of each company |
| `keyword` or `keywords` | Ads that mention the words |
| `payer` or `payers` | Ads paid for by that name |
| `startUrls`: pasted Ad Library addresses | The same search, with its filters |
| `adUrls` or `adIds` | Those ads |
| `searches`: a list, each with its own filters | Many searches in one run |
| `urlsFromFile` | Lines of a .txt, .csv or Google Sheet |

Filters: `countries`, `dateOption`, `startDate`, `endDate`, `impressionsMin`, `impressionsMax`, `adTypes`, targeting used or not used, `includeKeywords`, `excludeKeywords`, `activeOnly`, `minDaysRunning`.

### More than a list

- **Advertiser list:** `"resultType": "advertisers"` shows who advertises most for a keyword, with share of the sample and sample ads.
- **New-ads monitor:** `"mode": "new-only"` returns only ads you have not received yet. Add `webhookUrl` to be told.
- **AI extras (optional):** marketing analysis of each ad, text written on the picture, video transcript.
- **No lost inputs:** a company or search with nothing gets a free row that says why.

### Input examples

```json
{"companies": ["HubSpot"], "countries": ["DE"], "maxItems": 100}
```

```json
{"keyword": "crm", "startDate": "2026-09-01", "endDate": "2026-09-30", "adTypes": ["video"], "maxItems": 500}
```

```json
{"keyword": "payroll", "resultType": "advertisers", "advertiserSampleAds": 960}
```

```json
{"companies": ["Salesforce", "HubSpot"], "mode": "new-only", "monitorName": "competitors", "maxAdsPerSearch": 0}
```

### Output example

```json
{
  "adId": "1615887163",
  "adUrl": "https://www.linkedin.com/ad-library/detail/1615887163",
  "advertiserName": "made2GROW GmbH | HubSpot Platin Partner",
  "advertiserId": "11573825",
  "format": "SINGLE_IMAGE",
  "headline": "Let's fix that. HUG Berlin · Nov 24",
  "body": "Sales: \"These leads are useless.\"\nMarketing: \"Sales never follows up.\" ...",
  "ctas": ["Attend"],
  "paidBy": "made2GROW GmbH",
  "startDate": "2026-11-12",
  "endDate": "2026-11-18",
  "daysRunning": 7,
  "impressions": "1k-5k",
  "impressionsPerCountry": [{"country": "Germany", "impressions": "100%", "percent": 100.0}],
  "targeting": [{"parameter": "Language", "included": ["English"], "excluded": []}],
  "status": "ok"
}
```

### Price

| Event | Price (free plan) |
|---|---|
| Ad delivered | $0.0008 |
| Ad details | $0.0006 |
| AI marketing analysis | $0.005 |
| Text read from the picture | $0.003 |
| Video transcript | $0.01 |

Free rows (nothing found, source busy, errors) are never charged.

### Notes

- Without `maxItems` or `maxAdsPerSearch`, each search stops at 40 ads. Set `maxAdsPerSearch` to 0 for every ad.
- The library holds the last 12 months, up to yesterday.

### Support, feedback and requests

Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at **pomexplica+support@gmail.com**, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.

# Actor input Schema

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

Advertiser companies, one per line: name, company page address or numeric company ID.

## `keyword` (type: `string`):

Word or phrase searched in the ads.

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

Several keywords, one search each.

## `advertisers` (type: `array`):

Same as Companies.

## `companyIds` (type: `array`):

Numeric LinkedIn company IDs.

## `accountOwner` (type: `string`):

Name of the advertiser account, as typed in the library.

## `payer` (type: `string`):

Name of who paid for the ad.

## `payers` (type: `array`):

Several payers, one search each.

## `startUrls` (type: `array`):

Pasted search or ad pages of the LinkedIn Ad Library, or company pages.

## `searchUrls` (type: `array`):

Same as above, as plain lines.

## `adUrls` (type: `array`):

Specific ads: address or numeric ID.

## `adIds` (type: `array`):

Specific ads by numeric ID.

## `urlsFromFile` (type: `string`):

Link to a .txt or .csv file, Google Sheet or Drive file with one company or address per line.

## `searches` (type: `array`):

List of objects, for example \[{"company": "HubSpot", "countries": \["DE"]}, {"keyword": "crm", "startDate": "2026-09-01"}].

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

2-letter codes or English names where the ads were shown. Empty = all.

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

all-time, last-30-days, current-month, current-year or last-year.

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

YYYY-MM-DD. The library holds the last 12 months.

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

YYYY-MM-DD, up to yesterday.

## `impressionsMin` (type: `integer`):

Checked on each ad page; ads without published impressions are left out.

## `impressionsMax` (type: `integer`):

Checked on each ad page.

## `includedTargetingFacetCategories` (type: `array`):

Only ads that targeted by: LANGUAGE, LOCATION, AUDIENCE, DEMOGRAPHIC, COMPANY, EDUCATION, JOB, INTERESTS_AND_TRAITS.

## `excludedTargetingFacetCategories` (type: `array`):

Same values: leaves out ads that targeted by them.

## `adTypes` (type: `array`):

single image, video, carousel, document, message, event, article, text, job, follow company, spotlight, conversation.

## `includeKeywords` (type: `array`):

Keep only ads whose text has one of these words. Reads every ad, so it is slower than the keyword search.

## `excludeKeywords` (type: `array`):

Drop ads whose text has one of these words.

## `activeOnly` (type: `boolean`):

Only ads still being shown.

## `minDaysRunning` (type: `integer`):

Long-running ads. Only ads that publish run dates can match (mostly ads shown in the EU).

## `includeEmployerBranding` (type: `boolean`):

Turn off to leave out job and spotlight formats.

## `maxItems` (type: `integer`):

0 = no overall cap.

## `maxAdsPerSearch` (type: `integer`):

0 = every ad of the search. When both limits are empty: 40 per search.

## `resultsLimit` (type: `integer`):

Same as maximum ads per search.

## `skipDetails` (type: `boolean`):

Faster and cheaper: list data only, without the ad page (dates, impressions, payer, targeting, full text).

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

On by default.

## `resultType` (type: `string`):

ads: one row per ad. advertisers: who advertises in this search, most ads first.

## `advertiserSampleAds` (type: `integer`):

Up to 2400. Default 240.

## `analyzeAds` (type: `boolean`):

Hook, angle, offer, audience and call to action of each ad (extra event).

## `ocrImageAds` (type: `boolean`):

Text written on the ad picture (extra event).

## `transcribeVideos` (type: `boolean`):

Speech of video ads as text (extra event).

## `downloadMedia` (type: `boolean`):

Stores the ad files in the run's key-value store.

## `mode` (type: `string`):

new-only returns only ads not delivered in earlier runs of the same monitor.

## `onlyNewAds` (type: `boolean`):

Same as mode new-only.

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

Keeps a separate memory of seen ads for this name.

## `registryKey` (type: `string`):

Same as monitor name.

## `webhookUrl` (type: `string`):

Receives a POST with the run, dataset, count and a sample when the run delivers ads.

## `webhookHeaders` (type: `object`):

Headers sent with the webhook, for example an authorization token.

## `compact` (type: `boolean`):

Only the main fields.

## `excludeEmptyFields` (type: `boolean`):

Leaves out fields without a value.

## `concurrency` (type: `integer`):

1 to 16. Default 10.

## Actor input object example

```json
{
  "companies": [
    "HubSpot"
  ],
  "includeEmployerBranding": true,
  "maxAdsPerSearch": 20,
  "skipDetails": false,
  "resultType": "ads",
  "analyzeAds": false,
  "ocrImageAds": false,
  "transcribeVideos": false,
  "downloadMedia": false,
  "mode": "all",
  "compact": false,
  "excludeEmptyFields": false
}
```

# Actor output Schema

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

No description

# 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": [
        "HubSpot"
    ],
    "maxAdsPerSearch": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/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 = {
    "companies": ["HubSpot"],
    "maxAdsPerSearch": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/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 '{
  "companies": [
    "HubSpot"
  ],
  "maxAdsPerSearch": 20
}' |
apify call pomlabs/linkedin-ad-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/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/evqjuHVejoazdoSin/builds/Zi8FqqwWR9zmHPUpQ/openapi.json
