๐Ÿ“ข LinkedIn Ads Library Scraper avatar

๐Ÿ“ข LinkedIn Ads Library Scraper

Pricing

from $2.80 / 1,000 results

Go to Apify Store
๐Ÿ“ข LinkedIn Ads Library Scraper

๐Ÿ“ข LinkedIn Ads Library Scraper

LinkedIn Ads Library Scraper extracts LinkedIn ad copy, creatives, headlines, CTAs, landing pages, impressions, targeting, advertisers, payers, and run dates. Built for competitor ad analysis, B2B research, creative intelligence, and AI pipelines.

Pricing

from $2.80 / 1,000 results

Rating

0.0

(0)

Developer

Data Minds

Data Minds

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

7 hours ago

Last modified

Categories

Features

Limited permissions

Share

๐Ÿ“– What is LinkedIn Ads Library Scraper?

๐Ÿ”Ž Ads by keyword, advertiser or company ยท ๐Ÿ“Š Impressions and targeting for EU ads ยท ๐Ÿ“ฆ Export to JSON, CSV or Excel ยท ๐Ÿค– Works with AI agents

LinkedIn Ads Library Scraper collects public ads from the LinkedIn Ad Library and returns one clean row per ad. Enter a keyword, a company page, an advertiser name or an Ad Library link, press Start, and you get the ad text, headline, creative, call to action and landing page, plus impressions, targeting and run dates for ads shown in the EU and EEA. It is built for marketers, agencies, analysts and founders who want to see what others advertise, without a LinkedIn login and without writing code.

  • ๐Ÿ‘€ Watch what competitors run: see every ad a company runs in the LinkedIn Ad Library, newest first, with the exact copy and creative of its ads. Check back on a schedule to catch new campaigns.
  • ๐Ÿ“ Learn how brands pitch a topic: search a keyword and read the headlines, texts and buttons used for the same subject, which is handy for messaging research and inspiration.
  • ๐Ÿ’ณ Find out who pays for a campaign: search by payer to see which company the LinkedIn ads are paid by, which is often an agency.
  • ๐Ÿ“Š Study reach and targeting: read the impression ranges of LinkedIn ads, the top country and the targeting languages and locations for EU and EEA ads.
  • ๐Ÿ”— Discover landing pages: get the landing page URLs of LinkedIn ads, their domains and the UTM campaign tags, plus the ad run dates.
  • ๐Ÿ”” Keep it running: schedule runs and send new ads to your sheet, your app or your AI agent.

๐Ÿ“ฆ What data can LinkedIn Ads Library Scraper extract?

Every row in the results table is one ad, and the fields are grouped below. Fields that LinkedIn does not publish for a given ad stay empty (null). LinkedIn ads come as single images, video ads, carousel ads or documents, and thought leader ads carry the leader's name and profile link.

DataFields
๐Ÿ†” Ad identityadId, adUrl, adLibraryUrl, url, format, creativeType, adStatus, isActive, variantCount
๐Ÿข AdvertiseradvertiserName, advertiserUrl, advertiserId, advertiserType, advertiserLogo, advertiserHeadline, paidBy
๐Ÿง‘ Thought leaderthoughtLeader, thoughtLeaderName, thoughtLeaderUrl
๐Ÿ“ Ad textheadline, body, bodyTruncated, bodyLinks, ctas
๐ŸŒ Landing pageclickUrl, clickUrlSource, landingDomain, utm, utmCampaign, utmSource, utmMedium
๐Ÿ“ท CreativeimageUrl, carouselSlides, carouselSlideCount, video, videoUrl, document, message, event, article
๐Ÿ“… Run datesavailability, startDate, endDate, durationDays
๐Ÿ“Š Reachimpressions, impressionsLabel, impressionsLow, impressionsHigh, impressionsPerCountry, topCountry
๐ŸŽฏ Targetingtargeting, targetingLanguages, targetingLocations
๐Ÿ›ก RestrictionsisRestricted, restrictionDetails
๐Ÿ”Ž Source and statusquery, startUrl, input, totalAdsForQuery, searchUrl, detailsFetched, scrapedAt, error, note

โ— Note: The LinkedIn Ad Library publishes impressions, targeting and run dates only for ads shown in the EU and EEA. For other ads these fields are null and adStatus is UNKNOWN. A landing link appears only when the ad shows one.

โŒ What can't LinkedIn Ads Library Scraper extract?

  • โŒ Private campaign data such as ad spend, conversions, clicks or audience lists. LinkedIn does not publish them.
  • โŒ Ads that have been withdrawn from the library. The row keeps what the search list showed and explains the reason in error.

