LinkedIn Ad Library Scraper: Ads, Impressions and Targeting avatar

LinkedIn Ad Library Scraper: Ads, Impressions and Targeting

Under maintenance

Pricing

from $1.45 / 1,000 ads scraped

Go to Apify Store
LinkedIn Ad Library Scraper: Ads, Impressions and Targeting

LinkedIn Ad Library Scraper: Ads, Impressions and Targeting

Under maintenance

Export ads from the LinkedIn Ad Library with no login. Search by advertiser name, keyword, company ID or pasted search link and filter by country and date. Get ad copy, media, who paid, run dates, impressions by country and targeting for EU ads. For B2B competitor research and creative swipe files.

Pricing

from $1.45 / 1,000 ads scraped

Rating

0.0

(0)

Developer

Oski

Oski

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

3

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

LinkedIn Ad Library Scraper

Scrape the LinkedIn Ad Library into clean, structured data. Search by advertiser name, keyword, LinkedIn company ID or a pasted Ad Library URL, filter by country and date, and get every ad's copy, media, paying entity, run dates, impressions (total and by country) and targeting. On a real 180-ad test run, every ad LinkedIn could load came back with full details, and 1,000 ads cost about $1.50.

No login, no cookies, no LinkedIn account at risk. Part of an ad-intelligence suite with the Google Ads Transparency Center Scraper and the Facebook Ad Library Scraper, so you can cover LinkedIn, Google and Meta from one account.

What you can use it for

  • B2B agencies: pull a prospect's and their competitors' LinkedIn ads before a pitch, with copy, formats and who paid.
  • SaaS founders and product marketers: see how competitors position new features, which formats they favour and when campaigns start and stop.
  • Demand generation teams: read the targeting block (languages, locations, and whether company, job or audience targeting was used) on EU-covered ads.
  • Creative teams: build a swipe file of carousels, document ads, videos and message ads with the full text.
  • Recruiters and employer-brand teams: track which companies are advertising roles and culture on LinkedIn, and in which countries.

How to use it

  1. Under Advertiser names, add companies as they appear on LinkedIn, such as HubSpot. Or search ad text with Keywords.
  2. Optionally add Countries (names or codes) and a date range with the date pickers.
  3. Leave Max ads per search at 1,000 (or change it) and click Start.
  4. When it finishes, open the Output tab and download as CSV, Excel or JSON.

While it runs, the status line at the top of the run page shows progress (for example "Search 1 of 2: advertiser HubSpot. 120 ads so far."). When it finishes, the same line says what was found and explains anything that was skipped, so you never have to read the log.

Run it on a schedule

The recurring job for this actor is tracking a competitor's LinkedIn campaigns: a regular run that lists the ads they ran in the last 30 days, so you can see what is new since the last check.

Input for a daily run

{
"advertisers": [
"hubspot"
],
"countries": [
"GB"
],
"dateRange": "last-30-days",
"maxAdsPerSearch": 100
}

This actor has no memory of earlier runs, and the date filter keeps ads that ran in the period, not only ads that started in it. So each run returns ads you already have as well. Match on ad_id to drop the repeats.

Set it up in three steps

  1. Open the actor, fill the input as above and click Save as a new task.
  2. Open Schedules in the Apify console, click Create new and pick how often it should run. For every day at 07:00 UTC, the cron line is 0 7 * * *.
  3. Add the saved task to the schedule and save.

A month costs about $4.56 for 30 daily runs of 100 ads each (30 x $0.002 start fee, plus 3,000 ads at $0.0015). LinkedIn campaigns change slowly, so a weekly run is often enough: use 0 7 * * 1 (Mondays at 07:00 UTC), and 4 such runs cost about $0.61.

Or create the schedule over the API

curl -X POST "https://api.apify.com/v2/schedules" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "daily-linkedin-ads",
"cronExpression": "0 7 * * *",
"timezone": "UTC",
"isEnabled": true,
"isExclusive": true,
"actions": [{
"type": "RUN_ACTOR",
"actorId": "oski~linkedin-ad-library-scraper",
"runInput": {
"body": "{\"advertisers\": [\"hubspot\"], \"countries\": [\"GB\"], \"dateRange\": \"last-30-days\", \"maxAdsPerSearch\": 100}",
"contentType": "application/json; charset=utf-8"
}
}]
}'

How much does it cost?

You pay a $0.002 start fee plus $0.0015 per ad returned. Ads LinkedIn cannot load are still listed for transparency but never charged, so you only pay for ads that deliver data.

