LinkedIn Ad Library Scraper
Pricing
from $1.12 / 1,000 result items
LinkedIn Ad Library Scraper
LinkedIn Ad Library scraper for competitor ad research: search ads by keyword, advertiser or company id, country and date. Get advertiser, format, headline, ad text, images, video and CTA, plus run dates, impressions and targeting. No login. Monitor mode returns only new ads.
Pricing
from $1.12 / 1,000 result items
Rating
0.0
(0)
Developer
Viktor Dubnytskiy
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
16 days ago
Last modified
Categories
Features
Share
LinkedIn Ad Library Scraper searches LinkedIn's public Ad Library by keyword, advertiser or company id and gives you one row per ad: advertiser, ad format, headline, ad text, images, video, carousel cards and the link to the ad. Turn on details to add the call to action, landing page, run dates, impressions range and targeting summary. No LinkedIn account, no cookies.
Try it: the prefilled example returns 20 rows in about 25 seconds (10 to 45 seconds across test runs, depending on how many datacenter IPs LinkedIn refuses first) and costs about $0.03. Results cost $1.40 per 1,000.
What you get
Real rows from the example dataset (keywords: ["salesforce"], 20 ads, newest first):
| advertiserName | format | headline | imageUrls | rank |
|---|---|---|---|---|
| Claap | single_image | Book a 30-min demo | 1 image | 2 |
| Gearset | single_image | Admins & devs. Finally on the same page. | 1 image | 6 |
| Antycode | single_image | Generate and sign documents without leaving Salesforce | 1 image | 11 |
| Intercom | single_image | The AI your support team needs | 1 image | 16 |
| Cirra AI | video | Cirra Admin is coming soon | video thumbnail | 22 |
| Improvado | single_image | Your CRM and warehouse to Meta, Google, LinkedIn. Every morning. | 1 image | 25 |
rank is the position in LinkedIn's results. Gaps are ads LinkedIn lists for a personal profile, which this actor skips (see below).
A search row (image and logo URLs shortened here):
{"adId": "1669488686","adUrl": "https://www.linkedin.com/ad-library/detail/1669488686","advertiserName": "Cirra AI","advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D560BAQEe1XA1AXDZrA/company-logo_100_100/...","adType": "Video Ad","format": "video","headline": "Cirra Admin is coming soon","body": "Cirra Admin, an AI Salesforce admin, is coming soon. Ask in Slack, approve the changes, and every action will be logged.…","bodyTruncated": true,"videoThumbnailUrl": "https://media.licdn.com/dms/image/v2/D5610AQF_eWyaHY4W4A/videocover-high/...","query": "salesforce","rank": 22,"detailsFetched": false}
The same ad with includeDetails: true adds the detail page. A HubSpot ad shown in Germany (companies: ["HubSpot"], countries: ["DE"]), fields shortened:
{"adId": "1585176223","advertiserName": "HubSpot","advertiserCompanyId": "68529","advertiserUrl": "https://www.linkedin.com/company/68529","format": "single_image","headline": "Bereit für den Wechsel?","ctaText": "Mehr erfahren","landingUrl": "https://hubs.la/Q04B5zLF0?utm_campaign=EMEA&utm_source=linkedin&...","paidBy": "HubSpot, Inc.","runStart": "2026-10-20","runEnd": "2026-11-01","impressionsRange": "100k-150k","targetedLanguages": ["Deutsch"],"targetedLocations": ["Deutschland"],"targetingCriteria": [{"parameter": "Job", "targeted": true, "excluded": false}],"detailsFetched": true}
Full row: adId, adUrl, advertiserName, advertiserCompanyId, advertiserUrl, advertiserLogoUrl, adType (LinkedIn's label), format, creativeType, isMemberPost, headline, description, body, bodyTruncated, ctaText, landingUrl, imageUrls, videoUrl, videoThumbnailUrl, carouselCards, documentPageCount, eventTime, eventLocation, paidBy, runStart, runEnd, impressionsRange, targetedLanguages, targetedLocations, excludedLocations, targetingCriteria, query, queryCompany, rank, detailsFetched, scrapedAt.
format is one of single_image, video, carousel, document, message, text, event, spotlight, article, or another LinkedIn ad type in lower case. Search results show the ad text cut at about 120 characters (bodyTruncated: true); with includeDetails the row carries the full text.
Use cases
- Competitor research: see every ad a competitor runs on LinkedIn, in which formats, with which message and offer.
- Agencies and B2B marketers collect creative examples by keyword ("webinar", "free trial", "SOC 2") before writing their own campaigns.
- Sales teams spot which accounts are spending on LinkedIn right now.
- Monitor mode returns only ads that were not seen on the previous run, so a weekly schedule becomes a feed of new competitor ads.
Input
| Field | Meaning | Default |
|---|---|---|
keywords | Words or phrases to search in the ad text, one search per keyword | none (prefilled with ["salesforce"]) |
companies | Advertisers: a name as you would type it into the Ad Library ("HubSpot") or a numeric LinkedIn company id ("68529") for an exact match. With keywords too, every keyword is searched within every advertiser. | empty |
countries | Two-letter country codes, LinkedIn's Country filter, e.g. ["DE", "FR"] | all countries |
dateOption | any, last-30-days, current-year, last-year or custom-date-range | any |
startDate, endDate | YYYY-MM-DD, used with custom-date-range | empty |
includeDetails | Open each ad's detail page for the full text, call to action, landing URL, video file, "paid for by", run dates, impressions and targeting. One extra request per ad. | false |
maxAdsPerQuery | Stop each search after this many ads | 100 |
maxItems | Stop the whole run after this many ads | 100 |
mode | scrape, or monitor (only ads not seen by the previous run) | scrape |
monitorStateId, webhookUrl, telegramBotToken, telegramChatId | Monitor-mode state key and alert targets | empty |
To watch a competitor, save the input as a task with companies: ["<their company id>"], set Mode to monitor and add a schedule (for example cron 0 8 * * 1, every Monday). Each run then returns only the ads that are new since the last run. With includeDetails on, every run opens the detail page of each ad it reads again, including ads it already reported, so keep maxAdsPerQuery close to the number of new ads you expect per run.
How it works
- Each keyword, advertiser or keyword and advertiser pair becomes one Ad Library search with your country and date filters, newest ads first.
- The search page lists 24 ads. The next 24 come from LinkedIn's own "Show more" request, using the pagination token the previous page carries. A search stops at LinkedIn's last page, at
maxAdsPerQuery, or when a page brings no new ad. - With
includeDetails, every ad's public detail page is read once. - The requests go through a datacenter proxy with a browser fingerprint. LinkedIn's Cloudflare refuses some datacenter IPs, so a refused page (HTTP 403, 999 or 429) is retried on up to 4 fresh datacenter IPs before the actor switches to a residential proxy and stays on it for the rest of the run. Search pages and detail pages climb separately. Residential traffic costs you more platform usage than datacenter traffic. A search page that answers 404 or comes back without ads and without LinkedIn's "No results found" counts as refused too.
- If every search was refused and nothing was returned,
RUN_SUMMARYsaysblockedinstead of an emptyno_matches. If 5 detail pages in a row are refused, the run stops asking for details and returns the remaining ads withdetailsFetched: false.
Pricing
| Event | Price |
|---|---|
| result | $0.0014 per ad ($1.40 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.0014 per new ad in monitor mode |
Apify Store discounts: SILVER -10%, GOLD and higher -20% on every event.
You pay only for ads actually returned. includeDetails costs no extra event, only a little more platform usage. Platform usage (compute and proxy traffic) is billed by Apify on top.
Found it useful? A short review on the Store page helps other people find this actor and tells us what to improve. If something is wrong, open an issue on the actor page and we will answer within a day.
What is NOT collected
Advertisers are companies. LinkedIn also lists ads that a member runs from a personal profile; those ads are skipped and never returned. When a company promotes a post written by one of its people (a thought leader ad), the row names the company only: the person's name, headline, photo and profile link are not read, and isMemberPost is true. Links to member profiles inside ad text are replaced with @member. The sender of a message ad is not collected: the name and photo above the message are not read, and the sign-off at the end of the message text keeps the greeting ("Best,") without the name. paidBy is kept only when it names the advertiser company itself, because small advertisers and political ads can be paid for by a person.
Limits
- LinkedIn shows run dates, impressions and targeting only for ads served in the EU. For other ads these fields stay empty even with
includeDetails. impressionsRangeis LinkedIn's own bucket ("< 1k", "10k-20k"). The per-country impression split is not collected.- LinkedIn keeps ads in the library for one year, so older ads are not searchable.
- Keyword search matches LinkedIn's way: a keyword can return ads where it appears anywhere in the ad, including the advertiser's name.
landingUrlis filled only when the detail page links the creative to a website or a LinkedIn event; many ads show a call to action button without a link.- An advertiser name in
companiesuses LinkedIn's name match and can return similar names ("HubSpot For Startups" next to "HubSpot"). Use the numeric company id for an exact advertiser.
FAQ
Does it need a LinkedIn account or cookies? No. The Ad Library is public and every request is a plain logged-out web request.
Where do I find a company id? Run one search with the company name and includeDetails: true: advertiserCompanyId holds it. The id is also in the company page URL LinkedIn shows for the advertiser.
Why did a search return nothing? Either LinkedIn has no ad for it (the run log shows the search in emptyQueries) or LinkedIn refused every page (RUN_SUMMARY says blocked). The AD_LIBRARY_STATS record in the key-value store counts searches, walls, skipped personal ads and detail pages.
Related actors
- Google Ads Transparency Scraper: the same advertisers' Google search, display and YouTube ads.
- LinkedIn Jobs Scraper: the jobs the same companies post on LinkedIn.
- Facebook Pages Search: the same companies' Facebook pages with public business contacts.
Changelog
- 0.1: first release. Ad Library search by keyword, advertiser name or company id, country and date filters, token pagination, optional detail pages, monitor mode for new ads.