For public LinkedIn posts, try LinkedIn Post Scraper.


๐Ÿš€ How to scrape LinkedIn ads

LinkedIn Ads Library Scraper is designed for an easy start, even if you have never extracted data from the web before. Use it to scrape the LinkedIn Ad Library by keyword, advertiser, payer or company page.

  1. ๐Ÿ”‘ Create a free Apify account using your email.
  2. ๐ŸŒ Open LinkedIn Ads Library Scraper and go to the Input tab.
  3. ๐Ÿ“ฅ Add keywords, company page links, advertiser: or payer: names, or Ad Library links, one per line.
  4. ๐ŸŽฏ Set Max ads per input and, if you like, countries, a date range and the order.
  5. ๐Ÿš€ Click Start and wait for the run to finish.
  6. ๐Ÿ“ค Open the Output tab to view the ads as a table, or download them as JSON, CSV, Excel, XML or HTML.

๐Ÿš€ Quick start: a good first run is one company page with a limit of 20 ads.

{
"queries": ["https://www.linkedin.com/company/hubspot/"],
"maxItems": 20
}

๐Ÿ’ฐ How much does it cost to scrape LinkedIn ads?

LinkedIn Ads Library Scraper uses a pay per event model, with prices from $0.0028 per ad ($2.80 per 1,000 ads) on the Gold plan. You pay for each ad saved with its full details. Apify platform usage is billed in addition.

Apify planPrice per adPrice per 1,000 ads
๐Ÿ†“ Free$0.004$4.00
๐Ÿฅ‰ Bronze$0.0036$3.60
๐Ÿฅˆ Silver$0.0032$3.20
๐Ÿฅ‡ Gold$0.0028$2.80

Each run also has one start event of $0.00005, which covers the default 1 GB of memory.

โœ… Good to know: a row that could not be completed, for example an ad that was withdrawn, is saved with the reason in error and is not charged.

What a run costs (ad price only, start event not included):

AdsFreeBronzeSilverGold
100100 x $0.004 = $0.40100 x $0.0036 = $0.36100 x $0.0032 = $0.32100 x $0.0028 = $0.28
1,0001,000 x $0.004 = $4.001,000 x $0.0036 = $3.601,000 x $0.0032 = $3.201,000 x $0.0028 = $2.80
10,00010,000 x $0.004 = $40.0010,000 x $0.0036 = $36.0010,000 x $0.0032 = $32.0010,000 x $0.0028 = $28.00

๐Ÿ’ฐ Is scraping LinkedIn ads free?

You can start for free. The Apify Free plan includes $5 of monthly credit. At the Free price of $0.004 per ad, $5 / $0.004 = about 1,250 ads before platform usage. Paid plans lower the price per ad, as the table shows.


๐Ÿ”ง Input

Tell the Actor what to search for in the LinkedIn Ad Library, by keyword, advertiser, payer or company, then narrow the results with optional filters. Set the input in the Input tab or send it as JSON through the API. You need at least one keyword, link, advertiser or payer, either in Keywords, advertisers or links or in Build a search. The limit applies to each entry separately: three entries with Max ads per input set to 50 return up to 150 ads.

FieldTypeDefaultWhat it does
queriesarray of stringsnoneOne entry per line: a keyword or phrase, a company page link, advertiser: Name (the company running the ads), payer: Name (the company paying for them), an Ad Library search link, or a link to a single ad.
searchesarray of objectsnoneBuild a search with boxes instead of links. Each entry is one search and needs at least one of accountOwner (the advertiser), payer or keyword. Fields are listed below.
maxItemsinteger20Most ads returned for each entry, from 1 upwards. Entries with fewer ads return all they have.
countriesarray of stringsnoneOnly ads shown in these countries, as two-letter codes such as US or DE. Empty means worldwide.
dateRangestringallOnly ads that ran in this period: all, last-30-days, current-month, current-year or last-year. The two dates below override it.
dateFromstringnoneStart of a custom period. An exact date such as 2026-01-01 or a look-back such as 30 days or 3 months.
dateTostringnoneEnd of a custom period. An exact date such as 2026-03-31 or a look-back such as 7 days.
sortstringnewestWhich ads come first when an entry has more ads than the limit: newest or oldest.
includeDetailsbooleantrueOn: full ad text, landing page and campaign tags, impressions, targeting, run dates and media links. Off: only what the search list shows, faster and cheaper.
concurrencyinteger8How many ads are read at the same time, from 1 to 20. Lower it if a run is slow or fails.
requestDelaynumbernoneSeconds to wait between requests, from 1 to 60. Empty keeps the default pace.
maxScannedintegernoneSafety cap on result pages read per entry (about 24 ads each), from 1 upwards. Empty reads until the last page or the ad limit.
maxRequestRetriesintegernoneHow many times a failed request is tried again, from 0 to 10. Empty keeps the default of 4.
proxyConfigurationobjectnoneOptional network settings for the run. The defaults work for most runs.

