LinkedIn Ad Library Scraper: ads, targeting and impressions
DeprecatedPricing
from $0.80 / 1,000 ads
LinkedIn Ad Library Scraper: ads, targeting and impressions
DeprecatedScrape LinkedIn's Ad Library by keyword, advertiser, payer or URL: ad text, headline, call to action, landing page, images, videos, run dates, who paid, impressions by country and targeting (language, location, audience). Any country and date range. No login, no browser.
Pricing
from $0.80 / 1,000 ads
Rating
0.0
(0)
Developer
Spyridon Pikoulas
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
25 days ago
Last modified
Categories
Features
Share
LinkedIn Ad Library Scraper
Retired on 2026-11-06. LinkedIn's User Agreement bans scraping (link), so this Actor no longer reads the site. A run reads nothing, charges nothing and ends with this notice.
Scrape LinkedIn's Ad Library, the public archive of the ads run on LinkedIn, without an account or a browser:
- Keywords: the ads whose text contains a word or phrase.
- Advertisers: every ad of a company, by name (
HubSpot,SAP). - Payer: the ads paid for by a company or agency.
- Ad Library URLs: paste a search from linkedin.com/ad-library with its filters, or an ad
(
linkedin.com/ad-library/detail/...) or its ID. - Filters: the countries the ad was shown in, and a period: the last 30 days, this month, this year, last year, or your own start and end dates.
Every ad comes with its advertiser, format (single image, video, carousel, document, event or message) and the start of its text. With details on, the default, it also comes with the full text, headline, call to action, landing page, images, the video's MP4 and a document's pages, and what LinkedIn shows about it: who paid for it, the dates it ran, its impressions in total and by country, and its targeting: languages, locations, and which of audience, company, job, education, demographic and interest targeting it used or excluded.
It costs $0.80 per 1,000 ads, details included.
What people use it for
- Competitor research: every ad a competitor runs on LinkedIn, its message, offer and landing page, and how long it has run.
- Creative inspiration: the videos, documents and images of the B2B ads in a niche.
- Market and media research: who advertises on a topic, where, and with how many impressions.
- Lead generation: the companies spending on LinkedIn ads in a niche or a country.
How to scrape the LinkedIn Ad Library
- Click Try for free; Apify's free plan covers a first run.
- Enter Keywords, Advertisers or Ad Library URLs, and how many ads you want.
- Click Start, then download the results as JSON, CSV, Excel or HTML, or read them through the API.
An input with more options:
{"searchTerms": ["cloud security", "payroll software"],"advertisers": ["HubSpot"],"countries": ["US", "DE"],"dateRange": "last30Days","maxAdsPerSearch": 200,"urls": ["https://www.linkedin.com/ad-library/search?accountOwner=sap&countries=FR"]}
Each keyword and each advertiser is its own search, with the countries and period given; a search
URL keeps its own filters. Turn off includeDetails for what the search page shows, about 20
times faster.
Output
{"type": "ad","adId": "1574043074","url": "https://www.linkedin.com/ad-library/detail/1574043074","format": "Single Image Ad","creativeType": "SPONSORED_STATUS_UPDATE","advertiser": "SAP","advertiserId": "1115","advertiserUrl": "https://www.linkedin.com/company/1115","paidBy": "SAP Global Marketing, Inc.","text": "Safeguard your business integrity on your transformation journey with SAP Cloud ERP Private.","headline": "Experience a tailored fit when migrating to SAP Cloud ERP Private","callToAction": "Request Demo","destinationUrl": "https://sap.to/6043BGchjt","imageUrls": ["https://media.licdn.com/dms/image/v2/D5610AQEX5TXEsnOA5A/image-shrink_1280/..."],"firstShown": "2026-09-25","lastShown": "2026-09-27","impressions": "1k-5k","impressionsByCountry": [{"country": "India", "percent": 22}, {"country": "Pakistan", "percent": 17}],"targetingLanguages": {"included": ["English"], "excluded": []},"targetingLocations": {"included": ["Germany", "Switzerland", "Poland"], "excluded": []},"targetedBy": ["Audience", "Job"],"excludedBy": ["Audience"],"searchQuery": "cloud security"}
An ad also has advertiserLogo, and where it has them videoUrl (the best MP4),
videoThumbnail and documentPages. A message ad's text is the message, with LinkedIn's
%FIRSTNAME% placeholder in it.
Use it as an API
One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n integrations, work the same way.
curl -X POST "https://api.apify.com/v2/acts/pikoulas~linkedin-ads/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"searchTerms": ["cloud security"], "maxAdsPerSearch": 10}'
AI agents can call it as a tool through Apify's MCP server: https://mcp.apify.com?tools=pikoulas/linkedin-ads.
How much does it cost to scrape the LinkedIn Ad Library?
You pay $0.0008 per ad, which is $0.80 per 1,000 ads, with or without details. Traffic through Apify's residential proxy is paid as well, at $0.0012 per 100 KB. Ad details always go through it, since that makes them several times faster, and searches go through it only when LinkedIn refuses Apify's own IPs. An ad with details is about 13 KB, so about $0.16 per 1,000 ads. There are no monthly fees.
Good to know
- LinkedIn shows the run dates, impressions and targeting of the ads shown in the EU. Other ads
have them as
nulland empty lists; their text, creative and payer are there all the same. - LinkedIn lets one IP open an ad's page about every 3 seconds, so the details come from many IPs at once, 8 at a time: about 2.5 ads a second, where one IP gives one ad every 3 seconds. Search pages come 24 ads at a time.
- Searches go as deep as they have ads: 6,000 for "software" in the US came through, and an advertiser's whole library to its last page.
- An ad found under several keywords is given once per run.
FAQ
Is it legal to scrape LinkedIn's Ad Library?
It collects only what LinkedIn's Ad Library shows publicly, without logging in. Personal data is protected by laws such as the GDPR and the CCPA. If you're unsure, ask a lawyer; Apify's Is web scraping legal? is a good start.
Something missing or not working?
Open an issue on the Issues tab with the input you used, or ask there for a field you need.