LinkedIn Ad Library Scraper avatar

LinkedIn Ad Library Scraper

Pricing

from $1.50 / 1,000 ads

Go to Apify Store
LinkedIn Ad Library Scraper

LinkedIn Ad Library Scraper

Scrape LinkedIn Ad Library ads by keyword, advertiser company or Ad Library URL: ad text, headline, CTA, landing page, images, videos, documents, run dates, impressions, impressions by country and targeting. Monitor mode returns only new ads.

Pricing

from $1.50 / 1,000 ads

Rating

0.0

(0)

Developer

Roman

Roman

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 hours ago

Last modified

Categories

Share

Scrape ads from the LinkedIn Ad Library by keyword, advertiser company or any Ad Library URL, and get clean, structured data: ad text, headline, CTA, landing page, images, videos, carousel cards, documents, who paid, run dates, impressions, impressions by country and targeting.

No login, no cookies, no browser. It reads the same public pages the Ad Library website shows, so it is fast and cheap: about 1,000 ads with full details in a few minutes. Pair it with the Facebook Ads Library Scraper and the Google Ads Transparency Scraper to see a competitor's B2B ads on LinkedIn, Meta and Google side by side.

What you get for every ad:

  • ✍️ Ad copy: full introductory text, headline, call-to-action text, Message Ad (InMail) body and sender.
  • 🔗 Landing page URL: where the ad sends people, with UTM parameters, so you can see campaign names.
  • 🖼️ Media: image URLs, video files (all qualities) and thumbnails, carousel cards, Document Ad title, page count and page previews.
  • 🏷️ Format: Single Image, Video, Carousel, Document, Message, Event, Article, Thought Leader and other LinkedIn formats.
  • 🏢 Advertiser: name, LinkedIn company ID, page URL, logo, and Paid for by (often the agency that bought the ad).
  • 📅 Run dates: first and last day the ad ran and days running.
  • 📊 Impressions: total impressions range (for example 10k-20k) and the share of impressions per country.
  • 🎯 Targeting: targeted languages and locations (with exclusions), and whether the advertiser used Audience, Company, Job, Education, Demographic or Member Interests targeting.
  • 🔔 Monitoring: give a search a name and schedule it. Each run returns only ads you have not seen yet, so you pay only for new ones.

Use cases

  • B2B competitor research: see every ad a competitor runs on LinkedIn, which formats they use and how long each ad has been running.
  • Ad copy swipe files: export hundreds of B2B hooks, headlines, CTAs and offers (webinars, reports, demos) into a spreadsheet.
  • Campaign intelligence: read UTM parameters in landing URLs to learn campaign names, regions and funnels.
  • Targeting insights: find out which countries a competitor targets and whether they target by job title, company or audience lists.
  • Agency pitches and audits: show a prospect what their competitors run and which agency pays for it.
  • Market monitoring: get a daily feed of new ads for a keyword or a list of competitors.

Input

