# LinkedIn Ads Scraper (`neuro-scraper/linkedin-ads-scraper`) Actor

LinkedIn Ads Scraper SD - LinkedIn Ads Scraper is a marketing intelligence tool that extracts LinkedIn ads by keyword, advertiser, payer, country and date: ad text, creative, format, advertiser, run dates, impressions, country split and targeting. No login.

- **URL**: https://apify.com/neuro-scraper/linkedin-ads-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (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.19 / 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.
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 Ads Scraper

> **Also from us:** need short-form video data too? Try the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - reels, captions, views and creators in one click.

**LinkedIn Ads Scraper** collects LinkedIn ads by keyword, advertiser, payer, country and date range - ad text, headline, images, video, format, advertiser, who paid, run dates, total impressions, impressions by country and audience targeting - with no LinkedIn account and no cookies.

Performance marketers, agencies and competitive-intelligence teams use the LinkedIn Ads Scraper to see which B2B ads competitors run, how they word their offers, which formats they prefer and - for ads shown in the European Union - how many impressions they got and whom they target. Search by keyword, by advertiser name or by payer, narrow by country, date and impressions, and the LinkedIn Ads Scraper pages through every result until your limit.

#### What LinkedIn Ads Scraper does

- Search by keyword, advertiser (company or person) and payer - combine them, or paste ready-made LinkedIn ad links.
- Filters: countries (any of 250 ISO codes), date range (last 30 days, current month, current year, last year or a custom start / end date), minimum and maximum impressions, ad formats.
- Every ad with id, link, format (single image, video, carousel, document, text, message, event, job ...), advertiser name, link and logo, ad text, headline, images, video files with poster and documents.
- Ad details (on by default): who paid for the ad, run dates, total impressions range, impressions share by country and targeting (language, location and which audience parameters were targeted or excluded).
- Follows the list page by page (24 ads per page) until max ads per search - the limit applies to each search separately.
- Hashtags and mentioned companies or people in the ad text.
- No login, no cookies - your LinkedIn account is never involved.

#### How LinkedIn Ads Scraper compares with the 5 most used tools of its kind

Every feature offered by the five most popular tools of this type, and what LinkedIn Ads Scraper does with it:

| Feature | Offered by (of the top 5) | LinkedIn Ads Scraper |
|---|---|---|
| Countries filter | 3 of 5 | Yes |
| Date range (preset or custom start / end) | 3 of 5 | Yes |
| Ad Library links as input | 2 of 5 | Yes |
| Max items (total and per search) | 2 of 5 | Yes |
| Keywords, advertisers, payers | 1 of 5 each | Yes |
| Impressions min / max filter | 1 of 5 | Yes |
| Ad format filter | 1 of 5 | Yes |
| Ad details on / off | 2 of 5 | Yes |
| Ad id, URL, format, advertiser name / URL / logo, body, headline, images, payer | 2-5 of 5 | Yes |
| Impressions, impressions by country, targeting, run dates | 2 of 5 | Yes |
| CTA text, click URL | 2-3 of 5 | No - not shown on any measured ad |
| Targeting facet include / exclude filters | 1 of 5 | No - not a filter of the public ad archive |

#### What data does LinkedIn Ads Scraper extract?

Every row of the LinkedIn Ads Scraper dataset has the fields below - the same keys on every row, so a spreadsheet keeps its columns. Several fields carry the same value under the column names other popular tools use, so a table you built for another tool keeps working. "Empty when" says when a field can be null or an empty list.

