LinkedIn Ad Library Scraper
Pricing
from $0.50 / 1,000 ad with full details
LinkedIn Ad Library Scraper
Scrape LinkedIn ads from the LinkedIn Ad Library: creatives, impressions by country, targeting and paying entity. No login. Unified ad schema shared with Meta, Google and TikTok. Export CSV, JSON, Excel.
Pricing
from $0.50 / 1,000 ad with full details
Rating
0.0
(0)
Developer
Rastriq — Structured data from the world
Maintained by CommunityActor stats
0
Bookmarked
23
Total users
5
Monthly active users
3 days ago
Last modified
Categories
Features
Share
LinkedIn Ad Library Scraper — LinkedIn Ads Data Without Login
Scrape the LinkedIn Ad Library (the public LinkedIn ads library) and get structured LinkedIn ads data: ad copy and creatives, landing pages, estimated impressions by country, targeting parameters and the legal entity that paid for each ad. No LinkedIn account and no cookies needed. Export to JSON, CSV or Excel, or call it from the Apify API.
🎯 Pay only for the advertiser you asked for. Searching
HubSpoton LinkedIn also returns partner agencies such as Sparkon | HubSpot Elite Partner, because LinkedIn matches names as a substring. LinkedIn Ad Library Scraper targets by company ID or filters by name before fetching ad details, so ads from the wrong advertiser are never charged.
📌 What is LinkedIn Ad Library Scraper?
The LinkedIn Ad Library is LinkedIn's ad transparency archive, published under the EU Digital Services Act. It lists the ads an advertiser ran in the last 12 months, 25 at a time behind an infinite scroll, with no export button and no API.
LinkedIn Ad Library Scraper turns it into a dataset. Typical uses:
- Competitive monitoring: see which LinkedIn ads a competitor is running right now (
is_active). - Media agency mapping:
li_paying_entityshows who pays for a brand's LinkedIn ads. - Share of voice: impression ranges and per-country breakdown for EU-served ads.
- Targeting teardowns: which targeting parameters (language, location, job, company...) an advertiser included or excluded.
- Creative libraries: competitor copy, headlines, CTAs, media URLs and landing pages.
📋 What data does LinkedIn Ad Library Scraper extract?
Output uses the unified field names shared by our Meta, Google and TikTok ad library scrapers (snake_case), plus LinkedIn-specific fields prefixed li_.
| Field | Description |
|---|---|
🆔 ad_id, ad_url | LinkedIn ad ID and link to its Ad Library detail page |
🏢 advertiser_id, advertiser_name, advertiser_url | Company running the ad |
💳 li_paying_entity | Legal entity that paid for the ad (often the media agency) |
📝 ad_text, ad_title, cta_text, landing_url | Ad copy, headline, call-to-action label and destination |
🎬 media_type, media_urls, thumbnail_url | Creative type (image, video, carousel, document, text) and media links |
🎠 li_carousel_cards, li_commentary_links, li_document_title | Carousel slides, links in the body copy, document title |
📅 first_shown_at, last_shown_at, days_running, is_active | Run period and whether the ad is still live |
📈 impressions_min, impressions_max, li_impressions_raw | Published impression range, parsed and as published |
🌍 countries, li_impressions_by_country | Delivery countries (ISO-2) and the per-country impression split |
🎯 li_targeting_segments, li_targeting_parameters, li_targeting_available | Included and excluded targeting values per parameter |
🏷️ li_ad_format, li_creative_type | LinkedIn format, for example "Video Ad" |
🔎 detail_scraped, scraped_at, source_url, platform | Traceability |
Turn on Unified fields only to drop the li_ fields and keep only the columns shared by every ad platform.
Note: impressions and targeting are published by LinkedIn only for ads served in the EU region. Other ads come back with
li_targeting_available: falseand empty impressions.
🚀 How to use LinkedIn Ad Library Scraper
- Open the Actor and press Start. It runs on a prefilled example (a HubSpot ad library search) with a small ad limit.
- Paste an Ad Library URL. Build your search on
linkedin.com/ad-library/search, copy the URL into Ad library URLs, and every filter is preserved. Ad detail URLs and company page URLs also work. - Or type advertiser names in Advertisers by name. For exact results use Company IDs or Company URLs.
- Narrow the search with keyword, paying entity, countries, date range, impression bounds and targeting families.
- Choose detail level. Keep Scrape ad details on for impressions, targeting and paying entity; turn it off for a faster, cheaper listing.
- Set Max ads, press Start, then export from the Output tab as JSON, CSV, Excel or via the API.
Re-scrape mode: paste known IDs into Ad IDs or detail URLs to refresh a fixed set of ads without searching again, for example to track impressions while a campaign runs.
🎯 Getting the right advertiser
LinkedIn matches advertiser names as a substring, so a name search returns the brand plus every partner with the brand in its name. LinkedIn Ad Library Scraper gives you three ways to avoid that, from most to least precise:
| Approach | Input | Behaviour |
|---|---|---|
| Company IDs | companyIds: ["68529"] | Exact, filtered on LinkedIn's side |
| Company URLs | companyUrls: ["https://www.linkedin.com/company/nvidia/"] | Resolved to the numeric ID with one extra request, then exact |
| Name + matching mode | advertisers: ["HubSpot"], advertiserMatch: "startsWith" | Filtered before ad details are fetched |
advertiserMatch modes: startsWith (default, keeps sub-brands like HubSpot for Developers, drops partners), exact, and any (no filtering). Ads dropped by the filter are never charged, and the run log reports how many were dropped.
⚙️ Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
searchUrls | array | prefill: HubSpot search | Ad Library search, ad detail or company page URLs |
advertisers | array | none | Advertiser names (substring match on LinkedIn's side) |
companyIds / companyUrls | array | none | Exact advertiser targeting |
advertiserMatch | string | startsWith | any / startsWith / exact |
adIds | array | none | Ad IDs or detail URLs for re-scrape mode |
maxAdsTotal | integer | 1000 | Cap for the whole run (0 = no limit) |
maxAdsPerQuery | integer | 200 | Cap per advertiser or URL (0 = no limit) |
scrapeAdDetails | boolean | true | Fetch impressions, targeting, paying entity |
keyword, payer | string | none | Free-text and paying-entity filters |
countries | array | none | Delivery countries |
dateOption, startDate, endDate | string | any time | Preset or custom YYYY-MM-DD range |
impressionsMinValue / impressionsMaxValue (+ units) | integer | none | Impression bounds in thousands or millions |
includedTargetingFacets / excludedTargetingFacets | array | none | Ads that targeted or excluded these parameter families |
unifiedFieldsOnly | boolean | false | Return only the cross-platform fields |
proxyConfiguration | object | Apify Proxy | LinkedIn blocks datacenter IPs; with Apify Proxy the Actor switches to RESIDENTIAL by itself after the first 403 |
sessions | integer | 4 | Parallel sessions (one IP each) |
requestDelayMs | integer | 2000 | Delay between requests of one session |
maxRetries | integer | 4 | Retries on 429/5xx |
📦 LinkedIn ads output example
{"platform": "linkedin","ad_id": "859756133","ad_url": "https://www.linkedin.com/ad-library/detail/859756133","advertiser_id": "1240549","advertiser_name": "astara","ad_text": "🚗 At #Astara, we keep strengthening our mobility ecosystem!","media_type": "video","first_shown_at": "2025-10-01","last_shown_at": "2025-10-14","days_running": 13,"is_active": false,"countries": ["CL", "CO", "ES", "IN"],"impressions_min": 100000,"impressions_max": 150000,"li_impressions_raw": "100k-150k","li_paying_entity": "WPP MEDIA SPAIN, S.A.U.","li_impressions_by_country": [{ "country": "Spain", "sharePct": 30, "shareRaw": "30%", "isUpperBound": false }],"li_targeting_segments": [{ "parameter": "Language", "included": ["English"], "excluded": [] }],"li_targeting_available": true,"detail_scraped": true}
(Abridged example. Exact values vary per ad.)
🤖 Use with Claude/ChatGPT (MCP)
Use LinkedIn Ad Library Scraper as a tool inside Claude, ChatGPT or any MCP client through the Apify MCP server.
- Hosted server (all Actors):
https://mcp.apify.com - Only this Actor:
https://mcp.apify.com?tools=actors,rastriq/linkedin-ad-library-scraper - Local client:
npx @apify/actors-mcp-server --tools rastriq/linkedin-ad-library-scraperwith theAPIFY_TOKENenvironment variable set.
Example prompts:
- "Use LinkedIn Ad Library Scraper to get the 20 latest LinkedIn ads from HubSpot and summarize their messaging."
- "Pull Salesforce's LinkedIn ads and tell me which media agency pays for them."
- "Find LinkedIn ads from Datadog that targeted job titles and list the countries they reached."
⚡ Proxy, browser and rate limits
LinkedIn Ad Library Scraper drives a headless browser (Chromium) and runs with 1024 MB of memory by default. LinkedIn blocks datacenter IPs (HTTP 403), so the Actor starts on the default Apify Proxy and switches the whole session pool to the RESIDENTIAL group at the first 403. You do not need to change any setting. With no proxy, or with your own proxy URLs, it cannot switch and a 403 ends the run with no results.
LinkedIn also rate-limits per IP. Each parallel session gets its own IP, so throughput scales with sessions (default 4), not with a shorter delay. Keep the default 2000 ms delay per session; without a proxy the Actor forces a single session.
💰 How much does it cost to use LinkedIn Ad Library Scraper?
LinkedIn Ad Library Scraper is pay-per-event: you pay per ad returned, with no monthly rental. Prices drop with your Apify plan.
| Event | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Ad with full details | $2.00 / 1K | $1.20 / 1K | $0.90 / 1K | $0.50 / 1K |
Ad preview (scrapeAdDetails: false) | $0.50 / 1K | $0.30 / 1K | $0.25 / 1K | $0.15 / 1K |
| Actor start | $0.00005 per GB of memory, once per run |
Ads dropped by the advertiser filter are never charged, and the run stops at your budget limit. Start with a small Max ads value to size your costs, then scale.
Proxy traffic: because the Actor ends up on residential proxies, expect roughly 16 MB of residential traffic per 1,000 ads with details (measured on a 10-ad test run; the Actor downloads only the HTML of each page). It is part of the Actor's running cost, not an extra line on your bill.
🔗 Related Rastriq Actors
Other ad library scrapers that share the same unified output fields, so datasets can be merged across platforms:
| Actor | What it adds |
|---|---|
| Facebook Ad Library Scraper | Facebook and Instagram ads from Meta's Ad Library |
| Google Ads Transparency Scraper | Search, Display and YouTube ads from Google's Ads Transparency Center |
| TikTok Ad Library Scraper | Ads from TikTok's EU ad library |
| TikTok Top Ads Scraper | Top-performing TikTok ad creatives from the Creative Center |
🔄 Recurring LinkedIn ads monitoring
Save your input as a Task in Apify Console, schedule it daily or weekly, and add a webhook on run finish to push new ads to Slack, email or your own endpoint. Use Ad IDs mode to re-scrape a fixed set of ads.
❓ FAQ about scraping LinkedIn ads
Is scraping the LinkedIn Ad Library legal?
The Actor only reads publicly available data: the ad transparency archive LinkedIn publishes under the EU Digital Services Act, visible without logging in. Fields describe advertisements and companies, not individuals. You remain responsible for complying with applicable law (GDPR, CCPA) and LinkedIn's Terms of Service. See Apify's guide on the legality of web scraping.
Do I need a LinkedIn account or cookies?
No. Never put your personal li_at session cookie into a scraper.
Why do some ads have no impressions or targeting?
LinkedIn publishes those fields only for ads served in the EU region. Others return li_targeting_available: false.
How far back does the archive go?
LinkedIn only indexes ads from the last 12 months.
Why did I get fewer ads than LinkedIn's counter shows?
The counter is an estimate; the Actor deduplicates by ad_id across pages and queries.
I get 429 errors or zero ads.
Keep Apify Proxy enabled: LinkedIn blocks datacenter and proxy-less traffic (HTTP 403), and with Apify Proxy the Actor moves to RESIDENTIAL by itself. If you see 429s, raise requestDelayMs to 3000. A run that returns no ads ends as Failed with a message that says why: LinkedIn blocked the requests, the requests failed, or no ads matched your advertiser and filters. The raw search page is saved to the key-value store as debug_search_page; attach it to an Issue.
How do I integrate LinkedIn Ad Library Scraper with my stack?
Through Make, Zapier, Google Sheets, webhooks, scheduled runs and the Apify API. For AI agents, see the MCP section above.
Where do I report a bug?
Open a ticket in the Issues tab with your input and run ID.