Ads returnedMathsCost
100$0.002 + 100 x $0.0015about $0.15
1,000$0.002 + 1,000 x $0.0015about $1.50
10,000$0.002 + 10,000 x $0.0015about $15.00

A typical 1,000-ad export of one competitor set costs about $1.50. Turning off includeDetails gives a faster preview-only scrape at the same per-ad price.

Input

FieldWhat it does
advertisersAdvertiser names as shown on LinkedIn (hubspot). One search each.
keywordsWords in the ad text (payroll software). One search each.
companyIdsExact advertiser match by LinkedIn company number (68529) or its linkedin.com/company/68529 link.
searchUrlsAny linkedin.com/ad-library/search?... URL, with its filters used as-is.
adUrlsSpecific ads by detail URL or numeric ID.
countriesOnly ads shown in these countries: names or codes (United Kingdom, UK, US). Empty means all.
dateRangeall, last-30-days, current-month, current-year, last-year.
startDate / endDateCustom range from the date pickers, or relative dates such as 3 months. Either one alone works: the other end is filled in. LinkedIn's data runs a day behind, so today counts as yesterday. Overrides dateRange.
includeDetailsOn by default. Off gives a faster preview-only scrape (advertiser, format, copy, headline, image).
maxAdsPerSearchCap per search (default 1,000).
maxAdsCap for the whole run (0 means no cap).
proxyConfigurationAdvanced. Apify Proxy; the default datacenter proxy works.

Example input

The smallest useful input is one advertiser:

{
"advertisers": ["hubspot"],
"maxAdsPerSearch": 100
}

A keyword search for ads from the last 30 days, shown in Germany or France:

{
"keywords": ["cybersecurity"],
"countries": ["Germany", "France"],
"dateRange": "last-30-days",
"maxAdsPerSearch": 300
}

A CRM competitor sweep across three advertisers and three countries, with a ceiling for the whole run:

{
"advertisers": ["hubspot", "salesforce", "pipedrive"],
"countries": ["GB", "DE", "FR"],
"dateRange": "current-year",
"maxAdsPerSearch": 400,
"maxAds": 1000
}

Other values you can send: dateRange takes all, last-30-days, current-month, current-year or last-year; startDate and endDate take a date such as 2026-06-01 or a relative period such as 3 months; companyIds takes a LinkedIn company number such as 68529; adUrls takes ad detail links or bare ad IDs; searchUrls takes any Ad Library search link copied from your browser; includeDetails set to false gives the faster preview-only scrape.

Output sample

One row per ad, always with the same fields in the same order:

{
"ad_id": "1621069673",
"ad_url": "https://www.linkedin.com/ad-library/detail/1621069673",
"search": "keyword:crm software",
"details_status": "ok",
"advertiser_name": "Remote Group | Business. Marketing. Software. Ecosystem for Growth",
"advertiser_type": "company",
"advertiser_company_id": "69788190",
"advertiser_url": "https://www.linkedin.com/company/69788190",
"advertiser_logo_url": "https://media.licdn.com/dms/image/v2/D4D0BAQFREnxzGkjE7A/company-logo_100_100/B4DZp5IqqWJIAQ-/0/1762968906807/remotemarketing_ro_logo?e=1796860800&v=beta&t=Y7yo7UpOGIoXM_9T_osLp8GjUsWGLSPPCObBcxUc1tg",
"paid_by": "AVA RESOURCES S.R.L.",
"format": "image",
"format_label": "Single Image Ad",
"creative_type": "SPONSORED_STATUS_UPDATE",
"headline": "Software complet pentru afaceri de Rent-a-Car",
"commentary": "Ai o companie de Rent-a-Car? Controlează întreaga afacere dintr-o singură platformă.\n\nDe la rezervări, flotă și tarife până la contracte, facturare și rapoarte, toate operațiunile sunt conectate într-un singur sistem. Integrăm ERP, DMS, CRM, CMS, website și aplicație mobilă pentru a automatiza proce...",
"commentary_links": [],
"cta": "Learn more",
"image_urls": [
"https://media.licdn.com/dms/image/v2/D4D10AQFTR7CB2Qfrvg/image_627_1200/B56aHqnP36KMAg-/0/1794937519791/RentACar_1200x627png?e=2147483647&v=beta&t=rDSCQEGRxfLPvKd_4NSc2OGOugjB_3YMubiajg5ADdM"
],
"video_urls": [],
"video_poster_url": null,
"carousel_slides": [],
"document_page_urls": [],
"message_sender": null,
"message_body": null,
"message_ctas": [],
"has_eu_transparency_data": true,
"first_shown": "2026-11-17",
"last_shown": "2026-11-19",
"impressions_range": "1k-5k",
"impressions_min": 1000,
"impressions_max": 5000,
"impressions_by_country": [],
"targeting": {
"language": {
"includes": [
"English"
],
"excludes": [],
"raw": [
"English"
]
},
"location": {
"includes": [
"Romania"
],
"excludes": [],
"raw": [
"Romania"
]
}
},
"targeting_parameters": [
{
"parameter": "Audience",
"targeted": false,
"excluded": false
},
{
"parameter": "Demographic",
"targeted": false,
"excluded": false
}
],
"scraped_at": "2026-11-19T20:33:09+00:00"
}

