LinkedIn Ads Scraper - LinkedIn Ad Library Ads & Targeting avatar

LinkedIn Ads Scraper - LinkedIn Ad Library Ads & Targeting

Pricing

from $0.80 / 1,000 ad scrapeds

Go to Apify Store
LinkedIn Ads Scraper - LinkedIn Ad Library Ads & Targeting

LinkedIn Ads Scraper - LinkedIn Ad Library Ads & Targeting

LinkedIn Ads Scraper for the LinkedIn Ad Library (LinkedIn Ads Library): search ads by advertiser, keyword, payer, country and date. Ad text, creatives, CTA, landing URL, and for EU-shown ads run dates, impressions, country split and targeting. No login. $1.50 per 1,000 ads with details.

Pricing

from $0.80 / 1,000 ad scrapeds

Rating

0.0

(0)

Developer

Christian Machon

Christian Machon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

LinkedIn Ads Scraper for the LinkedIn Ad Library (LinkedIn Ads Library): see every LinkedIn ad a competitor runs (copy, creatives, CTA, landing page, plus EU impressions and targeting) for $1.50 per 1,000 ads with details. The first 20 ads of every run are free. No LinkedIn login or cookies needed.

Scrape the public LinkedIn Ad Library by advertiser / company name, keyword, "paid for by" payer, country and date range. You get every ad's text, creative (images, video file, carousel), headline, CTA, landing URL, and for ads shown in the EU the transparency data: run dates, impression ranges, impression share by country and targeting (languages, locations, audience, company, job and demographic parameters).

It reads the public, server-rendered Ad Library pages with plain HTTPS requests (browser-like headers, one cookie jar per session) through Apify residential proxy. Since 29 Oct 2026, and much more since 1 Nov 2026, LinkedIn's Cloudflare firewall refuses most proxy IPs on the Ad Library pages (HTTP 403). A refused request is therefore retried from a new residential IP (US, with Canadian IPs mixed in, favouring whichever pool is getting through), paced and with short backoff. An IP that got through is reused for the rest of the run, and for a few minutes by your next run. If LinkedIn keeps refusing, the run stops well before its timeout with a clear FAILED reason instead of hanging, and you are charged only the start fee ($0.00005).

Who it's for and use cases

Built for performance marketers and media buyers, agencies running competitor audits, creative strategists building swipe files, market researchers and journalists, and developers or AI agents that need ad-library data through an API.

  • Competitor ad research: see every ad a competitor is running on LinkedIn, with copy, creative and landing pages.
  • Messaging and creative benchmarks: compare formats (image, video, document, carousel, message ads) and CTAs across an industry keyword.
  • Spend proxies: impression ranges and country split for ads delivered in the EU.
  • Targeting intelligence: which targeting dimensions (company, job, audience, demographics…) an advertiser uses, and which locations and languages.
  • Lead generation: find companies actively advertising on LinkedIn for a keyword, with their company page URL.

Why this scraper?

  • Measured reliability: across 110 development runs in October, 105 (95.5%) returned their data. On 1 Nov 2026 LinkedIn's firewall began refusing almost all proxy traffic and the previous build failed 3 of 3 test runs; the current build (more retries on fresh residential IPs, US + Canada, reuse of IPs that got through) returned ads in all of its test runs that day (see Limits). Runs now take longer, because many IPs are refused before one gets through. The fixes:
    • No browser: plain requests, so pages load fast once an IP gets through.
    • Automatic session rotation on 403/429.
    • Pagination that resumes from the same page.
    • Partial results are saved, never thrown away.
  • Per-input status: the OUTPUT record gives each input one status: SUCCEEDED, PARTIAL, NO_DATA, FAILED or DUPLICATE. It also gives counts, errors and network stats, so you know exactly what you got.
  • Full ad text and details: it opens each ad's detail page (optional), so ad text is not cut off at "…see more".
  • Clean, flat schema: numbers are parsed (impressionsMin/impressionsMax), dates are ISO (YYYY-MM-DD) and tracking parameters are stripped from URLs.
  • Fair pricing: the first 20 ads of every run are free; after that you pay per ad, and the detail-page enrichment is charged only when it actually loaded.