Fields inside each searches entry:

FieldTypeDefaultWhat it does
accountOwnerstringnoneCompany running the ads, for example hubspot.
payerstringnoneThe company that paid for the ads, often an agency.
keywordstringnoneA word or phrase in the ad text.
countriesarray of stringsnoneTwo-letter country codes such as US or DE. Empty means worldwide.
dateOptionstringnoneOnly ads that ran in this period: last-30-days, current-month, current-year or last-year.
startDatestringnoneEarliest day the ad ran. An exact date or a look-back such as 30 days. Use with endDate.
endDatestringnoneLatest day the ad ran. An exact date or a look-back such as 7 days.

Minimal input:

{
"queries": ["https://www.linkedin.com/company/hubspot/"]
}

Advanced input: the 50 newest ads for a keyword and two advertisers shown in Germany and France in early 2026, plus one built search:

{
"queries": ["marketing automation", "advertiser: HubSpot", "payer: HubSpot, Inc."],
"searches": [{ "accountOwner": "Salesforce", "keyword": "crm" }],
"maxItems": 50,
"countries": ["DE", "FR"],
"dateFrom": "2026-01-01",
"dateTo": "2026-03-31",
"sort": "newest",
"includeDetails": true
}

Dates before the earliest searchable day are moved to it, and a warning appears in the run log. See the input tab for the full schema.

๐Ÿ’ก Tip: Add a country such as DE or FR when you want impressions and targeting, because LinkedIn publishes them only for EU and EEA ads.


๐Ÿ“ค Output

Results are stored in a dataset, which you can open in the Output or Storage tab. View them as a table or JSON, pick only the fields you need, and download the LinkedIn Ad Library results as JSON, CSV, Excel, XML or HTML. A LinkedIn ads JSON export is one click away from the same page. The table has six ready-made views: Overview, Advertiser, Creative, Landing page, Reach and targeting, and Source.

Through the API, read the rows from this URL pattern:

https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json

Add &view=advertiser (or overview, creative, landing, reach, source) to get one of the views.

The main fields of each ad row:

FieldTypeDescription
adIdstringID of the ad in the Ad Library.
adLibraryUrlstringLink to the ad in the Ad Library (same as adUrl and url).
formatstringAd format, for example SINGLE_IMAGE, VIDEO, CAROUSEL or DOCUMENT.
adStatusstringACTIVE, INACTIVE or UNKNOWN. Known only for ads with published run dates.
advertiserNamestringName of the advertiser.
advertiserUrlstringLink to the advertiser page.
advertiserTypestringcompany or person.
paidBystringCompany that paid for the ad.
headlinestringAd headline.
bodystringAd text. bodyTruncated is true when the text was cut by the source.
ctasarrayCall-to-action buttons.
clickUrlstringLanding page link, when the ad shows one.
landingDomainstringDomain of the landing page.
utmCampaignstringCampaign tag of the landing link. utmSource and utmMedium hold the other tags.
imageUrlstringMain image of the ad.
carouselSlidesarraySlides of a carousel ad.
videoUrlstringLink to the video file.
startDatestringFirst day the ad ran (EU and EEA ads).
endDatestringLast day the ad ran (EU and EEA ads).
durationDaysintegerDays the ad ran.
impressionsLabelstringImpression range as text, for example 30k-50k.
impressionsLownumberLower end of the impression range.
impressionsHighnumberUpper end of the impression range.
topCountrystringCountry with the largest impression share.
targetingLanguagesarrayLanguages the ad targets.
targetingLocationsarrayLocations the ad targets.
isRestrictedbooleanTrue when the ad is restricted.
detailsFetchedbooleanTrue when the full ad page was read.
querystringThe input entry that found this ad (same as input and startUrl).
scrapedAtstringWhen the ad was collected (UTC).
errorstringPlain-language reason when details are missing (same as note).

An abridged example row for an ad without published EU data:

{
"adId": "1644056414",
"adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1644056414",
"format": "SINGLE_IMAGE",
"advertiserName": "HubSpot",
"paidBy": "HubSpot, Inc.",
"headline": "Know what works, and do more of it",
"body": "Marketo needs add-ons and a separate CRM to do what Marketing Studio does in one place...",
"ctas": ["Request Demo"],
"adStatus": "UNKNOWN",
"startUrl": "https://www.linkedin.com/company/hubspot/",
"scrapedAt": "2026-11-20T14:31:52Z"
}