FieldDescription
keywordsOne search per line, for example CRM or cybersecurity
companiesOne advertiser per line: a company name (HubSpot), a numeric LinkedIn company ID (1879) or a company page URL (https://www.linkedin.com/company/1035)
adLibraryUrlsAny https://www.linkedin.com/ad-library/search?... URL copied from your browser (its filters are used), or ad pages https://www.linkedin.com/ad-library/detail/<id>
countriesTwo-letter codes of the countries where the ads were shown (US, DE, GB…). Empty = all
dateOptionAll time, last 30 days, this month, this year or last year
startDate / endDateCustom date range (LinkedIn allows the last 12 months)
includeAdDetailsOpen each ad page to add full text, CTA, landing page, all media, Paid by, run dates, impressions and targeting (on by default)
monitorNameName a search to get only new ads on each run (see Monitoring new ads)
maxAdsPerQueryLimit per input line (0 = everything)
maxConcurrencyHow many queries run in parallel
{
"keywords": ["CRM"],
"companies": ["HubSpot", "https://www.linkedin.com/company/1035"],
"countries": ["US", "GB"],
"dateOption": "last-30-days",
"maxAdsPerQuery": 200
}

Every line of keywords, companies and adLibraryUrls is a separate search; countries and dates apply to all of them. When you paste an Ad Library search URL, its own filters (keyword, advertiser, payer, countries, dates, impressions) are used as they are, so you can set up a search on the website and copy the address bar.

A company name matches the advertiser the way the LinkedIn website does, so it also returns Thought Leader ads that the company's employees promote. Use the numeric company ID for an exact match: it is the number in the advertiser link of any ad (linkedin.com/company/1879).

Output example

{
"query": "HubSpot",
"queryType": "company",
"adId": "1578081813",
"adLibraryUrl": "https://www.linkedin.com/ad-library/detail/1578081813",
"adFormat": "SPONSORED_STATUS_UPDATE",
"adFormatLabel": "Single Image Ad",
"advertiserName": "HubSpot",
"advertiserCompanyId": "68529",
"advertiserUrl": "https://www.linkedin.com/company/68529",
"text": "Alison Hammond on making people feel seen, and why she never walks in with an agenda. For anyone who sells or presents. GROW Europe, 17 November.",
"textTruncated": false,
"headline": "GROW Europe 2026 · London · Register Today",
"ctaText": "Register",
"landingUrl": "https://www.hubspot.com/grow-europe?utm_source=linkedin&utm_medium=paid&utm_campaign=Marketing_Registrations_EN_EMEA_VARIOUS_GROW-Europe-2026_prospecting...",
"imageUrls": ["https://media.licdn.com/dms/image/v2/D4D10AQFlO348Uk5PcA/image-shrink_1280/..."],
"videoUrls": [],
"carouselCards": [],
"adVersions": 1,
"paidBy": "HubSpot, Inc.",
"startDate": "2026-10-13",
"endDate": "2026-10-16",
"daysRunning": 4,
"totalImpressions": "< 1k",
"impressionsMin": 0,
"impressionsMax": 1000,
"impressionsByCountry": [{"country": "United Kingdom", "share": 100, "shareLabel": "100%"}],
"targetingLanguages": ["English"],
"targetingLocations": ["Ireland", "United Kingdom"],
"targetingLocationsExcluded": [],
"targetingParameters": {
"Audience": {"targeted": false, "excluded": true},
"Company": {"targeted": true, "excluded": true},
"Job": {"targeted": true, "excluded": false},
"Demographic": {"targeted": false, "excluded": false},
"Education": {"targeted": false, "excluded": false},
"Member Interests and Traits": {"targeted": false, "excluded": false}
},
"targetedCategories": ["Company", "Job"],
"excludedCategories": ["Audience", "Company"]
}

Video ads add videoUrls (highest quality first) and videoThumbnailUrl; carousel ads add carouselCards with a title and image per card; Document Ads add documentTitle, documentPageCount and documentPageImageUrls; Message Ads add messageSender.

Run dates, impressions and targeting

LinkedIn publishes run dates, impressions and targeting for ads shown in the EU (Digital Services Act). Ads that ran only outside the EU have the ad itself and Paid for by, but no dates, impressions or targeting, and you are not charged the detail fee for them. With includeAdDetails off you get the list of ads from the search results only: the text is cut after about 150 characters (textTruncated: true) and there is no landing page, but it is the cheapest option.

Monitoring new ads

Track competitors without paying twice for the same ads:

  1. Fill in keywords, companies and filters as usual and set monitorName, for example competitors-us.
  2. Save the input as a Task and add an Apify Schedule (daily or weekly).
  3. The first run returns every matching ad. Each later run with the same monitorName returns only ads that earlier runs have not returned. Old ads are skipped and not charged.

Connect a webhook or the Slack / email integration to the Task to get new ads delivered. The list of seen ads is stored in the linkedin-ads-monitor key-value store in your account. To start over, use a new monitorName or delete its record from that store.

Pricing

Pay per result: $1.50 per 1,000 ads. No extra fee per run beyond the Apify default.

Run dates, impressions and targeting (includeAdDetails): +$1.50 per 1,000 ads that have them. Ads without this data are not charged the fee, so a full ad record costs at most $3.00 per 1,000.

Set a maximum cost per run in the Apify Console, and the scraper stops cleanly when it is reached.

Tips

  • Keep Apify Proxy with the Residential group, which is the default. Traffic is small, about 20 MB per 1,000 ads with details.
  • LinkedIn returns 24 ads per page. Big advertisers have thousands of ads: narrow with countries and dates, or set maxAdsPerQuery.
  • Custom dates work only within the last 12 months. For older ads use dateOption "Last year" or leave the dates empty (all time).
  • In monitor mode maxAdsPerQuery counts all ads checked, new and old. Leave it at 0 or set it above the advertiser's total so new ads are not missed.
  • To get a single ad, paste its link: https://www.linkedin.com/ad-library/detail/<ad ID>.

Integrations, API and MCP

REST API. Run the Actor and get the results in one call (replace YOUR_APIFY_TOKEN; it's in Console → Settings → API & Integrations):

curl -X POST "https://api.apify.com/v2/acts/wakeful_outhouse~linkedin-ad-library-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"companies": ["HubSpot"], "countries": ["US"], "maxAdsPerQuery": 50}'

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("wakeful_outhouse/linkedin-ad-library-scraper").call(run_input={"companies": ["HubSpot"], "countries": ["US"], "maxAdsPerQuery": 50})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

AI agents (MCP). Give Claude, Cursor or any MCP client this Actor as a tool through the Apify MCP server:

  • hosted: https://mcp.apify.com?tools=wakeful_outhouse/linkedin-ad-library-scraper
  • local: npx -y @apify/actors-mcp-server --actors wakeful_outhouse/linkedin-ad-library-scraper (set APIFY_TOKEN)

No-code. Use the Apify integrations for Make, Zapier, n8n, Google Sheets, Slack and webhooks: for example, run the Actor on a Schedule and send each new competitor ad to a Slack channel or append the ad copy to a Google Sheet. All formats are available as JSON, CSV, Excel and HTML from the dataset.

More ad-intelligence tools

Same author, same data format, same pay-per-result pricing:

  • Facebook Ads Library Scraper — ad text, media, landing pages, run dates and platforms from the Meta Ad Library, plus EU reach, demographics and targeting.
  • Google Ads Transparency Scraper — ad copy, YouTube IDs, impressions and regions from the Google Ads Transparency Center.
  • Google Trends Scraper — interest over time, interest by region, related queries and today's trending searches by country, to see which keywords are rising.

All tools: https://apify.com/wakeful_outhouse

FAQ

Is it legal? The LinkedIn Ad Library is a public database LinkedIn publishes so anyone can inspect ads. The scraper collects only what the website shows publicly without logging in. You are responsible for how you use the data.

Why are dates, impressions and targeting empty for some ads? LinkedIn publishes them only for ads shown in the EU. Message Ads and Document Ads often have none either. You are not charged the detail fee for such ads.

Why does a company name return ads from other advertisers? LinkedIn matches the advertiser name and also shows Thought Leader ads promoted by the company's employees. Use the numeric company ID for an exact match.

Why does the landing page URL contain UTM parameters? That is the real URL the ad links to. Only LinkedIn's own trk tracking parameter is removed.

Something broke? Open an issue on the Issues tab with the run link. Fixes usually ship within a day.