How to use it

  1. Enter one or more advertiser names (e.g. HubSpot), keywords (e.g. CRM) or paid-for-by names. Each entry is a separate search.
  2. Optionally restrict countries (ISO codes, e.g. US, DE) and the date range.
  3. Set Max ads per search (LinkedIn serves 24 per page).
  4. Leave Include ad details on for full data, or switch it off for a fast, cheap card-only scrape.
  5. Run. Results go to the dataset; the per-input summary goes to the OUTPUT record in the key-value store.

You can also paste LinkedIn Ad Library search URLs or single ad URLs (https://www.linkedin.com/ad-library/detail/<id>).

Input example

{
"advertisers": ["HubSpot", "Salesforce"],
"keywords": ["CRM"],
"countries": ["US", "DE"],
"dateRange": "last-30-days",
"maxAdsPerSearch": 100,
"includeDetails": true
}
FieldDescription
advertisersAdvertiser (company or person) names; LinkedIn's "Advertiser name" filter.
keywordsKeywords contained in the ad.
keywordFilterOptional keyword that is combined with each advertiser search.
payers"Paid for by" names.
adLibraryUrlsLinkedIn Ad Library search or ad detail URLs.
countriesISO 3166 alpha-2 codes; empty means all countries. Unknown codes are reported in OUTPUT.inputErrors.
dateRangeall, last-30-days, current-month, current-year, last-year or custom (with startDate / endDate). LinkedIn allows custom ranges within the last 12 months only; older start dates are clamped.
maxAdsPerSearch1–5000, default 50.
includeDetailsDefault true.
maxConcurrencyParallel sessions; default 2, capped at 3.
maxRetriesRetries per page after a block, each from a new IP; default 20, capped at 30. The first result page of a search always gets at least 24 attempts.
maxRunSecsOptional: stop starting requests after this many seconds and return what was collected. The run always stops about 8 s before its timeout.
proxyConfigurationDefault Apify residential proxy (US); Canadian residential IPs are mixed in automatically. Datacenter proxies get blocked.

What data you get

The fill rates below were measured on 3,360 ads from our test runs (October 2026). There are three columns:

  • All ads (with details): 1,960 ads.
  • EU-delivered: 766 ads, the ones that have transparency data.
  • Card-only (includeDetails: false): 1,400 ads.

LinkedIn publishes run dates, impressions and targeting only for ads that were shown in the EU (DSA transparency). That is why those fields are filled for about 39% of ads overall and almost 100% of EU-delivered ads. For ads shown only outside the EU they are null, and that is LinkedIn's data, not a scraping failure.

FieldAll ads (details)EU-deliveredCard-onlyNotes
adId, adUrl, searchInput, searchType, detailsStatus, scrapedAt100%100%100%
advertiserName100%100%99%
advertiserUrl, advertiserType98%98%0%Company page (company) or member profile (person). Detail page only.
advertiserLogoUrl94%93%92%
paidBy100%100%0%"Paid for by" entity. Detail page only.
format100%100%99%E.g. Single Image Ad, Video Ad, Document Ad, Carousel Ad, Message Ad, LinkedIn Article Ad, Event Ad, Job Ad, Spotlight Ad, Follow Company Ad.
creativeType100%100%100%LinkedIn's internal type, e.g. SPONSORED_VIDEO.
adText99%99%99%Full text with details. Cards are usually cut off (adTextTruncated: true).
messageSender100% of message adsSender shown on Message/InMail ads.
headline54%63%58%Only formats that have a headline.
ctaText54%63%0%E.g. "Learn more", "Register", "Download the Guide".
destinationUrl34%79%0%Landing page (tracking trk parameter removed). LinkedIn often omits it for ads not shown in the EU.
imageUrls93%96%93%Image, carousel, document pages and video cover. Text-only ads have none.
videoUrl100% of video ads (20% of all)0%Highest-bitrate MP4.
carouselCardCount100% of multi-card ads (5%)0%
firstShown, lastShown39%100%0%From "Ran from … to …".
totalImpressions, impressionsMin, impressionsMax39%100%0%E.g. "20k-30k" → 20000 / 30000; "> 1M" → min 1000000, max null; "< 1k" → 0 / 1000.
impressionsByCountry39%100%0%[{country, percent, percentLabel}]; percent is null when LinkedIn shows "< 1%".
targetingLanguages, targetingLocationsIncluded39%99–100%0%
targetingLocationsExcluded2%4%0%Only when the advertiser excluded locations.
targetingParameters39%100%0%[{parameter, targeted, excluded}] for Audience, Demographic, Company, Education, Job, Member Interests and Traits. LinkedIn only reveals whether each was used, not the values.

detailsStatus can be:

  • OK: the detail page was parsed.
  • NOT_REQUESTED: details were switched off.
  • NOT_AVAILABLE: the ad was removed or has no detail page.
  • FAILED: the detail page could not be loaded after all retries. The card data is still returned.

Not available from LinkedIn and therefore not in the output: spend amounts, exact impressions, the targeting values themselves (e.g. which job titles), and ad engagement.

Output example

{
"adId": "1611644514",
"adUrl": "https://www.linkedin.com/ad-library/detail/1611644514",
"searchInput": "HubSpot",
"searchType": "advertiser",
"advertiserName": "HubSpot for Developers",
"advertiserUrl": "https://www.linkedin.com/company/104750988",
"advertiserType": "company",
"advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/.../hubspot_for_developers_logo",
"paidBy": "HubSpot, Inc.",
"format": "Single Image Ad",
"creativeType": "SPONSORED_STATUS_UPDATE",
"adText": "Less guesswork. More step-by-step 👀\n\nOne week until our Agent Builder Workshop!! ...",
"adTextTruncated": false,
"messageSender": null,
"headline": "3.0 Agent Builder Workshop",
"ctaText": null,
"destinationUrl": "https://bit.ly/4yzZ7Sc",
"imageUrls": ["https://media.licdn.com/dms/image/v2/D4E10AQHRTgYZFiIaDQ/image-shrink_1280/..."],
"videoUrl": null,
"carouselCardCount": null,
"firstShown": "2026-10-23",
"lastShown": "2026-10-26",
"totalImpressions": "> 1M",
"impressionsMin": 1000000,
"impressionsMax": null,
"impressionsByCountry": [
{ "country": "Colombia", "percent": 96, "percentLabel": "96%" },
{ "country": "Mexico", "percent": 3, "percentLabel": "3%" },
{ "country": "United States", "percent": null, "percentLabel": "<1%" }
],
"targetingLanguages": ["English"],
"targetingLocationsIncluded": ["Germany", "Netherlands", "United States", "Canada", "Mexico", "Ireland", "Colombia", "United Kingdom"],
"targetingLocationsExcluded": null,
"targetingParameters": [
{ "parameter": "Audience", "targeted": false, "excluded": false },
{ "parameter": "Company", "targeted": true, "excluded": false },
{ "parameter": "Job", "targeted": false, "excluded": true }
],
"detailsStatus": "OK",
"scrapedAt": "2026-10-26T16:44:10.512Z"
}

Run summary (OUTPUT record)

{
"status": "SUCCEEDED",
"totalAds": 100,
"searches": [
{ "input": "Salesforce", "type": "advertiser", "status": "SUCCEEDED", "ads": 100, "adsWithDetails": 100, "detailFailures": 0, "pagesLoaded": 5, "reachedEnd": false, "errors": [] }
],
"billing": { "freeResultsPerRun": 20, "freeRows": 20, "chargedAdRows": 80, "chargedDetailRows": 80 },
"network": { "requests": 130, "searchPages": 9, "fragmentFetches": 4, "detailFetches": 117, "http403": 12, "http429": 0, "sessionsUsed": 14, "sessionsRetired": 12 }
}

If every input fails, the run is marked as failed, so you are not left with an empty "successful" run.

Pricing

Pay per event, with no subscription. The first 20 ads of every run are free (neither the ad nor its details are charged); ads 21 and later are charged at the normal price:

EventPriceWhen
Actor start$0.00005 per GB of memory ($0.00005 at the default 512 MB)Once per run
Ad$0.0008Every ad in the dataset after the first 20 of the run
Ad details$0.0007Only for those ads whose detail page loaded (detailsStatus: "OK")

That is $1.50 per 1,000 ads with full details, or $0.80 per 1,000 ads card-only, after the 20 free ones. Searches with no results, and runs that LinkedIn refuses completely, cost only the start fee. Apify's "Maximum cost per run" setting is respected: the scraper stops cleanly when it is reached. OUTPUT.billing shows how many ads were free and how many were charged.

Examples: 20 ads with details cost $0.00005 (start fee only); 50 ads with details cost 30 × $0.0015 = $0.045; 1,000 ads with details cost 980 × $0.0015 = about $1.47; 200 ads card-only cost 180 × $0.0008 = about $0.14.

Typical run times in our tests on 1 Nov 2026, while LinkedIn refused most proxy IPs: 20–30 ads with details in 60–120 s, 25 ads card-only in about 85 s. Most of that time is spent on refused IPs; once an IP gets through, detail pages load about 2 s apart.

FAQ

Do I need a LinkedIn account or cookies? No. The Ad Library is public, and the scraper never logs in.

Why are dates and impressions empty for some ads? LinkedIn only publishes them for ads delivered in the EU. Use the countries filter with EU countries (e.g. DE, FR) if you need those fields for most ads.

How far back can I search? "All time" returns everything LinkedIn still lists. Custom date ranges are limited to the last 12 months by LinkedIn.

Can I scrape one specific ad? Yes. Put its https://www.linkedin.com/ad-library/detail/<id> URL in adLibraryUrls.

How many ads can a search return? As many as LinkedIn serves. We tested up to 1,000 per search; the input allows up to 5,000.

Can I call it as an API? Yes. Every run can be started through the Apify API. To get results back in one HTTP call, POST your input to run-sync-get-dataset-items:

curl -X POST "https://api.apify.com/v2/acts/atlasdata~linkedin-ad-library-scraper-reliable/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"advertisers": ["HubSpot"], "maxAdsPerSearch": 20}'

The response is the dataset as JSON. Apify's JavaScript and Python clients, Make, Zapier and n8n integrations work too.

Can AI agents use it (MCP)? Yes. Add the Apify MCP server to Claude, Cursor or any MCP client with https://mcp.apify.com?tools=atlasdata/linkedin-ad-library-scraper-reliable and the Actor becomes a tool your agent can call.

How do I track a competitor's ads over time? Save your input (competitor names, domains or pages) as an Apify task and add a Schedule, for example weekly. Each run writes a new dataset, so you can compare runs or send new ads to Google Sheets, Slack or a webhook with Apify integrations.

Limits

  • Proxy: residential proxy is required. Datacenter IPs are blocked by Cloudflare.
  • Pacing: LinkedIn rate-limits fast clients, so detail pages are paced (about 2 s apart per session). Higher maxConcurrency uses more parallel sessions and is faster.
  • Advertiser search: the advertiser filter is LinkedIn's own fuzzy name match, so a search for "Google" can also return ads from pages such as "Google Cloud".
  • Location lists: targeted locations are given by LinkedIn as one comma-separated text. We split it into a list and re-attach region codes (e.g. "London, ON"), but names that themselves contain commas may be split.
  • Firewall refusals: since 1 Nov 2026 LinkedIn's Cloudflare firewall refuses most proxy IPs on the Ad Library (in our probes: every Apify datacenter IP, and roughly 10–30% of residential IPs got through, varying by the hour). The scraper retries on fresh residential IPs, but on a bad hour a search can still fail; it is then marked FAILED with the reason in OUTPUT, and you pay only the start fee. Some detail pages can also fail after all retries; those ads keep their card data with detailsStatus: "FAILED", and their details are not charged.

Ad library scrapers (competitor ad tracking)

Job data scrapers

Search trends