This is a real row from a run on 2026-11-19, with long text and long lists shortened.

Every format is parsed: single image, video (each MP4 rendition with its bitrate, plus video_poster_url), carousel (each slide's title and image), document (every page image), message ads (message_sender, message_body, message_ctas), article, follower and event ads. Rows also carry advertiser_logo_url and commentary_links.

Impression ranges become real numbers (30k-50k gives 30000 and 50000). LinkedIn joins targeted places with commas ("Boston, MA, New York, United States"), so the actor splits them back into real places. Ads LinkedIn cannot load come back with details_status: "unavailable" and are not charged.

Dates, impressions and targeting only exist for some ads. LinkedIn publishes them for ads covered by the EU Digital Services Act; other ads show the creative and payer only. has_eu_transparency_data tells you which is which. Impressions by country can take up to 48 hours to appear for new ads, and LinkedIn keeps about 12 months of ads in the library.

If something looks wrong

The status line at the end of every run explains anything that was skipped or came back empty. The common messages:

MessageWhat to do
Input problem: ...Something in the input needs changing, and the message says what. The run stopped before anything was charged.
No ads for advertiser ...Check the name as LinkedIn shows it, or use the company number. Widen dates or countries.
... could not be loadedLinkedIn was busy. Run it again later.
Skipped countries: ...The country was not recognised. Check the spelling or use a two-letter code.
N ads were no longer availableThose ads were removed before they could be opened. They are not charged.

Still stuck? Open an issue on the actor page with the run link and it gets looked at quickly.

Tips for bigger runs

  • Add more advertisers, keywords or company IDs. Each is its own search with its own maxAdsPerSearch budget, and an ad found by two searches is only returned (and charged) once.
  • Use maxAds as a spending ceiling when you run many searches at once.
  • Use company IDs when several advertisers share a name. They match one advertiser exactly.
  • Turn off includeDetails for volume scans. Preview mode skips the detail page per ad, so it is much faster; switch it back on for dates, impressions and targeting.
  • Paste a search URL to use LinkedIn filters the input form does not expose, such as impression ranges.
  • Download media you want to keep. LinkedIn CDN links can expire after a while.

Scheduling and integrations

For a daily or weekly run, see Run it on a schedule above, and for n8n, Make and Zapier see the next section. Apify's integrations can also send results to Google Sheets or Slack, and a webhook can call your own system when a run finishes.

Use it in n8n, Make or Zapier

Any tool that can send an HTTP request can run this actor and get the rows back in the same call.

SettingValue
MethodPOST
URLhttps://api.apify.com/v2/acts/oski~linkedin-ad-library-scraper/run-sync-get-dataset-items
HeaderAuthorization: Bearer YOUR_TOKEN
Body typeJSON, with an input such as the one below
{
"advertisers": [
"hubspot"
],
"countries": [
"GB"
],
"dateRange": "last-30-days",
"maxAdsPerSearch": 100
}

n8n: add an HTTP Request node with those settings after a Schedule Trigger. Each returned row becomes one n8n item, so the next node (Google Sheets, Slack, email) receives one row per ad.

Make and Zapier: Make has an HTTP "Make a request" module; use the same four settings. Zapier has "Webhooks by Zapier" (Custom Request); use the same four settings there too.

This call waits for the run to finish and Apify ends it after 300 seconds, so keep maxAdsPerSearch small for this route and use a schedule plus the dataset for large runs.

LinkedIn Ad Library API: call it from your code

Use the actor as a LinkedIn Ad Library API that needs no LinkedIn account and no cookies: send advertisers, keywords or company IDs, get ads back as JSON.

curl (waits for the run and returns the ads):

curl -X POST "https://api.apify.com/v2/acts/oski~linkedin-ad-library-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"advertisers": ["hubspot"], "countries": ["GB"], "maxAdsPerSearch": 100}'

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("oski/linkedin-ad-library-scraper").call(run_input={
"advertisers": ["hubspot", "salesforce"],
"countries": ["GB", "DE"],
"dateRange": "current-year",
"maxAdsPerSearch": 200,
})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
print(ad["advertiser_name"], ad["format"], ad["headline"], ad["impressions_range"])

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('oski/linkedin-ad-library-scraper').call({
keywords: ['payroll software'],
countries: ['GB'],
dateRange: 'last-30-days',
maxAdsPerSearch: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((ad) => [ad.advertiser_name, ad.paid_by, ad.first_shown, ad.ad_url]));

With full details the actor reads about one ad per second, so the sync endpoint in the curl example (which waits up to 5 minutes) suits runs of a couple of hundred ads. For bigger runs, start the actor with the runs endpoint, or use the Python or JavaScript client as above, and fetch the dataset when it finishes.

Use it with AI agents and LLM apps

  • Claude, Cursor and other MCP clients: connect Apify's MCP server and add this actor by its name, oski/linkedin-ad-library-scraper. The agent can then answer questions such as "how is this competitor positioning its product to buyers in Germany?" from live ads.
  • Full ad text in fixed fields: headline, commentary, cta and, for message ads, message_body arrive as plain text, and every row has the same fields in the same order. A model can compare positioning across advertisers without special handling for each ad format.
  • Targeting as structured data: on ads with EU transparency data, targeting lists the included and excluded languages and locations, and targeting_parameters says whether company, job or audience targeting was used. Filter on has_eu_transparency_data first, so the model is only asked about ads that have that data.

The actor reads only the public LinkedIn Ad Library, which LinkedIn publishes for transparency, without logging in and without cookies. It does not open member profiles. The data is about ads and the organisations that paid for them, but some ads carry a person's name: message ads have a message_sender, and an advertiser can be an individual member (advertiser_type is then member). You are responsible for having a lawful reason to store and use that, and for how you reuse the creatives. This is general information and not legal advice.

FAQ

Do I need a LinkedIn account? No. Nothing is logged in, so no account can be restricted.

Can I export LinkedIn ads to Excel or Google Sheets? Yes. Download the results as Excel, CSV or JSON from the Output tab, or use Apify's Google Sheets integration.

Can I get only new ads? There is no built-in memory of earlier runs. Schedule a run with Date range set to Last 30 days, or a relative Start date such as 1 week, and match rows by ad_id to drop the ones you already have.

How far back does the LinkedIn Ad Library go? LinkedIn keeps about 12 months of ads in the library, so a start date older than that returns nothing extra.

How many ads can one search return? Up to 10,000, the highest value Max ads per search accepts. The default is 1,000. With full details a run takes about a second per ad, so 1,000 ads is roughly 15 minutes.

Can I look up one specific ad? Yes. Paste its Ad Library link, or just the ad's number, under Ad URLs or IDs.

Why did I get fewer ads than expected? The advertiser may run fewer ads in those countries or dates, the name may match a different advertiser (use a company ID), or a cap was hit. Searches that find nothing are named in the run log.

Why are dates and impressions empty on some ads? LinkedIn only publishes them for ads covered by the EU Digital Services Act. Check has_eu_transparency_data.

How fresh is the data? Every run reads the Ad Library live, so you get what LinkedIn shows at that moment.

What if it breaks? Open an issue on the actor page. It gets fixed fast.

Changelog

  • 19 November 2026: fixed searches that came back as "could not be loaded". LinkedIn had started refusing many proxy addresses, so the actor now tries a new address on every retry and switches to a backup route when needed.
  • 29 September 2026: safer delivery when a run reaches its maximum cost: every ad that is charged is delivered.
  • 18 September 2026: a custom date range with only one end, or one ending today, now works (the open end is filled in and the end is capped at yesterday). Countries can be typed as names or codes, and input mistakes stop the run before anything is charged.
  • 17 September 2026: first build. Search by advertiser, keyword, company ID, search URL or ad URL, with every ad format parsed. Rows for ads LinkedIn cannot load carry the same fields as every other row and are not charged.

Other scrapers from Oski