An ad shown in the EU adds fields like these:

{
"impressionsLabel": "30k-50k",
"impressionsLow": 30000,
"impressionsHigh": 50000,
"topCountry": "France",
"startDate": "2025-11-11",
"endDate": "2026-02-11",
"durationDays": 93,
"adStatus": "INACTIVE",
"targetingLanguages": ["Franรงais"],
"targetingLocations": ["France"]
}

A run summary with the number of inputs, ads saved, failed inputs, run time and a final message is also saved under the key RUN_SUMMARY in the run's key-value store:

FieldTypeDescription
inputsintegerNumber of entries you gave.
rowsintegerAds saved.
okintegerEntries that returned ads.
skippedintegerEntries with no ads or already collected.
failedintegerEntries that could not be loaded.
secondsnumberRun time in seconds.
spendLimitReachedbooleanTrue when the run stopped at your spending limit.
messagestringFinal status message.

๐Ÿ’ก Tips and advanced usage

โšก How to get faster or cheaper results

  • โšก Turn Include full ad details off when the list view is enough. The run is much faster.
  • ๐ŸŽฏ Keep Max ads per input small while you test, and narrow by country or date range.
  • ๐Ÿ•’ Use Date range or Ran from on scheduled runs to read only recent ads.
  • ๐Ÿ”ง Leave the network settings at their defaults. They work for most runs.

๐Ÿ“ˆ How to do LinkedIn competitor ad monitoring

Add the company page or advertiser: name of each competitor, run the Actor on a schedule and compare the rows over time. Sort by startDate to see new campaigns, read headline, body and ctas for the messaging, and use landingDomain and utmCampaign to see where traffic is sent. Each scheduled run turns LinkedIn ads competitor analysis into a quick, repeatable check.

๐Ÿงฉ How to scrape many advertisers at once

Add all your keywords, company pages and links to one run to search the LinkedIn Ad Library in bulk. Each entry is collected on its own up to the limit, and an ad found by an earlier entry is not saved twice. The run status tells you how many ads each entry returned.

๐Ÿ“ฆ How to export LinkedIn ads to CSV

Open the Output tab of the finished run, choose Export, select CSV and pick the fields you need, and your LinkedIn Ad Library data is ready for a spreadsheet. The same menu offers JSON, Excel, XML and HTML. For scheduled exports, use the API or an integration instead.

๐Ÿ”Ž Why did I get fewer ads than my limit?

The library may hold fewer ads for the entry, or your countries and date range may be too narrow. Check that the keyword is spelled the way advertisers write it, remove a filter and run a small test again. The run status says how many ads were found and why reading stopped.

โ— Known issues

  • โ— Large searches with full details take longer, because each ad is read in full. Lower the limit or turn details off.
  • โ— Plain member profile links are matched by name only and can include other advertisers.

๐Ÿ”Œ Integrations and API

๐Ÿ”Œ Can I use LinkedIn Ads Library Scraper as an API?

Yes. Get LinkedIn Ad Library data through the Apify API: start runs, read results and schedule jobs. Use your token from Settings > API & Integrations.

ActionMethod and URL
๐Ÿš€ Start a runPOST https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/runs
โšก Run and get the results in one callPOST https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/run-sync-get-dataset-items
๐Ÿ“ฅ Read results of a runGET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
๐Ÿ”Œ OpenAPI definitionGET https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/builds/default/openapi.json

curl

curl -X POST "https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"queries": ["https://www.linkedin.com/company/hubspot/"], "maxItems": 20}'

Python

Read LinkedIn Ad Library data from Python with the Apify client:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_minds/linkedin-ads-library-scraper").call(
run_input={"queries": ["https://www.linkedin.com/company/hubspot/"], "maxItems": 20}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["advertiserName"], item["headline"], item["adLibraryUrl"])

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('data_minds/linkedin-ads-library-scraper').call({
queries: ['https://www.linkedin.com/company/hubspot/'],
maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

CLI

$echo '{"queries": ["https://www.linkedin.com/company/hubspot/"], "maxItems": 20}' | apify call data_minds/linkedin-ads-library-scraper --silent --output-dataset

The one-call endpoint suits runs that finish in about five minutes. Use the start-a-run endpoint for longer jobs. More code is on the API tab.

๐Ÿงฉ Can I connect LinkedIn Ads Library Scraper to other apps?

Yes. Connect it with Make, Zapier, n8n, Slack, Google Sheets, Google Drive, Airbyte, GitHub and more through Apify integrations, for example to send LinkedIn Ad Library data to Google Sheets. Use webhooks to pass new LinkedIn ads to n8n or Zapier whenever a run finishes. Use schedules to run the scraper every day or week.

๐Ÿค– Can I use LinkedIn Ads Library Scraper with AI agents (MCP server)?

Yes. AI agents can call it directly through the hosted Apify MCP server, so your AI agent can read LinkedIn ads and search the LinkedIn Ad Library over MCP. The Server tab of this Actor shows the same connection settings.

{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com?tools=data_minds/linkedin-ads-library-scraper"
}
}
}

