# Linkedin Ad Library (`crucial_binoculars/linkedin-ad-library`) Actor

Extract ads of any format from LinkedIn Ad Library. Gain access to ad details, ad copy, media URL, call-to-action buttons and more. Dive deeper into the LinkedIn Ad Library for a competitive edge.

- **URL**: https://apify.com/crucial_binoculars/linkedin-ad-library.md
- **Developed by:** [Iliya Musa](https://apify.com/crucial_binoculars) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 — Competitor Ad Intelligence & Spy Tool

Extract ads, creatives, copy, run dates, impressions, and audience targeting criteria from the official [LinkedIn Ad Library](https://www.linkedin.com/ad-library/). Monitor competitor campaigns, uncover B2B marketing strategies, discover winning ad creatives, and analyze audience reach across global markets.

***

### What is the LinkedIn Ad Library Scraper?

The **LinkedIn Ad Library Scraper** is a high-speed intelligence tool designed for growth marketers, PPC agencies, media buyers, brand strategists, and market researchers. It extracts comprehensive advertising data from LinkedIn's public ad transparency repository without requiring any manual copy-pasting.

Whether you need to benchmark your competitors' ad spend, analyze creative messaging trends, inspect EU Digital Services Act (DSA) targeting parameters, or find high-converting B2B copywriting inspiration, this Actor delivers structured, export-ready data in seconds.

***

### Key Features

- **Competitor Ad Monitoring**: Search by company name, brand, or industry keywords to capture all currently active and historical sponsored campaigns.
- **Full Creative Asset Capture**: Extract high-resolution image URLs, carousel multi-card creatives, and video assets.
- **Complete Ad Copy & Headlines**: Capture full ad text, headlines, descriptions, call-to-action (CTA) button labels, and external destination URLs.
- **Impression Estimates & Reach**: Retrieve total impression ranges (e.g., `5k-10k`, `< 1k`, `100k+`) along with calculated numerical minimum and maximum estimates.
- **Geographic Country Breakdown**: Access country-by-country reach percentages and calculated impression estimates across different regions.
- **Audience Targeting Insights**: Extract transparency settings disclosed under advertising regulations, including job functions, member locations, languages, and audience criteria.
- **Advertiser Profile Data**: Collect advertiser entity names, official company profile links, logos, and "Paid for by" legal entity disclaimers.
- **Multiple Export Formats**: Instantly download your dataset as JSON, CSV, Excel, XML, or integrate directly via API and webhooks.

***

### Why Extract Data from LinkedIn Ad Library?

| Use Case | How It Helps Your Business |
|---|---|
| **Competitor Ad Intelligence** | Discover what messaging, offers, and value propositions rival companies promote to decision-makers. |
| **Creative & Copy Benchmarking** | Analyze top-performing formats (single image, carousels, video) and craft stronger B2B ad hooks. |
| **Audience Targeting Discovery** | Uncover the countries, languages, and demographic segments competitors target with their paid budgets. |
| **PPC & Agency Client Audits** | Build comprehensive competitive audit decks and pitch presentations for prospects and clients. |
| **Market & Regulatory Research** | Monitor sponsored political, regulatory, or corporate advocacy campaigns and compliance disclosures. |

***

### How It Works

Using this Actor is straightforward and requires no coding knowledge:

1. **Specify Your Search Target**: Enter a LinkedIn Ad Library search URL (e.g. filtered by keyword or company) or a direct ad detail link. You can also provide search keywords directly.
2. **Set Your Extraction Limit**: Choose the maximum number of ads you want to collect.
3. **Configure Proxy**: Residential proxies are recommended to ensure seamless access to LinkedIn's public pages.
4. **Start the Run**: The scraper navigates through the search results, identifies unique ads, gathers in-depth transparency details (impressions, targeting, creatives), and stores every record in your dataset in real time.
5. **Download Your Results**: Access your data anytime from the Apify Console or export it into your favorite analytics dashboard, Google Sheets, or CRM.

***

### Input Parameters

The Actor accepts the following input options in the Apify Console:

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `startUrls` | Array | **Yes** | JetBrains Search | List of LinkedIn Ad Library URLs (e.g., `https://www.linkedin.com/ad-library/search?keyword=salesforce` or `https://www.linkedin.com/ad-library/search?accountOwner=hubspot`) or search keywords. |
| `maxItems` | Integer | No | `50` | Maximum number of ads to collect across all targets. The scraper automatically stops once this threshold is reached. |
| `minConcurrency` | Integer | No | `3` | Minimum pages to process concurrently. The Actor caps concurrency at `4`; available CPU and memory may limit it. |
| `proxyConfiguration` | Object | No | `useApifyProxy: true` | Proxy settings. **Apify Residential Proxy** is recommended for high reliability and anti-blocking performance. |

#### Example Input Configuration

```json
{
  "startUrls": [
    { "url": "https://www.linkedin.com/ad-library/search?keyword=jetbrains" }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### Output Data Structure

Each collected ad is saved as an individual record in the default dataset. Below is an overview of the extracted attributes:

| Field | Type | Description |
|---|---|---|
| `recordType` | String | Fixed identifier (`"AD"`). |
| `url` | String | Direct permanent link to the ad detail page in LinkedIn Ad Library. |
| `id` | Integer | Unique numeric ad identification number. |
| `format` | String | Ad format type (`SINGLE_IMAGE_AD`, `CAROUSEL_AD`, `VIDEO_AD`, `DOCUMENT_AD`). |
| `period` | Object | Campaign run window with `start` and `end` ISO date strings (or `null` if currently active). |
| `paidBy` | String | Legal entity declared in the "Paid for by" disclosure. |
| `totalImpression` | String | Impression range shown on LinkedIn (e.g., `"5k-10k"`, `"< 1k"`). |
| `totalImpressionParsed` | Object | Normalized reach metrics with `raw`, `estimatedMin`, and `estimatedMax` integer values. |
| `impressions` | Array | Breakdown of impressions by country, including estimated min/max numbers per country. |
| `advertiser` | Object | Company name, LinkedIn profile link, and brand logo URL. |
| `body` | String | Full ad copy / commentary text. |
| `title` | String | Ad creative headline. |
| `imageUrls` | Array | List of direct image creative URLs. |
| `videoUrls` | Array | List of video asset URLs. |
| `targetingSettings` | Array | Audience targeting criteria disclosed by the advertiser (e.g., location, language, function). |
| `buttons` | Array | Call-to-action button labels (e.g., `"Learn more"`, `"Sign up"`, `"Request demo"`). |
| `clickUrl` | String | Outbound landing page or campaign destination URL. |
| `searchUrl` | String | The search query or URL where the ad was originally discovered. |
| `enriched` | Boolean | Confirmation that the ad's detail page and targeting metrics were fully captured. |
| `scrapedAt` | String | ISO 8601 timestamp of when the ad data was retrieved. |

#### Sample Output Record

```json
{
  "recordType": "AD",
  "url": "https://www.linkedin.com/ad-library/detail/1592343283",
  "id": 1592343283,
  "format": "SINGLE_IMAGE_AD",
  "period": {
    "start": "2026-10-20",
    "end": "2026-10-24"
  },
  "paidBy": "Paid for by JetBrains s.r.o.",
  "totalImpression": "5k-10k",
  "totalImpressionParsed": {
    "raw": "5k-10k",
    "estimatedMin": 5000,
    "estimatedMax": 10000
  },
  "impressions": [
    {
      "country": "France",
      "impressions": "950-1900",
      "estimatedMin": 950,
      "estimatedMax": 1900
    },
    {
      "country": "Germany",
      "impressions": "750-1500",
      "estimatedMin": 750,
      "estimatedMax": 1500
    }
  ],
  "advertiser": {
    "url": "https://www.linkedin.com/company/jetbrains",
    "name": "JetBrains",
    "logo": "https://media.licdn.com/dms/image/v2/D4E0BAQGNg3NSDK9zMg/company-logo_100_100/B4EZ663ZHXHMAQ-/0/1781251543752/jetbrains_logo"
  },
  "body": "Your team runs several agents at once, sees what each one changed, and verifies the code before anything merges – all in JetBrains IDEs.",
  "title": "JetBrains IDEs – one place to run agents and review the output",
  "imageUrls": [
    "https://media.licdn.com/dms/image/v2/D4D10AQGr6DLPCc6qEQ/image-shrink_1280/B4DaFFmA10KkAg-/0/1792168955489/ShipatspeedReviewatscalepng"
  ],
  "videoUrls": [],
  "targetingSettings": [
    {
      "target": "Language",
      "value": "Targeting includes English"
    },
    {
      "target": "Location",
      "value": "Targeting includes France, Germany"
    }
  ],
  "buttons": [
    "Learn more"
  ],
  "clickUrl": "https://www.jetbrains.com/ai/",
  "searchUrl": "https://www.linkedin.com/ad-library/search?keyword=jetbrains",
  "enriched": true,
  "scrapedAt": "2026-10-26T13:45:00.000Z"
}
```

***

### Exporting Your Data & Integrations

Your scraped ad data is stored in the cloud and accessible through multiple channels:

- **Direct File Downloads**: Export instantly to **Excel (.xlsx)**, **CSV**, **JSON**, **XML**, or **HTML table**.
- **Automated Workflows**: Connect with **Make**, **Zapier**, **n8n**, or **Slack** to trigger notifications when competitors launch new campaigns.
- **REST API**: Fetch dataset records programmatically using Apify’s REST API or official API clients for Python and JavaScript.
- **Cloud Storage Sync**: Stream data automatically to Google Drive, Dropbox, Amazon S3, or Google BigQuery.

***

### Best Practices & Tips for High-Volume Scraping

1. **Use Residential Proxies**: LinkedIn applies stringent anti-scraping controls. To prevent security challenges and rate limits during large runs, configure **Apify Residential Proxy**.
2. **Target Specific Advertisers**: For precise competitor research, use company account URLs (e.g. `https://www.linkedin.com/ad-library/search?accountOwner=<company-name>`) to capture every active campaign from that exact brand.
3. **Incremental Monitoring**: Schedule this Actor to run weekly or monthly to discover newly published ad creatives and track changes in competitor messaging over time.
4. **Targeting Transparency**: Note that detailed targeting information (such as country reach and audience parameters) is provided under advertising transparency frameworks (e.g., EU DSA). Ads that have just begun running or have minimal impressions may display fewer regional metrics.

***

### Frequently Asked Questions (FAQ)

##### Can I scrape ads from any company on LinkedIn?

Yes. Any advertisement published in the public LinkedIn Ad Library can be searched and collected using this scraper.

##### Does this tool require a LinkedIn account or login credentials?

No. The scraper accesses only publicly available information directly from the LinkedIn Ad Library. You do not need to provide LinkedIn credentials, cookies, or personal accounts.

##### How many ads can I collect in a single run?

You can set `maxItems` to any number up to 10,000 ads per run. For large collections, ensure sufficient Actor memory and residential proxies are selected.

##### Can I download image and video creative assets?

Yes. The output dataset provides direct, high-resolution media URLs for all single-image ads, carousel cards, and video creatives so you can preview or archive them.

##### What if a search query has no active ads?

If the targeted company or keyword currently has no active ads running, the scraper records this clearly in the run summary and finishes gracefully without consuming unnecessary compute units.

***

### Search & Discovery Keywords

*LinkedIn Ad Library Scraper, LinkedIn Ads Scraper, LinkedIn Ad Spy Tool, Competitor Ad Intelligence, LinkedIn Sponsored Content Scraper, B2B Advertising Spy, LinkedIn Ad Transparency Data, PPC Competitor Research, Extract LinkedIn Ads, LinkedIn Targeting Scraper, LinkedIn Creative Benchmarking, Ad Copy Inspiration, EU DSA Ad Library, Paid Social Intelligence, Lead Gen Ad Monitoring.*

# Actor input Schema

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

LinkedIn Ad Library search URLs (e.g. https://www.linkedin.com/ad-library/search?keyword=jetbrains or https://www.linkedin.com/ad-library/search?accountOwner=apify), direct ad detail URLs (https://www.linkedin.com/ad-library/detail/<id>), or search keywords.

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

Maximum number of ads to collect in total across all URLs. The Actor stops as soon as this many ads have been collected.

## `minConcurrency` (type: `integer`):

Minimum number of pages to process concurrently. The Actor caps concurrency at 4 and may be limited by available resources.

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

Proxy used to access LinkedIn. Residential proxies work best; datacenter proxies are more likely to be blocked.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.linkedin.com/ad-library/search?keyword=jetbrains"
    }
  ],
  "maxItems": 20,
  "minConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

All collected ads, one item per ad.

## `runSummary` (type: `string`):

Counters for the run (searches, ads found, ads enriched, errors).

# 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 = {
    "startUrls": [
        {
            "url": "https://www.linkedin.com/ad-library/search?keyword=jetbrains"
        }
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crucial_binoculars/linkedin-ad-library").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 = {
    "startUrls": [{ "url": "https://www.linkedin.com/ad-library/search?keyword=jetbrains" }],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("crucial_binoculars/linkedin-ad-library").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 '{
  "startUrls": [
    {
      "url": "https://www.linkedin.com/ad-library/search?keyword=jetbrains"
    }
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call crucial_binoculars/linkedin-ad-library --silent --output-dataset

```

## MCP server setup

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

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/5eSXQN2XFBtW5C2xZ/builds/6Scd2G7a2gyUCXlig/openapi.json
