LinkedIn Ad Library Scraper (LinkedIn Ads Library)
Pricing
from $2.00 / 1,000 ad scrapeds
LinkedIn Ad Library Scraper (LinkedIn Ads Library)
Extract every ad a company runs on LinkedIn from the public Ad Library: ad copy, creative, headline, destination URL, run dates, estimated impressions per country and the advertiser's targeting. Search by advertiser or keyword.
Pricing
from $2.00 / 1,000 ad scrapeds
Rating
0.0
(0)
Developer
PulseData
Maintained by CommunityActor stats
0
Bookmarked
15
Total users
6
Monthly active users
an hour ago
Last modified
Categories
Features
Share
This actor extracts the ads a company runs on LinkedIn from the public LinkedIn Ad Library: ad copy, creative, headline, destination URL, run dates, estimated impressions per country and the targeting the advertiser selected. You search by advertiser, payer, keyword, Ad Library search URL or single ad ID, and get one JSON item per ad. It costs $2 per 1,000 ads, plus $3 per 1,000 ads for the detail page when includeDetails is on, plus $0.01 per run. Turn details off to pay only for the ads.
No LinkedIn account or cookies are needed. The Ad Library is public and the actor never logs in.
Features
- Scrape all LinkedIn ads of a company by advertiser page name.
- Find every LinkedIn ad paid for by a company group with
matchBy: payer, which catches subsidiaries whose ads the parent pays for. - Search LinkedIn ads by keyword in the ad text.
- See LinkedIn ad targeting and impressions per country for ads under the EU transparency rules.
- Filter LinkedIn ads by country and date range: last 30 days, this month, this year, last year or a custom range.
- Track new LinkedIn ads of a competitor: with
onlyNewAdsa scheduled run returns and charges only ads it has not delivered before. - Export LinkedIn Ad Library data to CSV, Excel or JSON through the Apify dataset.
Use cases
- B2B competitor research: every creative a competitor runs, how long each ran, and which countries got the impressions.
- Audience research: LinkedIn discloses whether the advertiser targeted by company, job, education, demographics or interests, plus the language and locations, including exclusions.
- Ad copy and creative research: full ad text and image assets for swipe files or LLM analysis.
- Agency pitches: bring the prospect's current LinkedIn ads, run dates and reach to the meeting.
- Lead generation: check which companies advertise on LinkedIn at all. Pass a list of names and set
maxAdsPerQueryto 1. - Brand monitoring: catch ads that mention your brand with
matchBy: keyword.
Input
{"queries": ["Salesforce"],"matchBy": "payer","countryCode": "de","dateOption": "last-30-days","maxAdsPerQuery": 200,"includeDetails": true}
| Field | Type | Default | Meaning |
|---|---|---|---|
queries | array | (required) | Advertiser names, keywords, Ad Library search URLs, ad URLs or bare ad IDs, one per line |
matchBy | select | advertiser | advertiser (the LinkedIn page running the ad), payer (the entity that paid) or keyword (the ad text) |
countryCode | string | empty | ISO code such as us, de, gb. Empty means all countries |
dateOption | select | any time | last-30-days, current-month, current-year, last-year or custom-date-range |
startDate, endDate | date | empty | YYYY-MM-DD, used with the custom range |
maxAdsPerQuery | integer | 100 | 0 means no limit |
includeDetails | boolean | true | Opens each ad's detail page for impressions, targeting, full copy and destination URL |
proxyConfiguration | object | Apify Unblocker | Leave as is unless you know your proxies get through |
onlyNewAds | boolean | false | Monitor mode: output and charge only ads not delivered on an earlier run |
monitorStoreName | string | empty | Key-value store that remembers delivered ads. Empty means a name derived from the queries and filters |
An Ad Library search URL you built in the browser is used with its filters as given.
Track new LinkedIn ads of a competitor
Turn on onlyNewAds to get only the ads an advertiser launched since your last run:
{ "queries": ["Salesforce"], "matchBy": "payer", "maxAdsPerQuery": 0, "onlyNewAds": true }
The actor remembers the ID of every ad it delivers in a named key-value store in your Apify account. On the next run, ads already in the store are skipped before their detail page is fetched, so they cost no detail request and are neither output nor charged. The first run has no history yet: it returns every ad up to maxAdsPerQuery and fills the store.
How to set up new-ad alerts:
- Save the input above as an Apify task.
- Add an Apify schedule for the task, daily or weekly.
- Add an integration on the task (email, Slack, Google Sheets, Make, Zapier or a webhook) that fires when a run succeeds. Each run's dataset then holds only the new ads.
Details:
maxAdsPerQuerysets how far down the list a run looks, and ads seen before count towards it. Use0to watch every ad. If an earlier run used100and a later run uses0, the later run also returns older ads the first run did not reach.- Without
monitorStoreNamethe store is named after a hash of the run's queries,matchBy, country and dates (linkedin-ads-monitor-…), so each different input keeps its own history. The run log and status message name the store. Set your own name to share one history between inputs, or pick a new name to start over. - An ad cut off by the run timeout or the maximum cost per run is not remembered and comes on the next run.
- Two runs on the same store at the same time can both deliver the same new ad. Schedule one run per store.
Output
One item per ad:
{"query": "Zalando SE","adId": "1552638623","url": "https://www.linkedin.com/ad-library/detail/1552638623","advertiserName": "ZEOS","advertiserProfileUrl": "https://www.linkedin.com/company/112941442","advertiserCompanyId": "112941442","paidBy": "Zalando SE","adType": "Single Image Ad","commentary": "What future is business creating today? Join our live session on loyalty in the agentic era.","headline": "90 minutes, live online","destinationUrl": "https://zeos.eu/loyalty-in-the-agentic-era","imageUrls": ["https://media.licdn.com/dms/image/..."],"availabilityText": "Ran from Jun 19, 2026 to Jul 6, 2026","firstShown": "2026-06-19","lastShown": "2026-07-06","totalImpressions": "5k-10k","impressionsLow": 5000,"impressionsHigh": 10000,"impressionsByCountry": [{ "country": "United Kingdom", "sharePercent": 18 },{ "country": "Germany", "sharePercent": 15 }],"topCountry": "United Kingdom","targeting": {"language": "Targeting includes English","location": "Targeting includes European Union | Targeting excludes Kazakhstan, India, Russia","parameters": [{ "parameter": "Company", "targeted": true, "excluded": false },{ "parameter": "Job", "targeted": true, "excluded": false }]},"hasTransparencyData": true,"scrapedAt": "2026-09-25T08:00:00.000Z"}
Items also include advertiserLogoUrl, creativeType and a detailed flag. The keys inside targeting follow the headings LinkedIn shows on the ad, so they can vary. Without includeDetails you get the card data only: advertiser, ad type, copy as shown on the card, headline and images.
What LinkedIn publishes
LinkedIn shows the ad itself for every ad in the library, but impressions, run dates and targeting only for ads that fall under the EU transparency rules. A US-only campaign usually has an "About the ad" box and nothing else. hasTransparencyData tells you which case you have. If you mainly want impressions and targeting, set a European countryCode.
Pricing
| Event | Price |
|---|---|
ad-scraped, per ad returned | $0.002 |
ad-detail-scraped, per ad detail page loaded (only with includeDetails on) | $0.003 |
apify-actor-start, per run | $0.01 (charged again per GB of memory above 1 GB) |
The detail event is charged once for every ad whose detail page loads, whether or not LinkedIn publishes impressions and targeting for it, because the page has to be fetched either way. Detail pages that time out or are blocked are not charged. With includeDetails off there is no detail charge at all.
Worked example: 200 ads of one advertiser with includeDetails on cost 200 × $0.002 + 200 × $0.003 + $0.01 = $1.01. The same run without details costs $0.41.
In monitor mode (onlyNewAds) only new ads are charged. A daily run with includeDetails on that finds 10 new ads costs 10 × $0.002 + 10 × $0.003 + $0.01 = $0.06, and a run with nothing new costs only the $0.01 start.
Pricing change on 2026-10-13: until 2026-10-12 the detail event is charged only for ads that carry impressions, run dates or targeting. From 2026-10-13 it is charged for every detail page that loads, as described above. The prices per event do not change.
FAQ
Why does an advertiser search return unrelated companies?
LinkedIn matches advertiser names loosely. Use matchBy: payer for the legal entity, or paste an Ad Library search URL.
Can I get all ads of a company, not just 100?
Set maxAdsPerQuery to 0. The actor follows LinkedIn's own pagination (24 ads per page) until the last page. Large advertisers have thousands of ads and the run charges per ad, so set a maximum charge on the run.
Which proxies does it need? LinkedIn answers datacenter and residential proxies with a challenge page, so the actor uses the Apify Unblocker by default. If the configured proxy is not available on your account, it falls back to the Unblocker. A run of 100 ads with details makes roughly 105 requests.
How fast is it? Detail pages are fetched four at a time. Expect roughly 2 to 4 minutes per 100 ads with details and a few seconds per 100 without.
How current is the data? Each run reads the Ad Library live at that moment.
Can I schedule it or use it via API? Yes. Save a task with your queries, add an Apify schedule, and pull the dataset as JSON, CSV or Excel through the API, or send it to Google Sheets, Make, Zapier or n8n.
Can I get only the ads that are new since the last run?
Yes. Set onlyNewAds to true and schedule the run; see "Track new LinkedIn ads of a competitor" above.
What can it not do? It does not return spend or clicks, and it cannot see impressions or targeting for ads outside the EU transparency rules.
Use it from Claude, ChatGPT or Cursor (Apify MCP server)
The actor can be called as a tool by any AI assistant that speaks the Model Context Protocol. Add the Apify MCP server to your client with this URL, which loads only this actor as a tool:
https://mcp.apify.com?tools=pulsedata/linkedin-ad-library-scraper
On first connection the client opens a browser window to sign in to Apify, or you pass your Apify API token instead. After that you can ask in plain language, for example "show the LinkedIn ads HubSpot ran in Germany in the last 30 days", and the assistant fills queries, countryCode and dateOption itself, runs the actor and reads the ads back as JSON. Billing is the same as a normal run, at the prices listed above. Mention a limit in your prompt, which the assistant passes as maxAdsPerQuery, if you want to cap the cost of a single question.
Paying from an AI agent without an Apify account (x402 and Skyfire)
Apify lets autonomous agents buy a prepaid, spend-capped API token from Apify AGI and use it like a normal Apify token, both for the API and for the MCP server. The token can be paid with USDC on Base or Solana through the x402 protocol or from a Skyfire wallet. Prepaid tokens only run actors with limited permissions. This actor uses limited permissions, so it works with them. The smallest token is $1, tokens expire 14 days after purchase, and unused balance is not refunded. Apify marks agentic payments as experimental, and the details may change.
Example pages
- See every ad a competitor runs on LinkedIn
- All LinkedIn ads paid for by one company group
- Who does this company target on LinkedIn?
- Find LinkedIn ads that mention a keyword
- LinkedIn ads shown in Germany
- See the LinkedIn ads a SaaS company runs
- LinkedIn ads shown in the United States
- Find LinkedIn ads for hiring and recruiting
Related actors
- Google Ads Transparency Center Scraper: the same competitor view for Google Search, YouTube, Shopping, Maps and Play ads.
- TikTok Ad Library Scraper: TikTok video ads shown in Europe, with run dates and audience size.
- Website Tech Stack Detector: what an advertiser's landing pages are built with.
- Career Page Jobs Scraper: hiring signals for the same companies across 12 applicant tracking systems.