# LinkedIn Ad Library Scraper – Competitor Ads & Impressions (`rowfeed/linkedin-ad-library-scraper`) Actor

Every LinkedIn ad a company ran in the last 12 months, from the public LinkedIn Ad Library: full text, landing page, CTA, format, image or video, who paid, run dates, impressions by country, targeting. No login. $1.49 per 1,000 ads.

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

## Pricing

from $1.34 / 1,000 ads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## LinkedIn Ad Library Scraper – Competitor Ads & Impressions

Get every LinkedIn ad a company ran in the last 12 months from the public [LinkedIn Ad Library](https://www.linkedin.com/ad-library), as clean rows. Type a competitor's name, and you get each ad with its full text, headline, call to action, landing page, format, image or video, the advertiser and who paid, the first and last day it was shown, total impressions, impressions by country, and the targeting LinkedIn discloses (language, locations and which targeting types were used).

- **Competitors by name or website**: `HubSpot`, `salesforce.com`, `Monday.com`, or a LinkedIn company page or id for an exact match.
- **Words in the ad**: find every ad that mentions `webinar`, `free trial` or your product category, from any advertiser.
- **Filters**: countries where the ad was shown, last 30 days, this year, last year or your own date range.
- **Full details**: landing page with the advertiser's UTM tags, CTA button, run dates, impressions range and country split, targeting.
- **Monitoring**: with **Only new ads** on a schedule, you get each competitor's new ads once. Ads already delivered are not charged.
- **No login, no cookies**: it reads the same public pages any visitor sees.

### How to use

1. Type one or more companies in **Companies (advertisers)**, one per line. Or type words in **Words in the ad**.
2. Optionally pick countries and a date range.
3. Set **Max ads per company or word** (default 50) and click **Start**.
4. Download the rows as Excel, CSV or JSON, or send them to Google Sheets, Make, n8n or Zapier.

**Weekly competitor ad report (recommended):** turn on **Only new ads**, add your competitors and create a schedule (Schedules → Create). Marketers use it to see which offers, webinars and eBooks competitors push, agencies to collect LinkedIn ad examples for pitches, and sales teams to spot companies that just started advertising.

### Output

| Field | Example |
|---|---|
| ad_id, ad_url | 1645997973, the ad's Ad Library page |
| advertiser, advertiser_company_id, advertiser_page | Salesforce Ben, 7970687, the LinkedIn company page |
| paid_by | SFB Ventures Ltd |
| ad_format, thought_leader_ad | Single Image Ad, false |
| text, headline, cta | the full ad text, Download Now, Learn more |
| landing_url, landing_domain | https://www.copado.com/go/…?utm_source=…, copado.com |
| image_url, image_urls, video_url | the creative image(s), the video file for video ads |
| first_shown, last_shown, days_shown | 2026-11-25, 2026-12-02, 8 |
| total_impressions, impressions_min, impressions_max | < 1k, 0, 1000 |
| top_country, impressions_by_country | Australia, \[{country: Australia, share_pct: 60}, …] |
| targeting_language, targeting_location | \[English], \[Germany, Netherlands, France, …] |
| targeting_parameters | {Company: targeted, Job: targeted, Audience: null, …} |

`thought_leader_ad` is true when the company promoted a post from an employee's profile. The row then names the company that paid, not the employee.

**Good to know:** LinkedIn itself shows run dates, impressions and targeting for only part of its ads (about half in our tests, mostly ads shown in the EU), and a landing page for about four in ten. For the rest those fields are empty in the Ad Library too. Text, format, creative, advertiser and who paid are there for every ad.

**Speed:** LinkedIn limits how fast its Ad Library can be read. With full details a run delivers roughly 15-20 ads per minute, so 50 ads take about 3 minutes. Turn off **Full details** for a quick list (24 ads per page).

### Pricing

You pay per ad delivered, with no start fee. Searches without ads and ads already delivered in monitoring mode are free. See the Pricing tab for the current price.

### FAQ

**Do I need a LinkedIn account?** No. The Actor reads the public Ad Library pages at a polite speed. It never logs in.

**How far back does it go?** LinkedIn keeps ads of the last 12 months in the Ad Library.

**Why do I see an advertiser with a similar name?** LinkedIn's company search matches names loosely (`Salesforce` also finds `Salesforce Ben`). Each row says which advertiser ran the ad. For an exact match, enter the company's LinkedIn page or numeric id.

**Does it show the targeting audience?** It returns what LinkedIn discloses: language, locations, and whether audience, company, job, education, demographic or interest targeting was used or excluded. LinkedIn does not publish budgets.

**Is this legal?** The Ad Library is public by design: LinkedIn publishes it so anyone can see which ads run. The Actor collects no personal profiles.

### Related

- [Competitor Ads Finder](https://apify.com/rowfeed/competitor-ads-finder): a competitor's ads from the Google, LinkedIn and Microsoft (Bing) ad libraries in one table.
- [Google Ads Transparency Scraper](https://apify.com/rowfeed/google-ads-transparency): the same competitor's ads on Google Search, YouTube and Shopping.
- [Company Enrichment by Domain](https://apify.com/rowfeed/company-enrichment-by-domain): size, industry and socials for each landing domain.
- [Website Technology Checker](https://apify.com/rowfeed/website-technology-checker): which marketing tools the landing pages use.

# Actor input Schema

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

One company per line: its name (HubSpot, Salesforce), its website (hubspot.com), its LinkedIn company id (1035) or its LinkedIn page (linkedin.com/company/1035). Name search also finds advertisers with similar names; each row says which advertiser ran the ad.

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

Find ads that contain a word or phrase, e.g. webinar, CRM, hiring. Combined with each company above, or on its own.

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

Only ads shown in these countries. 2-letter codes or names: US, GB, DE, France. Empty = all countries.

## `dateRange` (type: `string`):

LinkedIn keeps ads of the last 12 months.

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

Used with 'Between the dates below'.

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

Used with 'Between the dates below'.

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

Each company (and each word) is one search.

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

Opens each ad's detail page for the full text, landing page, call to action, who paid, first and last shown, impressions by country and targeting. Off = only what the result list shows (shortened text, format, image), faster.

## `onlyNew` (type: `boolean`):

Skip ads this search already delivered in earlier runs; they are not charged. Use with a schedule to get each competitor's new ads.

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

Paste a search address from linkedin.com/ad-library (any filters) or single ad addresses (linkedin.com/ad-library/detail/...), one per line.

## Actor input object example

```json
{
  "advertisers": [
    "HubSpot"
  ],
  "dateRange": "",
  "maxAdsPerSearch": 50,
  "includeDetails": true,
  "onlyNew": false
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "advertisers": [
        "HubSpot"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfeed/linkedin-ad-library-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "advertisers": ["HubSpot"] }

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

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "advertisers": [
    "HubSpot"
  ]
}' |
apify call rowfeed/linkedin-ad-library-scraper --silent --output-dataset

```

## MCP server setup

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

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kD1WLCWtPVzE70UDw/builds/gRimKKQm1WLEpiZ1g/openapi.json
