# LinkedIn Ads Scraper No Cookies (`logical_scrapers/linkedin-ads-scraper`) Actor

The LinkedIn Ads Scraper extracts ads from the public LinkedIn Ad Library at scale, no login or cookies required. Search by keyword or advertiser, you get data for every matching ad: creative variants, images, the advertiser and paying entity, run dates, estimated impressions and audience targeting.

- **URL**: https://apify.com/logical\_scrapers/linkedin-ads-scraper.md
- **Developed by:** [Goldmine](https://apify.com/logical_scrapers) (community)
- **Categories:** Social media, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## LinkedIn Ads Scraper

---

![LinkedIn Ads Scraper](https://i.ibb.co/Z1h8R91x/Screenshot-2026-06-19-at-9-10-55-PM.png)

---

The LinkedIn Ads Scraper extracts ads from the **LinkedIn Ad Library** at scale. Search by keyword or advertiser and collect structured data for every matching ad: ad copy, creative variants, images, the advertiser and paying entity, run dates, estimated impressions and audience targeting. It is perfect for competitor research, ad creative inspiration, market analysis, brand monitoring and lead generation.

### Features

- **Search by Keyword or Advertiser**: Find ads by a search term (e.g. `marketing`) or by an advertiser / company name (e.g. `Zalando`).
- **Full Ad Details**: Capture the complete ad copy, every creative variant, the advertiser, the paying entity, run dates, estimated impressions and targeting.
- **Transparency Data**: For regulated (e.g. EU) ads, collect total impressions, per-country impression breakdowns and the top targeting parameters selected by the advertiser.
- **Creative Variants**: Capture each variant of an ad with its body text, headline, call-to-action and image.
- **Flexible Input**: Provide ready-made LinkedIn Ad Library URLs or simply set a keyword / advertiser name and filters.
- **Reliable at Scale**: Collect large volumes of ads with built-in proxy support and rate control.

### Inputs

| Field | Type | Description | Default |
| ----- | ---- | ----------- | ------- |
| `startUrls` | Array | LinkedIn Ad Library search URLs (e.g. `https://www.linkedin.com/ad-library/search?keyword=nike`). | Optional |
| `keyword` | String | Keyword to search ads for (e.g. `marketing`). | Optional |
| `advertiserName` | String | Advertiser / company name to search ads for (e.g. `Zalando`). | Optional |
| `countries` | Array | ISO country codes to filter ads by audience country (e.g. `US`, `GB`, `DE`). | Optional |
| `dateOption` | Select | Last 30 days, current month, last year or current year. | `last-30-days` |
| `scrapeAdDetails` | Boolean | Collect full data for each ad (variants, dates, impressions, targeting). | `true` |
| `maxItems` | Integer | Maximum number of ads to scrape per search. | `5` |
| `proxyConfiguration` | Object | Proxy settings to scrape reliably. | Residential |

> Provide either `startUrls` or a `keyword` / `advertiserName`.

### Outputs

The scraper returns a dataset where each item is a single ad:

- **Advertiser**: Name, profile URL, logo and the paying entity.
- **Creative**: Ad format, headline, body text, image and every creative variant.
- **Availability**: The duration the ad ran, with parsed start and end dates.
- **Performance**: Estimated total impressions and a per-country impression breakdown (where available).
- **Targeting**: The top targeting parameters selected by the advertiser (where available).
- **Context**: The ad's Ad Library URL and the originating search URL.

Example Output:
```json
{
  "id": "1300512923",
  "advertiserName": "Zalando Partner",
  "advertiserLogo": "https://media.licdn.com/dms/image/...",
  "adFormat": "Video Ad",
  "bodyText": "Heritage or innovation: what drives growth?",
  "headline": "Heritage or innovation: what drives growth?",
  "imageUrl": "https://media.licdn.com/dms/image/...",
  "adUrl": "https://www.linkedin.com/ad-library/detail/1300512923",
  "advertiserUrl": "https://www.linkedin.com/company/698916",
  "paidFor": "Zalando SE",
  "availabilityDuration": "Ran from May 29, 2026 to Jun 3, 2026",
  "startDate": "2026-05-29",
  "endDate": "2026-06-03",
  "totalImpressions": "5k-10k",
  "impressionsByCountry": [
    { "country": "France", "percentage": "20%" },
    { "country": "Sweden", "percentage": "15%" }
  ],
  "targeting": [
    { "type": "Language", "value": "English" },
    { "type": "Location", "value": "Germany, Switzerland and Netherlands, France" }
  ],
  "variants": [
    {
      "bodyText": "Heritage or innovation: what drives growth?",
      "headline": "Heritage or innovation: what drives growth?",
      "ctaText": "Learn more",
      "imageUrl": "https://media.licdn.com/dms/image/..."
    }
  ],
  "searchUrl": "https://www.linkedin.com/ad-library/search?accountOwner=Zalando"
}
````

### How to Use

1. Enter a keyword or advertiser name (or paste Ad Library search URLs).
2. Choose your filters and how many ads to collect.
3. Run the Actor and export the results as JSON, CSV or Excel.

### Frequently Asked Questions (FAQ)

##### What is the LinkedIn Ad Library?

It is LinkedIn's public, free database of ads that have run on the platform. The LinkedIn Ads Scraper turns it into structured data you can export and analyze in bulk.

##### Do I need a LinkedIn account or login?

No. The scraper collects ads that are publicly available — no account, password or session is required.

##### How do I scrape all ads from a specific company?

Set the `advertiserName` input to the company's name (e.g. `Zalando`), or paste an Ad Library URL that targets that advertiser into `startUrls`.

##### How do I search ads by keyword?

Set the `keyword` input (e.g. `marketing`), or paste a keyword Ad Library URL into `startUrls`.

##### Why are some fields like impressions, run dates or targeting empty?

LinkedIn only publishes total impressions, per-country breakdowns and targeting for regulated ads (for example ads served in the EU). For other ads these fields are simply not available from the source, so they are returned as `null` or empty arrays.

##### Why are impressions returned as ranges instead of exact numbers?

LinkedIn publishes impressions as buckets (e.g. `5k-10k`) rather than exact counts, so the scraper returns the range exactly as shown.

##### Does `maxItems` apply per search or globally?

Per search. If you pass three searches with `maxItems: 50`, you can collect up to 150 ads in total.

##### Can I filter by country or date range?

Yes. Use the `countries` input (ISO codes such as `US`, `GB`, `DE`) and the `dateOption` input (last 30 days, current month, last year or current year).

##### Do I need a proxy?

A proxy is recommended for reliable, larger runs. Residential proxies are enabled by default so collection stays reliable at scale.

##### In what formats can I export the data?

Results can be exported as JSON, CSV, Excel, or accessed via the Apify API.

### Other Related Scrapers

Other related scrapers from goldmine:

- [LinkedIn Jobs Scraper](https://apify.com/logical_scrapers/linkedin-jobs-scraper)
- [Linkedin Profiles Scraper](https://apify.com/logical_scrapers/linkedin-profiles-scraper)
  -[Linkedin Company Profiles Scraper](https://apify.com/logical_scrapers/linkedin-company-scraper)

### Image Credit

Image credit: [linkedin.com](https://www.linkedin.com/)

# Actor input Schema

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

LinkedIn Ad Library search URLs (e.g. https://www.linkedin.com/ad-library/search?keyword=nike or https://www.linkedin.com/ad-library/search?accountOwner=Zalando)

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

Keyword to search ads for (e.g. "marketing"). Used when no startUrls are provided.

## `advertiserName` (type: `string`):

Advertiser / company name to search ads for (e.g. "Zalando").

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

Optional ISO country codes to filter ads by audience country (e.g. US, GB, DE).

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

Filter ads by when they ran.

## `scrapeAdDetails` (type: `boolean`):

Open each ad's detail page to collect full ad copy, all creative variants, advertiser, paying entity, run dates, impressions and targeting. Disable for a faster, lighter run that only returns the search-card data.

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

Maximum number of ads to scrape per search.

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

Proxy configuration. LinkedIn rate-limits aggressively, so residential proxies are recommended.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.linkedin.com/ad-library/search?keyword=marketing"
    }
  ],
  "dateOption": "last-30-days",
  "scrapeAdDetails": true,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.linkedin.com/ad-library/search?keyword=marketing"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("logical_scrapers/linkedin-ads-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 = { "startUrls": [{ "url": "https://www.linkedin.com/ad-library/search?keyword=marketing" }] }

# Run the Actor and wait for it to finish
run = client.actor("logical_scrapers/linkedin-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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=marketing"
    }
  ]
}' |
apify call logical_scrapers/linkedin-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logical_scrapers/linkedin-ads-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LinkedIn Ads Scraper No Cookies",
        "description": "The LinkedIn Ads Scraper extracts ads from the public LinkedIn Ad Library at scale, no login or cookies required. Search by keyword or advertiser, you get data for every matching ad: creative variants, images, the advertiser and paying entity, run dates, estimated impressions and audience targeting.",
        "version": "1.0",
        "x-build-id": "KalvWxcXLh06CpPq0"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/logical_scrapers~linkedin-ads-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-logical_scrapers-linkedin-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/logical_scrapers~linkedin-ads-scraper/runs": {
            "post": {
                "operationId": "runs-sync-logical_scrapers-linkedin-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/logical_scrapers~linkedin-ads-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-logical_scrapers-linkedin-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "Ad Library URLs",
                        "type": "array",
                        "description": "LinkedIn Ad Library search URLs (e.g. https://www.linkedin.com/ad-library/search?keyword=nike or https://www.linkedin.com/ad-library/search?accountOwner=Zalando)",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Keyword to search ads for (e.g. \"marketing\"). Used when no startUrls are provided."
                    },
                    "advertiserName": {
                        "title": "Advertiser Name",
                        "type": "string",
                        "description": "Advertiser / company name to search ads for (e.g. \"Zalando\")."
                    },
                    "countries": {
                        "title": "Countries",
                        "type": "array",
                        "description": "Optional ISO country codes to filter ads by audience country (e.g. US, GB, DE).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "dateOption": {
                        "title": "Date Range",
                        "enum": [
                            "last-30-days",
                            "current-month",
                            "last-year",
                            "current-year"
                        ],
                        "type": "string",
                        "description": "Filter ads by when they ran.",
                        "default": "last-30-days"
                    },
                    "scrapeAdDetails": {
                        "title": "Scrape Ad Details",
                        "type": "boolean",
                        "description": "Open each ad's detail page to collect full ad copy, all creative variants, advertiser, paying entity, run dates, impressions and targeting. Disable for a faster, lighter run that only returns the search-card data.",
                        "default": true
                    },
                    "maxItems": {
                        "title": "Max Ads",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of ads to scrape per search.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy configuration. LinkedIn rate-limits aggressively, so residential proxies are recommended.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