The hosted server signs you in with OAuth the first time you connect, so no API token belongs in this configuration. If your client cannot use OAuth, send the header Authorization: Bearer <YOUR_APIFY_TOKEN>.


๐Ÿ”— Other LinkedIn scrapers

ScraperWhat it does
๐Ÿ”— LinkedIn Ads ScraperCollects public LinkedIn ads by keyword, advertiser, payer, company page or Ad Library link: ad text, creative, call to action, landing page and EU impressions.
๐Ÿ”— LinkedIn Post ScraperCollects public LinkedIn posts from company pages, profiles, post links or keywords: text, author, reactions, comments, media, hashtags and dates.
๐Ÿ”— LinkedIn Post Details Scraper (No Cookies)Collects public LinkedIn posts from links or IDs: text, author, reactions, comments, media, links and the original post inside a repost.
๐Ÿ”— LinkedIn People Search ScraperFinds public LinkedIn profiles by keyword, job title, seniority, location, company and school, with seniority, function and education.
๐Ÿ”— Facebook Ads Library ScraperCollects public Meta Ad Library ads by keyword, advertiser page or Ad Library link.

โ“ FAQ

The LinkedIn Ad Library is a public ad transparency tool, and this Actor collects only public ad data. Web scraping of public data is generally legal, but you should respect personal data, for example under GDPR, only collect personal data with a legitimate reason, and take LinkedIn's Terms of Service into account.

๐Ÿ”ง How does LinkedIn Ads Library Scraper work?

You add keywords, company pages, advertiser or payer names, or Ad Library links, optionally set countries, dates and a limit per entry, and press Start. The Actor returns the public ads as one row per ad, newest first by default, and saves a short run summary with the totals.

๐Ÿ”‘ Do I need a LinkedIn account or login?

No. The Actor has no login, cookie or password field. You only need a free Apify account to run it. You enter what you want to look up, and the ads that LinkedIn shows publicly in its Ad Library come back as rows with the fields described above.

๐Ÿ”Œ Can I use LinkedIn Ads Library Scraper as an API?

Yes. Start a run with the Apify API, pass your keywords or links as JSON, and read the dataset items when it finishes. A one-call endpoint returns results directly for short runs, and an OpenAPI definition is available. Ready-made curl, Python, JavaScript and CLI examples are in the Integrations and API section above.

๐Ÿค– Can I use LinkedIn Ads Library Scraper with AI agents (MCP server)?

Yes. Add the hosted Apify MCP server URL with the tools parameter set to data_minds/linkedin-ads-library-scraper, and your AI assistant can run the Actor and read the results. The first connection signs you in with OAuth. The Server tab of the Actor shows the same connection settings.

๐Ÿงฉ Can I connect it to Google Sheets, Make or Zapier?

Yes. Apify integrations connect the Actor with Google Sheets, Make, Zapier, n8n, Slack and many other tools. Schedule a run, then use a webhook or an integration to send each new batch of ads to your sheet, chat or workflow automatically when the run finishes.

๐Ÿ”Ž Why did I get fewer ads than my limit?

The limit is a maximum, not a promise. The library may hold fewer ads for the entry, or your countries and date range may be too narrow. The run status says how many ads were found and why reading stopped. Remove a filter, check the spelling of the keyword, and run a small test.

๐Ÿ“Š Why are impressions, targeting and run dates empty?

LinkedIn publishes impressions, targeting and run dates only for ads shown in the EU and EEA. For other ads these fields are null and the status is UNKNOWN. Add an EU country such as DE or FR in the countries filter to see the details where they exist.

โ— Why is LinkedIn Ads Library Scraper not working?

Check the run status first: it explains why an entry returned nothing, for example a link with no keyword or a withdrawn ad. Open the link in a private browser window to confirm it is public. If it still fails, report it on the Issues tab with your run link.


๐Ÿ’ฌ Support and feedback

Found a bug or have a feature request? Please create an issue on the Issues tab.

Need a custom solution or more data? Contact us at hello.dataminds@gmail.com.

Built and maintained by data_minds. This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by LinkedIn or Microsoft.