| Field | Type | What it holds | Example | Empty when |
|---|---|---|---|---|
| `adId` | string | LinkedIn ad id. | 1694836986 | never (always filled) |
| `adLibraryUrl` | string | Link to the ad in the LinkedIn Ad Library. | https://www.linkedin.com/ad-library/detail/1694836986 | never (always filled) |
| `format` | string | Ad format, e.g. Single Image Ad, Video Ad, Carousel Ad. | LinkedIn Article Ad | format not shown |
| `creativeType` | string | Creative type code, e.g. SPONSORED_STATUS_UPDATE. | SPONSORED_UPDATE_LINKEDIN_ARTICLE | not shown |
| `advertiser` | object | Object: name, url, type, headline, logo of the advertiser. | {"name": "JA ESS", "url": "https://www.linkedin.com/company/... | never (always filled) |
| `advertiserName` | string | Advertiser name. | JA ESS | never (always filled) |
| `advertiserUrl` | string | LinkedIn link of the advertiser. | https://www.linkedin.com/company/108131244 | advertiser has no link |
| `advertiserType` | string | company or person. | company | never (always filled) |
| `advertiserHeadline` | string | Headline of the advertiser (for person advertisers). | - | company advertisers (they have none) |
| `advertiserLogo` | string | Advertiser logo image link. | https://media.licdn.com/dms/image/v2/D560BAQH39cwB7UfUcA/com... | no logo |
| `paidBy` | string | "Paid for by" organisation. | Guangzhou Yihai Chuangteng Information Technology Co., Ltd. | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `startDate` | string | First day the ad ran (YYYY-MM-DD). | 2026-11-19 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `endDate` | string | Last day the ad ran (YYYY-MM-DD). | 2026-11-21 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `runPeriod` | string | Run period as shown, e.g. "Ran from Nov 12, 2026 to Nov 14, 2026". | Ran from Nov 19, 2026 to Nov 21, 2026 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `body` | string | Ad text. | A battery passport is more than a QR code.  As the EU’s batt... | image-only ads |
| `headline` | string | Ad headline (below the image or video). | O-1 Visa | ad has no headline |
| `hashtags` | array | Hashtags in the ad text. | \["JAESS", "BatteryPassport", "BESS", "Europe"] | no hashtags |
| `mentions` | array | Companies and people mentioned in the ad text. | \[{"name": "Blacksmith", "type": "company", "linkedinUrl": "h... | no mentions |
| `imageUrl` | string | First image of the ad. | https://media.licdn.com/dms/image/v2/D4E12AQHCTOg_XjZJYQ/art... | video, text and message ads |
| `imageUrls` | array | All images of the ad (carousel cards). | \["https://media.licdn.com/dms/image/v2/D4E12AQHCTOg_XjZJYQ/a... | video, text and message ads |
| `video` | object | Video object: poster, duration and the video file sources. | {"url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi... | not a video ad, or details off |
| `document` | object | Document ad: title, page count and page images. | - | not a document ad |
| `impressions` | string | Total impressions range, e.g. "1k-5k". | 10k-20k | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `impressionsByCountry` | array | List of countries with their share of impressions. | \[{"country": "United Kingdom", "impressionsShare": "17%"}, {... | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `targeting` | object | Targeting: language, location and the parameter table (audience, demographic, company, education, job, interests). | {"language": \["Targeting includes English"], "location": \["T... | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `detailsScraped` | boolean | true when the ad details were read. | true | never (always filled) |
| `searchUrl` | string | The Ad Library search that found the ad. | https://www.linkedin.com/ad-library/search?keyword=cloud+sec... | single-ad link input |
| `startUrl` | string | Same as `searchUrl`. | https://www.linkedin.com/ad-library/search?keyword=cloud+sec... | single-ad link input |
| `searchKeyword` | string | Keyword of the search that found the ad. | cloud security | search without keyword |
| `searchAdvertiser` | string | Advertiser name of the search that found the ad. | - | search without advertiser |
| `scrapedAt` | string | Time of scraping (UTC, ISO 8601). | 2026-11-21T16:39:42Z | never (always filled) |
| `id` | string | Same as `adId`. | 1694836986 | never (always filled) |
| `url` | string | Same as `adLibraryUrl`. | https://www.linkedin.com/ad-library/detail/1694836986 | never (always filled) |
| `detail_url` | string | Same as `adLibraryUrl`. | https://www.linkedin.com/ad-library/detail/1694836986 | never (always filled) |
| `advertiserBio` | string | Same as `advertiserHeadline`. | - | company advertisers |
| `advertiser_logo_url` | string | Same as `advertiserLogo`. | https://media.licdn.com/dms/image/v2/D560BAQH39cwB7UfUcA/com... | no logo |
| `payer` | string | Same as `paidBy`. | Guangzhou Yihai Chuangteng Information Technology Co., Ltd. | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `promoted_by` | string | Same as `advertiserName`. | JA ESS | never (always filled) |
| `isPromoted` | boolean | Always true (every library ad is a promoted ad). | true | never (always filled) |
| `availability` | string | Same as `runPeriod`. | Ran from Nov 19, 2026 to Nov 21, 2026 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `availabilityRaw` | string | Same as `runPeriod`. | Ran from Nov 19, 2026 to Nov 21, 2026 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `ran_from` | string | Same as `startDate`. | 2026-11-19 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `ran_to` | string | Same as `endDate`. | 2026-11-21 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `firstShownAt` | string | Same as `startDate`. | 2026-11-19 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `lastShownAt` | string | Same as `endDate`. | 2026-11-21 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `days_running` | integer | Number of days between start and end date (inclusive). | 3 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `is_active` | boolean | true when the ad ran until yesterday or today. | true | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `adStatus` | string | active or ended (from the end date). | active | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `body_preview` | string | First 150 characters of the ad text. | A battery passport is more than a QR code.  As the EU’s batt... | image-only ads |
| `carousel_images` | array | Images of a carousel ad. | - | not a carousel ad |
| `has_details` | boolean | Same as `detailsScraped`. | true | never (always filled) |
| `impressions_display` | string | Same as `impressions`. | 10k-20k | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `totalImpressionsRaw` | string | Same as `impressions`. | 10k-20k | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `impressions_min` | integer | Lower end of the impressions range as a number. | 10000 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `impressions_max` | integer | Upper end of the impressions range as a number. | 20000 | `scrapeAdDetails` off or open-ended range |
| `totalImpressionsMin` | integer | Same as `impressions_min`. | 10000 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `totalImpressionsMax` | integer | Same as `impressions_max`. | 20000 | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `impressionsPerCountry` | array | Same as `impressionsByCountry`. | \[{"country": "United Kingdom", "impressionsShare": "17%"}, {... | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `query` | string | Same as `searchKeyword`. | cloud security | search without keyword |
| `targeting_parameters` | array | The targeting parameter table: parameter, targeted, excluded. | \[{"parameter": "Audience", "targeted": false, "excluded": fa... | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `targeting_segments` | array | All targeting lines as one list (language, location, other). | \["Targeting includes English", "Targeting includes European ... | `scrapeAdDetails` off, or the ad was shown only outside the EU (run dates, impressions, payer and targeting are published for ads shown in the EU; measured on 0 of 5 US-only ads) |
| `video_urls` | array | Direct links to the video files. | \["https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/... | not a video ad, or details off |

#### Which columns can be empty in LinkedIn Ads Scraper

Measured on our latest LinkedIn Ads Scraper test run (22 rows, run `IigXmm2wR8PYKze4o`). A column is empty only when the source does not publish the value for that row - never because a page was skipped. Columns empty on more than 10% of the test rows:

- `carousel_images` - empty on 22 of 22 test rows: not a carousel ad.
- `document` - empty on 22 of 22 test rows: not a document ad.
- `searchAdvertiser` - empty on 22 of 22 test rows: search without advertiser.
- `advertiserBio` - empty on 19 of 22 test rows: same as `advertiserHeadline`: company advertisers have no headline.
- `advertiserHeadline` - empty on 19 of 22 test rows: the advertiser is a company - only person advertisers have a headline (19 of the 22 test ads came from company pages).
- `video` - empty on 19 of 22 test rows: not a video ad.
- `video_urls` - empty on 19 of 22 test rows: not a video ad.
- `mentions` - empty on 17 of 22 test rows: the ad text tags nobody.
- `hashtags` - empty on 13 of 22 test rows: the ad text has no hashtags.
- `headline` - empty on 7 of 22 test rows: the ad has no headline line under its media - text, message, document and some video ads show only the ad text.

#### How to use LinkedIn Ads Scraper

1. **Open LinkedIn Ads Scraper and fill the input.** Give at least one of: keywords, advertiser names, payer names or Ad Library links (one per line). Then narrow with countries, a date range, impressions or ad formats if you want.
2. **Press Start and watch the log.** LinkedIn Ads Scraper writes one line per input it starts, one line when an input is finished (with how many ads it gave) and an ERROR line when an input is skipped and why. The run status message at the end sums up the run: rows written, inputs that failed and inputs that ended before their limit.
3. **Download the results.** Open the Output tab of the run and export the LinkedIn Ads Scraper dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API (see "Use ... through the API" below).
4. **Schedule it and connect integrations.** In Apify Console create a Schedule (daily, weekly) for LinkedIn Ads Scraper and add an integration - Google Sheets, Zapier, Make, n8n, Slack or a webhook - so every finished run lands where you work.

#### Features and how they work in LinkedIn Ads Scraper

Every option of the LinkedIn Ads Scraper input form, what it does, how LinkedIn Ads Scraper uses it, the allowed values and a tip. Only the first input list is needed; every other option has a safe default.

##### `keywords` - Keywords

**What it does:** Words or phrases that appear in the ads; each line is one separate search ("software", "cloud security").

**How it works:** Every keyword becomes its own Ad Library search with all your filters applied, and the results of each search are paged to the end (or to `maxItemsPerSearch`). The keyword is written into `searchKeyword` / `query` of every row so you know which search found the ad.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"keywords": ["software", "cloud security"]`

**Tip:** Short, specific phrases work best; a very generic word returns thousands of ads, so set a limit.

**Combinations:** With `advertisers` and/or `payers` every combination is searched (2 keywords x 3 advertisers = 6 searches). The limit `maxItemsPerSearch` applies to each search.

##### `advertisers` - Advertisers (company or person)

**What it does:** Advertiser (company or person) names whose ads you want, one per line ("Microsoft", "HubSpot").

**How it works:** Each name is searched as the ad's account owner, so you get the ads that company runs. The name is kept in `searchAdvertiser`. Without a keyword, all ads of the advertiser are returned.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"advertisers": ["Microsoft"]`

**Tip:** Use the exact company name as it appears on LinkedIn; a short name can also match other advertisers that contain it.

**Combinations:** Combined with every keyword and payer (cross product); filters like countries and dates apply to each search.

##### `payers` - Payers

**What it does:** The organisation shown as "Paid for by" on the ads, one per line.

**How it works:** Each payer name is searched in the payer field of the library; useful when an agency or a parent company pays for ads of several brands. The payer of every ad is also returned in `paidBy` / `payer`.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"payers": ["Microsoft Corporation"]`

**Tip:** Use it for political or issue ads and for agencies; for normal brand ads `advertisers` is usually enough.

**Combinations:** Combined with keywords and advertisers (cross product).

##### `startUrls` - Ad Library links

**What it does:** Ad Library links: a search link with any filters, or a single ad link.

**How it works:** A search link (https://www.linkedin.com/ad-library/search?keyword=...) is run exactly as given - every filter in the link is kept - and paged to the end. A single ad link (.../ad-library/detail/<id>) gives that one ad with all details. Other links are skipped with an ERROR line.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"startUrls": ["https://www.linkedin.com/ad-library/search?keyword=software&countries=US"]`

**Tip:** Build a complex search in your browser, copy the link and paste it here.

**Combinations:** Runs in addition to the keyword / advertiser / payer searches; `maxItemsPerSearch` applies per link.

##### `countries` - Countries

**What it does:** Two-letter country codes where the ads were shown (US, GB, DE).

**How it works:** The codes are passed to every search as the country filter; several codes mean "shown in any of these countries". Leave it empty (or give ALL) for all countries. Invalid codes are ignored.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"countries": ["US", "DE"]`

**Tip:** Use one country per run when you want to compare markets; impressions per country are in `impressionsByCountry` anyway.

**Combinations:** Applies to every keyword, advertiser and payer search, not to single-ad links.

##### `dateOption` - Date range

**What it does:** The time window in which the ads ran.

**How it works:** Passed to every search: last-30-days, current-month, current-year, last-year, or custom-date-range (then `startDate` and `endDate` set the window). Empty means all time.

**Allowed values and default:** type string; one of `last-30-days` (Last 30 days), `current-month` (Current month), `current-year` (Current year), `last-year` (Last year), `custom-date-range` (Custom range (start / end date)); no default (leave it empty to switch it off).

**Example:** `"dateOption": "last-30-days"`

**Tip:** Use last-30-days to see what a competitor runs right now; current-year for a yearly report.

**Combinations:** Setting `startDate` or `endDate` switches it to custom-date-range automatically.

##### `startDate` - Start date (custom range)

**What it does:** First day of a custom date range (YYYY-MM-DD).

**How it works:** When set, the date option becomes custom-date-range and only ads that ran on or after this day are searched. The run dates of each ad are returned in `startDate` / `endDate` of the row.

**Allowed values and default:** type string; no default (leave it empty to switch it off).

**Example:** `"startDate": "2026-10-01"`

**Tip:** Combine with `endDate` for a closed window, e.g. one quarter.

**Combinations:** Overrides `dateOption`; works with every other filter.

##### `endDate` - End date (custom range)

**What it does:** Last day of a custom date range (YYYY-MM-DD).

**How it works:** When set, the date option becomes custom-date-range and only ads that ran on or before this day are searched.

**Allowed values and default:** type string; no default (leave it empty to switch it off).

**Example:** `"endDate": "2026-11-14"`

**Tip:** Leave it empty to search up to today.

**Combinations:** Used together with `startDate`; overrides `dateOption`.

##### `impressionsMinValue` - Min impressions

**What it does:** Keep only ads with at least this many impressions, counted in the unit set by "Impressions minimum unit".

**How it works:** The value and unit are passed to every search as the library's impressions filter, so only ads whose impressions range reaches the minimum are returned (e.g. 10 + thousand = at least 10,000 impressions).

**Allowed values and default:** type integer; from 0 to no upper limit; no default (leave it empty to switch it off).

**Example:** `"impressionsMinValue": 10`

**Tip:** Use it to skip tiny test ads and find the campaigns with real reach.

**Combinations:** Pair with `impressionsMinUnit`; can be combined with a maximum for a band.

##### `impressionsMinUnit` - Min impressions unit

**What it does:** Unit of the impressions minimum: none (plain number), thousand or million.

**How it works:** Multiplies `impressionsMinValue`: 10 with "thousand" = 10,000; 1 with "million" = 1,000,000. Ignored while no minimum is set.

**Allowed values and default:** type string; one of `none` (As written), `thousand` (Thousand), `million` (Million); default "thousand".

**Example:** `"impressionsMinUnit": "thousand"`

**Tip:** Keep "thousand" for most searches.

**Combinations:** Only used together with `impressionsMinValue`.

##### `impressionsMaxValue` - Max impressions

**What it does:** Keep only ads with at most this many impressions, counted in the unit set by "Impressions maximum unit".

**How it works:** Passed to every search as the upper impressions filter, so ads above the maximum are left out.

**Allowed values and default:** type integer; from 0 to no upper limit; no default (leave it empty to switch it off).

**Example:** `"impressionsMaxValue": 100`

**Tip:** Use it with a minimum to study ads of one size band, e.g. 1k-100k impressions.

**Combinations:** Pair with `impressionsMaxUnit`.

##### `impressionsMaxUnit` - Max impressions unit

**What it does:** Unit of the impressions maximum: none, thousand or million.

**How it works:** Multiplies `impressionsMaxValue` the same way as the minimum unit. Ignored while no maximum is set.

**Allowed values and default:** type string; one of `none` (As written), `thousand` (Thousand), `million` (Million); default "thousand".

**Example:** `"impressionsMaxUnit": "thousand"`

**Tip:** Keep "thousand" unless you need million-scale bands.

**Combinations:** Only used together with `impressionsMaxValue`.

##### `adFormats` - Ad formats (optional)

**What it does:** Keep only ads of these formats: Video Ad, Single Image Ad, Carousel Ad, Document Ad, Text Ad, Message Ad and others.

**How it works:** Each ad's format (field `format`) is compared with your list (case does not matter); ads of other formats are skipped and not charged. The search itself still pages through all formats.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"adFormats": ["Video Ad", "Carousel Ad"]`

**Tip:** Use "Video Ad" to collect video creatives, "Document Ad" for lead-gen PDFs.

**Combinations:** Works after the search filters; a narrow format can return fewer ads than `maxItemsPerSearch`.

##### `scrapeAdDetails` - Scrape ad details

**What it does:** Opens every ad for the full details: advertiser link and headline, payer, run dates, impressions range, impressions per country, targeting, video files and call to action.

**How it works:** With it on, one extra request is made per ad and the row gets `paidBy`, `startDate`, `endDate`, `impressions`, `impressionsByCountry`, `targeting` and `video`; `detailsScraped` is true. With it off, rows have the card data only (advertiser, format, text, headline, image) and the run is several times faster.

**Allowed values and default:** type boolean; default true.

**Example:** `"scrapeAdDetails": true`

**Tip:** Keep it on for analysis; turn it off for a fast inventory of many ads.

**Combinations:** Needed for the date-based fields (`days_running`, `is_active`) and impressions numbers.

##### `maxItemsPerSearch` - Max ads per search

**What it does:** Maximum ads per search - per keyword, advertiser, payer combination or link.

**How it works:** Every search is paged (24 ads per page) until it has this many ads or the library has no more. The limit is per search: 20 with 2 keywords = up to 40 ads.

**Allowed values and default:** type integer; from 1 to 100000; default 50.

**Example:** `"maxItemsPerSearch": 50`

**Tip:** Use a small value (10-20) to sample many keywords; a large one for a full export of one advertiser.

**Combinations:** The total is still capped by `maxItems`.

##### `mode` - Mode

**What it does:** All ads (default) returns every ad a search finds; New ads only returns only ads that no earlier run of the same search returned.

**How it works:** In new-only mode the Actor keeps a registry (a named store in your Apify account) of every ad id it returned. Ads already in the registry are skipped before their details are opened, so they cost nothing, and the new ones are added at the end of the run.

**Allowed values and default:** type string; one of `all` (All ads), `new-only` (New ads only (skip ads returned by earlier runs)); default "all".

**Example:** `"mode": "new-only"`

**Tip:** Schedule the LinkedIn Ads Scraper daily in new-only mode to get a feed of fresh ads from competitors.

**Combinations:** The registry is chosen by `registryKey`; works with every search option.

##### `registryKey` - Registry name (new ads only)

**What it does:** The name of the registry used by New ads only mode.

**How it works:** Leave it empty and the name is derived from your searches (keywords, advertisers, payers, countries, links), so the same search always finds its own registry again and different searches never mix. Give a name to share one registry between several searches or to start a fresh one.

**Allowed values and default:** type string; no default (leave it empty to switch it off).

**Example:** `"registryKey": "competitor-watch"`

**Tip:** Change the name (e.g. "q4-monitoring") to start a new registry from zero.

**Combinations:** Only used with `mode`: "new-only".

##### `includedTargetingFacetCategories` - Targeting uses (optional)

**What it does:** Keeps only ads whose targeting uses at least one of these categories: Audience, Demographic, Company, Education, Job, Member Interests.

**How it works:** Each ad's targeting table (from its details) is checked: a category counts as used when it is targeted or excluded. Ads without such a category are dropped and not charged. Ad details are switched on automatically because only they carry the targeting table.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"includedTargetingFacetCategories": ["Job", "Company"]`

**Tip:** Use "Job" to find ads aimed at job titles or functions, "Company" for account-based campaigns.

**Combinations:** Can be combined with `excludedTargetingFacetCategories`; targeting is published for ads shown in the EU, so add an EU country in `countries`.

##### `excludedTargetingFacetCategories` - Targeting does not use (optional)

**What it does:** Drops ads whose targeting uses one of these categories.

**How it works:** The same targeting table is checked; an ad that targets or excludes one of the listed categories is left out (not charged). Ad details are switched on automatically.

**Allowed values and default:** type array; no default (leave it empty to switch it off).

**Example:** `"excludedTargetingFacetCategories": ["Member Interests"]`

**Tip:** Exclude "Member Interests" to keep only firmographic campaigns.

**Combinations:** Works together with `includedTargetingFacetCategories` (a category may appear in both lists, like LinkedIn's "Both").

##### `maxConcurrency` - Parallel searches

**What it does:** How many searches run at the same time.

**How it works:** Every keyword / advertiser / payer combination is its own search; up to this many run in parallel, each following its own page-to-page cursor, and the ad details of every page are opened in parallel too by several visitor sessions.

**Allowed values and default:** type integer; from 1 to 20; default 5.

**Example:** `"maxConcurrency": 5`

**Tip:** The default 5 is fast and safe; raise it for long keyword lists.

**Combinations:** Does not change the cost or the data; `maxItemsPerSearch` and `maxItems` still apply exactly.

##### `minDelay` - Pause between pages (seconds)

**What it does:** An extra pause in seconds before each further results page of a search.

**How it works:** The first page of every search loads at once; before each next page the Actor waits this long. 0 (default) means as fast as possible.

**Allowed values and default:** type integer; from 0 to 60; default 0.

**Example:** `"minDelay": 0`

**Tip:** Only raise it if you see many retries in the log.

**Combinations:** Slows long searches down; it does not change which ads are returned.

##### `maxItems` - Max ads in total

**What it does:** Maximum ads in the whole run.

**How it works:** The run stops as soon as this many ads are written across all searches - your exact cost limit. Ads found twice (by two keywords) are written once.

**Allowed values and default:** type integer; from 1 to 100000; default 50.

**Example:** `"maxItems": 100`

**Tip:** Set it to searches x `maxItemsPerSearch` if every search should get its full share.

**Combinations:** Caps the sum of all searches; `maxItemsPerSearch` caps each one.

##### `proxyConfiguration` - Proxy configuration

**What it does:** chooses the proxy LinkedIn Ads Scraper connects through. **How it works:** by default every request goes through Apify residential proxies with a fresh session after any block, which is the setup all our tests used. **Allowed values and default:** an Apify proxy object; default `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`. **Tip:** keep the default unless you have your own proxy group - a datacenter proxy is blocked far more often and gives fewer rows. **Combinations:** works with every other option; it never changes what is scraped, only how reliably.

#### Ready-to-copy input examples for LinkedIn Ads Scraper

**Keyword search in one country - the latest 20 "software" ads shown in Germany, with full details.**

```json
{
  "keywords": [
    "software"
  ],
  "countries": [
    "DE"
  ],
  "dateOption": "last-30-days",
  "scrapeAdDetails": true,
  "maxItemsPerSearch": 20,
  "maxItems": 20
}
```

**All ads of two advertisers this year - 50 per advertiser, up to 100 ads.**

```json
{
  "advertisers": [
    "Microsoft",
    "HubSpot"
  ],
  "dateOption": "current-year",
  "maxItemsPerSearch": 50,
  "maxItems": 100
}
```

**Video ads with real reach in a custom window - at least 10,000 impressions, between two dates.**

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "startDate": "2026-10-01",
  "endDate": "2026-11-14",
  "impressionsMinValue": 10,
  "impressionsMinUnit": "thousand",
  "adFormats": [
    "Video Ad"
  ],
  "maxItemsPerSearch": 30,
  "maxItems": 30
}
```

**A link you built in the browser plus one single ad.**

```json
{
  "startUrls": [
    "https://www.linkedin.com/ad-library/search?keyword=software&countries=US",
    "https://www.linkedin.com/ad-library/detail/1615999783"
  ],
  "maxItemsPerSearch": 10,
  "maxItems": 11
}
```

#### Output example of LinkedIn Ads Scraper

One real row from a LinkedIn Ads Scraper test run (lists shortened to two entries, long texts cut):

```json
{
  "adId": "1646533344",
  "adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1646533344",
  "format": "Video Ad",
  "creativeType": "SPONSORED_VIDEO",
  "advertiser": {
    "name": "devicenow",
    "url": "https://www.linkedin.com/company/78699782",
    "type": "company",
    "headline": null,
    "logo": "https://media.licdn.com/dms/image/v2/D4D0BAQE2zxmB34Fgsw/company-logo_100_100/B4DZ0aggzoKUAQ-/0/1774266224212/devicenow_logo?e=1796860800&v=beta&t=R_R05dvJYA..."
  },
  "advertiserName": "devicenow",
  "advertiserUrl": "https://www.linkedin.com/company/78699782",
  "advertiserType": "company",
  "advertiserHeadline": null,
  "advertiserLogo": "https://media.licdn.com/dms/image/v2/D4D0BAQE2zxmB34Fgsw/company-logo_100_100/B4DZ0aggzoKUAQ-/0/1774266224212/devicenow_logo?e=1796860800&v=beta&t=R_R05dvJYA...",
  "paidBy": "Devicenow GmbH",
  "startDate": "2026-11-19",
  "endDate": "2026-11-21",
  "runPeriod": "Ran from Nov 19, 2026 to Nov 21, 2026",
  "body": "A device can be delivered and still be a long way from being ready for work.\n\nAs Sven Matthiesen points out, having the hardware is only the beginning. Befor...",
  "headline": null,
  "hashtags": [
    "OneLifecycleAdvantage",
    "DaaS"
  ],
  "mentions": [
    {
      "name": "Sven Matthiesen",
      "type": "profile",
      "linkedinUrl": "https://www.linkedin.com/in/sven-matthiesen-6a5402168"
    },
    {
      "name": "David Schwalen",
      "type": "profile",
      "linkedinUrl": "https://www.linkedin.com/in/schwalen"
    }
  ],
  "imageUrl": "https://media.licdn.com/dms/image/v2/D4E05AQEbC9Zi3v4r6Q/videocover-high/B4EaG_pBX6H0BU-/0/1795084306195?e=2147483647&v=beta&t=Zrqllf2ZWJ-8bwV9TPql9qf2cSwPL9...",
  "imageUrls": [
    "https://media.licdn.com/dms/image/v2/D4E05AQEbC9Zi3v4r6Q/videocover-high/B4EaG_pBX6H0BU-/0/1795084306195?e=2147483647&v=beta&t=Zrqllf2ZWJ-8bwV9TPql9qf2cSwPL9..."
  ],
  "video": {
    "url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/mp4-720p-30fp-crf28/B4EaG_pBX7H0AY-/0/1794216593361?e=2147483647&v=beta&t=Je1qgOTDNW92RKhL2ErAQejOR...",
    "poster": "https://media.licdn.com/dms/image/v2/D4E05AQEbC9Zi3v4r6Q/videocover-high/B4EaG_pBX6H0BU-/0/1795084306195?e=2147483647&v=beta&t=Zrqllf2ZWJ-8bwV9TPql9qf2cSwPL9...",
    "sources": [
      {
        "url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/mp4-720p-30fp-crf28/B4EaG_pBX7H0AY-/0/1794216593361?e=2147483647&v=beta&t=Je1qgOTDNW92RKhL2ErAQejOR...",
        "type": "video/mp4",
        "bitrate": 431337
      },
      {
        "url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/mp4-640p-30fp-crf28/B4EaG_pBX7H0AU-/0/1794216593361?e=2147483647&v=beta&t=lFxkPke8yhidy8p-ltC-U5KOA...",
        "type": "video/mp4",
        "bitrate": 326771
      }
    ]
  },
  "document": null,
  "impressions": "1k-5k",
  "impressionsByCountry": [
    {
      "country": "France",
      "impressionsShare": "50%"
    },
    {
      "country": "United Kingdom",
      "impressionsShare": "13%"
    }
  ],
  "targeting": {
    "language": [
      "Targeting includes English"
    ],
    "location": [
      "Targeting includes DACH, France and 2 others Nordics, United Kingdom"
    ],
    "other": {},
    "parameters": [
      {
        "parameter": "Audience",
        "targeted": false,
        "excluded": false
      },
      {
        "parameter": "Demographic",
        "targeted": false,
        "excluded": false
      }
    ]
  },
  "detailsScraped": true,
  "searchUrl": "https://www.linkedin.com/ad-library/search?keyword=cloud+security&countries=DE&countries=US&dateOption=last-30-days",
  "startUrl": "https://www.linkedin.com/ad-library/search?keyword=cloud+security&countries=DE&countries=US&dateOption=last-30-days",
  "searchKeyword": "cloud security",
  "searchAdvertiser": null,
  "scrapedAt": "2026-11-21T16:39:42Z",
  "id": "1646533344",
  "url": "https://www.linkedin.com/ad-library/detail/1646533344",
  "detail_url": "https://www.linkedin.com/ad-library/detail/1646533344",
  "advertiserBio": null,
  "advertiser_logo_url": "https://media.licdn.com/dms/image/v2/D4D0BAQE2zxmB34Fgsw/company-logo_100_100/B4DZ0aggzoKUAQ-/0/1774266224212/devicenow_logo?e=1796860800&v=beta&t=R_R05dvJYA...",
  "payer": "Devicenow GmbH",
  "promoted_by": "devicenow",
  "isPromoted": true,
  "availability": "Ran from Nov 19, 2026 to Nov 21, 2026",
  "availabilityRaw": "Ran from Nov 19, 2026 to Nov 21, 2026",
  "ran_from": "2026-11-19",
  "ran_to": "2026-11-21",
  "firstShownAt": "2026-11-19",
  "lastShownAt": "2026-11-21",
  "days_running": 3,
  "is_active": true,
  "adStatus": "active",
  "body_preview": "A device can be delivered and still be a long way from being ready for work.\n\nAs Sven Matthiesen points out, having the…",
  "carousel_images": [],
  "has_details": true,
  "impressions_display": "1k-5k",
  "totalImpressionsRaw": "1k-5k",
  "impressions_min": 1000,
  "impressions_max": 5000,
  "totalImpressionsMin": 1000,
  "totalImpressionsMax": 5000,
  "impressionsPerCountry": [
    {
      "country": "France",
      "impressionsShare": "50%"
    },
    {
      "country": "United Kingdom",
      "impressionsShare": "13%"
    }
  ],
  "query": "cloud security",
  "targeting_parameters": [
    {
      "parameter": "Audience",
      "targeted": false,
      "excluded": false
    },
    {
      "parameter": "Demographic",
      "targeted": false,
      "excluded": false
    }
  ],
  "targeting_segments": [
    "Targeting includes English",
    "Targeting includes DACH, France and 2 others Nordics, United Kingdom"
  ],
  "video_urls": [
    "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/mp4-720p-30fp-crf28/B4EaG_pBX7H0AY-/0/1794216593361?e=2147483647&v=beta&t=Je1qgOTDNW92RKhL2ErAQejOR...",
    "https://dms.licdn.com/playlist/vid/v2/D4E05AQEbC9Zi3v4r6Q/mp4-640p-30fp-crf28/B4EaG_pBX7H0AU-/0/1794216593361?e=2147483647&v=beta&t=lFxkPke8yhidy8p-ltC-U5KOA..."
  ]
}
```

You can download the LinkedIn Ads Scraper dataset as JSON, CSV, Excel (XLSX), XML or HTML, read it through the Apify API, or send it to Google Sheets, Zapier, Make or a webhook when the LinkedIn Ads Scraper run finishes.

#### Use cases for LinkedIn Ads Scraper

- **Competitor ad research** - see every ad a competitor runs, its copy, creative and format.
- **Creative inspiration** - collect the best-performing B2B ad copy and visuals in your niche.
- **Audience insights** - read the targeting of EU ads: languages, locations and audience parameters.
- **Market sizing** - compare impression ranges by country across advertisers.
- **Agency pitches** - show prospects what their competitors spend their LinkedIn budget on.
- **Brand monitoring** - track ads that mention your brand or product.
- **Lead generation** - find companies that are actively advertising - a strong buying signal.
- **Compliance research** - archive political or regulated-industry ads over time.

#### How much does LinkedIn Ads Scraper cost?

LinkedIn Ads Scraper uses pay-per-event pricing: you pay for each ad row written to the dataset (the `result` event) and nothing for inputs that give no row. Prices per 1,000 ads:

| Apify plan | Price per 1,000 results |
|---|---|
| Free | $1.49 |
| Bronze | $1.39 |
| Silver | $1.29 |
| Gold and higher | $1.19 |

**Worked example:** 100 ads on the Free plan cost 100 x $1.49 / 1,000 = **$0.15**; 10,000 ads on the Gold plan cost 10,000 x $1.19 / 1,000 = **$11.90**. Apify platform usage (compute and proxy) is included in the event price.

**How to cap the cost:** set "Max ads per search" (`maxItemsPerSearch`) and "Max ads" (`maxItems`) - the run stops when the total is reached - and a maximum cost per run in the run options.

**Measured limits of LinkedIn Ads Scraper:**

- Our test run (keywords "software" and "cloud security", countries DE + US, last 30 days, 11 ads per keyword with details) gave 22 ads in 32 seconds (1.5 s per ad): searches run in parallel and the ad details of a page are opened in parallel.
- Searches come in pages of 24 ads; paging continues until the last page, so `maxItemsPerSearch` can be as high as the library has ads.
- Ad spend and exact impressions are not published in the LinkedIn Ad Library - only an impressions range and the share per country.
- With details on, each ad needs one extra request (about 1-2 seconds); turn details off for large keyword sweeps.

#### Tips for better LinkedIn Ads Scraper results

- Choose an EU country (DE, FR, NL ...) when you need impressions, run dates and targeting - those are published for ads shown in the EU.
- Combine keywords with an advertiser to see one company's ads on one topic.
- Turn off ad details for a fast, cheap list of creatives only.
- Schedule the LinkedIn Ads Scraper daily with "last 30 days" to catch every new ad.

#### Use LinkedIn Ads Scraper through the API

Start the LinkedIn Ads Scraper from your own code with the Apify client. Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/linkedin-ads-scraper").call(run_input={"keywords": ["cybersecurity"], "advertisers": ["Microsoft"], "countries": ["DE", "FR"], "dateOption": "last-30-days", "scrapeAdDetails": true, "maxItemsPerSearch": 100})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Node.js:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/linkedin-ads-scraper').call({"keywords": ["cybersecurity"], "advertisers": ["Microsoft"], "countries": ["DE", "FR"], "dateOption": "last-30-days", "scrapeAdDetails": true, "maxItemsPerSearch": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

You can also schedule the LinkedIn Ads Scraper (daily, weekly) in Apify Console and get every new dataset by webhook, or connect the LinkedIn Ads Scraper to your CRM, Airtable, HubSpot or a data warehouse through the Apify integrations.

#### Limits of LinkedIn Ads Scraper

- Impressions, impressions by country, run dates and targeting are published only for ads shown in the European Union; other ads return the creative, advertiser and payer.
- Spend and exact impression numbers are not published - impressions come as a range.
- The button text and landing page link of an ad were not shown on any measured ad, so they are not returned.

#### FAQ about LinkedIn Ads Scraper

**Why did I get fewer ads than the maximum?**

The search had no more ads for your filters, or `adFormats` left some out. The log shows how many ads each search gave.

**Why are dates and impressions empty?**

They come with "Scrape ad details" on. With it off, only the ad card (advertiser, format, text, image) is returned.

**Can I run many keywords and advertisers in one run?**

Yes - each line is its own search; keywords x advertisers x payers are combined, and `maxItemsPerSearch` applies to each.

**How do I get only new ads?**

Schedule the LinkedIn Ads Scraper with "last-30-days" and keep the `adId`s you already have; new ids are new ads.

**Does it show ad spend?**

No - LinkedIn publishes only the impressions range and the share per country, not the spend.

**Which ads can the LinkedIn Ads Scraper find?**

All ads in LinkedIn's public ad archive - LinkedIn keeps ads for at least a year after they last ran.

**Why are impressions empty for some ads?**

LinkedIn publishes impressions, dates and targeting for ads shown in the EU. Pick EU countries to get them.

**Can I scrape all ads of one company?**

Yes - put the company name in Advertisers and leave keywords empty.

**How many ads per search?**

As many as the archive holds; pages of 24 are followed until max ads per search.

**Does it download the videos?**

It returns the direct video file links (several qualities) and the poster image.

**Can I use a link copied from the browser?**

Yes - paste it into Ad Library links; all filters in the link are kept.

**Is it legal to use LinkedIn Ads Scraper?**

LinkedIn Ads Scraper collects only data that LinkedIn members and companies publish for everyone to see, and it never logs in. Personal data is protected by laws such as the GDPR in the EU and the CCPA in California: scrape personal data only with a legitimate reason, keep it secure and delete it when you no longer need it. LinkedIn's User Agreement restricts automated access; you are responsible for how you use the LinkedIn Ads Scraper and its results. If unsure, ask a lawyer.

**Does LinkedIn Ads Scraper need my LinkedIn account or cookies?**

No. LinkedIn Ads Scraper works without any LinkedIn account, password or cookie - your own account is never at risk.

**What if LinkedIn Ads Scraper returns fewer rows than I asked for?**

The LinkedIn Ads Scraper stops when there is nothing more to find for your input; the run status message says how many rows each input produced and why a list ended early.

#### Related scrapers

- [LinkedIn Company Scraper](https://apify.com/neuro-scraper/linkedin-company-scraper)
- [LinkedIn Profile & Company Posts Scraper](https://apify.com/neuro-scraper/linkedin-profile-company-posts-scraper)
- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - reels, captions, views and creators

#### Feedback on LinkedIn Ads Scraper

Found a bug or need a field the LinkedIn Ads Scraper does not return yet? Open an issue on the LinkedIn Ads Scraper Issues tab - we read every one and usually ship fixes within days. Thank you for using LinkedIn Ads Scraper!

# Actor input Schema

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

Words or phrases in the ads, one search per line, e.g. "software" or "cloud security".

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

Advertiser names, one per line, e.g. "Microsoft". Combined with every keyword when both are given.

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

The organisation that paid for the ads ("Paid for by"), one per line.

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

LinkedIn Ad Library search links (https://www.linkedin.com/ad-library/search?keyword=software\&countries=US) - every filter in the link is kept - or single ad links (https://www.linkedin.com/ad-library/detail/1643453274).

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

Two-letter country codes where the ads ran, e.g. US, GB, DE. Empty = all countries.

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

When the ads ran.

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

First day, e.g. 2026-10-01. Setting a start or end date switches to a custom range.

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

Last day, e.g. 2026-11-14.

## `impressionsMinValue` (type: `integer`):

Only ads with at least this many impressions (in the unit below).

## `impressionsMinUnit` (type: `string`):

Unit of the minimum.

## `impressionsMaxValue` (type: `integer`):

Only ads with at most this many impressions (in the unit below).

## `impressionsMaxUnit` (type: `string`):

Unit of the maximum.

## `adFormats` (type: `array`):

Keep only these formats, e.g. "Video Ad", "Single Image Ad", "Carousel Ad", "Document Ad", "Text Ad", "Message Ad" (matched on each ad).

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

Open each ad for advertiser link, payer, run dates, impressions, impressions by country, targeting, video files and CTA (one extra request per ad).

## `maxItemsPerSearch` (type: `integer`):

Stop each keyword / advertiser / link after this many ads (the limit applies to every search). Pages of 24 are followed to the end.

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

New ads only keeps a registry of every ad earlier runs returned and gives only ads never seen before - for scheduled monitoring.

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

Name of the registry of already-seen ads. Empty = derived from your searches, so the same search finds its own registry.

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

Keep only ads whose targeting uses one of these categories: Audience, Demographic, Company, Education, Job, Member Interests. Needs the ad details (switched on automatically).

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

Drop ads whose targeting uses one of these categories (Audience, Demographic, Company, Education, Job, Member Interests).

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

How many searches run at the same time; the ad details of each page are opened in parallel too.

## `minDelay` (type: `integer`):

Extra pause before each further results page of a search. 0 = as fast as possible.

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

Stop the run after this many ads.

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

Residential proxy is recommended and is the default.

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "impressionsMinUnit": "thousand",
  "impressionsMaxUnit": "thousand",
  "scrapeAdDetails": true,
  "maxItemsPerSearch": 50,
  "mode": "all",
  "maxConcurrency": 5,
  "minDelay": 0,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

# 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 = {
    "keywords": [
        "software"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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 = {
    "keywords": ["software"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/linkedin-ads-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 '{
  "keywords": [
    "software"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/linkedin-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/linkedin-ads-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/Kpd2ATbZZmcfCnmUj/builds/pcHIaqeInGfOqI91i/openapi.json
