๐ข LinkedIn Ads Library Scraper
Pricing
from $2.80 / 1,000 results
๐ข 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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
7 hours ago
Last modified
Categories
Features
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.
| Data | Fields |
|---|---|
| ๐ Ad identity | adId, adUrl, adLibraryUrl, url, format, creativeType, adStatus, isActive, variantCount |
| ๐ข Advertiser | advertiserName, advertiserUrl, advertiserId, advertiserType, advertiserLogo, advertiserHeadline, paidBy |
| ๐ง Thought leader | thoughtLeader, thoughtLeaderName, thoughtLeaderUrl |
| ๐ Ad text | headline, body, bodyTruncated, bodyLinks, ctas |
| ๐ Landing page | clickUrl, clickUrlSource, landingDomain, utm, utmCampaign, utmSource, utmMedium |
| ๐ท Creative | imageUrl, carouselSlides, carouselSlideCount, video, videoUrl, document, message, event, article |
| ๐ Run dates | availability, startDate, endDate, durationDays |
| ๐ Reach | impressions, impressionsLabel, impressionsLow, impressionsHigh, impressionsPerCountry, topCountry |
| ๐ฏ Targeting | targeting, targetingLanguages, targetingLocations |
| ๐ก Restrictions | isRestricted, restrictionDetails |
| ๐ Source and status | query, 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
nullandadStatusisUNKNOWN. 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.
- ๐ Create a free Apify account using your email.
- ๐ Open LinkedIn Ads Library Scraper and go to the Input tab.
- ๐ฅ Add keywords, company page links,
advertiser:orpayer:names, or Ad Library links, one per line. - ๐ฏ Set Max ads per input and, if you like, countries, a date range and the order.
- ๐ Click Start and wait for the run to finish.
- ๐ค 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 plan | Price per ad | Price 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
errorand is not charged.
What a run costs (ad price only, start event not included):
| Ads | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| 100 | 100 x $0.004 = $0.40 | 100 x $0.0036 = $0.36 | 100 x $0.0032 = $0.32 | 100 x $0.0028 = $0.28 |
| 1,000 | 1,000 x $0.004 = $4.00 | 1,000 x $0.0036 = $3.60 | 1,000 x $0.0032 = $3.20 | 1,000 x $0.0028 = $2.80 |
| 10,000 | 10,000 x $0.004 = $40.00 | 10,000 x $0.0036 = $36.00 | 10,000 x $0.0032 = $32.00 | 10,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.
| Field | Type | Default | What it does |
|---|---|---|---|
queries | array of strings | none | One 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. |
searches | array of objects | none | Build 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. |
maxItems | integer | 20 | Most ads returned for each entry, from 1 upwards. Entries with fewer ads return all they have. |
countries | array of strings | none | Only ads shown in these countries, as two-letter codes such as US or DE. Empty means worldwide. |
dateRange | string | all | Only ads that ran in this period: all, last-30-days, current-month, current-year or last-year. The two dates below override it. |
dateFrom | string | none | Start of a custom period. An exact date such as 2026-01-01 or a look-back such as 30 days or 3 months. |
dateTo | string | none | End of a custom period. An exact date such as 2026-03-31 or a look-back such as 7 days. |
sort | string | newest | Which ads come first when an entry has more ads than the limit: newest or oldest. |
includeDetails | boolean | true | On: 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. |
concurrency | integer | 8 | How many ads are read at the same time, from 1 to 20. Lower it if a run is slow or fails. |
requestDelay | number | none | Seconds to wait between requests, from 1 to 60. Empty keeps the default pace. |
maxScanned | integer | none | Safety cap on result pages read per entry (about 24 ads each), from 1 upwards. Empty reads until the last page or the ad limit. |
maxRequestRetries | integer | none | How many times a failed request is tried again, from 0 to 10. Empty keeps the default of 4. |
proxyConfiguration | object | none | Optional network settings for the run. The defaults work for most runs. |
Fields inside each searches entry:
| Field | Type | Default | What it does |
|---|---|---|---|
accountOwner | string | none | Company running the ads, for example hubspot. |
payer | string | none | The company that paid for the ads, often an agency. |
keyword | string | none | A word or phrase in the ad text. |
countries | array of strings | none | Two-letter country codes such as US or DE. Empty means worldwide. |
dateOption | string | none | Only ads that ran in this period: last-30-days, current-month, current-year or last-year. |
startDate | string | none | Earliest day the ad ran. An exact date or a look-back such as 30 days. Use with endDate. |
endDate | string | none | Latest 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
DEorFRwhen 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:
| Field | Type | Description |
|---|---|---|
adId | string | ID of the ad in the Ad Library. |
adLibraryUrl | string | Link to the ad in the Ad Library (same as adUrl and url). |
format | string | Ad format, for example SINGLE_IMAGE, VIDEO, CAROUSEL or DOCUMENT. |
adStatus | string | ACTIVE, INACTIVE or UNKNOWN. Known only for ads with published run dates. |
advertiserName | string | Name of the advertiser. |
advertiserUrl | string | Link to the advertiser page. |
advertiserType | string | company or person. |
paidBy | string | Company that paid for the ad. |
headline | string | Ad headline. |
body | string | Ad text. bodyTruncated is true when the text was cut by the source. |
ctas | array | Call-to-action buttons. |
clickUrl | string | Landing page link, when the ad shows one. |
landingDomain | string | Domain of the landing page. |
utmCampaign | string | Campaign tag of the landing link. utmSource and utmMedium hold the other tags. |
imageUrl | string | Main image of the ad. |
carouselSlides | array | Slides of a carousel ad. |
videoUrl | string | Link to the video file. |
startDate | string | First day the ad ran (EU and EEA ads). |
endDate | string | Last day the ad ran (EU and EEA ads). |
durationDays | integer | Days the ad ran. |
impressionsLabel | string | Impression range as text, for example 30k-50k. |
impressionsLow | number | Lower end of the impression range. |
impressionsHigh | number | Upper end of the impression range. |
topCountry | string | Country with the largest impression share. |
targetingLanguages | array | Languages the ad targets. |
targetingLocations | array | Locations the ad targets. |
isRestricted | boolean | True when the ad is restricted. |
detailsFetched | boolean | True when the full ad page was read. |
query | string | The input entry that found this ad (same as input and startUrl). |
scrapedAt | string | When the ad was collected (UTC). |
error | string | Plain-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:
| Field | Type | Description |
|---|---|---|
inputs | integer | Number of entries you gave. |
rows | integer | Ads saved. |
ok | integer | Entries that returned ads. |
skipped | integer | Entries with no ads or already collected. |
failed | integer | Entries that could not be loaded. |
seconds | number | Run time in seconds. |
spendLimitReached | boolean | True when the run stopped at your spending limit. |
message | string | Final 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.
| Action | Method and URL |
|---|---|
| ๐ Start a run | POST https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/runs |
| โก Run and get the results in one call | POST https://api.apify.com/v2/actors/data_minds~linkedin-ads-library-scraper/run-sync-get-dataset-items |
| ๐ฅ Read results of a run | GET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json |
| ๐ OpenAPI definition | GET 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 ApifyClientclient = 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
| Scraper | What it does |
|---|---|
| ๐ LinkedIn Ads Scraper | Collects 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 Scraper | Collects 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 Scraper | Finds public LinkedIn profiles by keyword, job title, seniority, location, company and school, with seniority, function and education. |
| ๐ Facebook Ads Library Scraper | Collects public Meta Ad Library ads by keyword, advertiser page or Ad Library link. |
โ FAQ
๐ก Is it legal to scrape LinkedIn ads?
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.