Linkedin Ads Scraper avatar

Linkedin Ads Scraper

Pricing

$19.99/month + usage

Go to Apify Store
Linkedin Ads Scraper

Linkedin Ads Scraper

🔎 LinkedIn Ads Scraper (linkedin-ads-scraper) extracts LinkedIn ad data at scale—creatives, copy, CTAs, dates, landing URLs, advertisers & industries. 🚀 Ideal for competitive analysis, market research and ad inspiration. Fast, reliable, API-ready.

Pricing

$19.99/month + usage

Rating

0.0

(0)

Developer

ScrapeLabs

ScrapeLabs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

22 days ago

Last modified

Share

Linkedin Ads Scraper

The Linkedin Ads Scraper is a Python-based Apify actor that extracts public ad data from the LinkedIn Ads Library at scale. It helps you scrape LinkedIn sponsored content for competitive research, build a LinkedIn ads data extractor pipeline for analysis, and maintain a LinkedIn ads monitoring tool without manual effort. Ideal for marketers, developers, data analysts, and researchers, this LinkedIn ad scraper delivers clean, structured outputs you can use to analyze ad creatives, compare competitors, and power downstream workflows.

What data / output can you get?

This LinkedIn ads scraper tool collects structured fields from each ad and streams them to the Apify dataset in real time. Below are the exact output fields and examples.

Data typeDescriptionExample value
adIdUnique LinkedIn ad identifier"877002663"
adLibraryUrlDirect link to the ad’s detail page"https://www.linkedin.com/ad-library/detail/877002663"
advertiserLogoURL of the advertiser’s logo (if found)"https://media.licdn.com/.../company-logo_100_100/..."
imageUrlsArray of detected creative image URLs (excludes logos)["https://media.licdn.com/.../creative1.jpg", "https://media.licdn.com/.../creative2.jpg"]
ctasArray of detected call-to-action labels from the ad["Learn more", "Sign up"]
advertiserNameAdvertiser display name extracted from the page"Microsoft"
advertiserUrlLink to the advertiser’s LinkedIn company profile (if found)"https://www.linkedin.com/company/1035"
formatDetected ad format: VIDEO, CAROUSEL, DOCUMENT, or MESSAGE"VIDEO"
paidBy“Paid for by” entity (if present)"Microsoft Corp"
bodyExtracted ad copy/body text (truncated if very long)"Ready to take your AI-powered startup to the next level? Join us..."
startUrlSource search URL used to discover the ad"https://www.linkedin.com/ad-library/search?accountOwner=microsoft&countries=US&dateOption=last-30-days"

Notes:

  • Some fields may be empty if the information isn’t present on the page (for example, advertiserLogo, imageUrls, paidBy). If the advertiser name can’t be reliably detected, it may appear as “Unknown Company.”
  • Data is stored in your Apify dataset for easy download and API access.

Key features

  • 🔎 Multiple search strategies for maximum coverage
    The actor tries several URL strategies per input (including empty date, last-30-days, this-month, and a US fallback) to find as many ads as possible, improving recall across regions and filters.

  • 🧭 Smart pagination & scrolling
    Uses headless Chrome with intelligent scrolling and “load more” interactions to capture large result sets from LinkedIn’s ad library pages.

  • 🧵 Parallel detail fetching
    Collects ad IDs from search and fetches detail pages concurrently to speed up runs without sacrificing stability.

  • 🛡️ Optional Apify Proxy support
    Built-in proxy handling via proxyConfiguration. Enable Apify Proxy if you encounter blocks or need residential IPs.

  • 🖼️ Creative & CTA extraction
    Extracts advertiser logos, creative image URLs (filtered to avoid logos), and call-to-action labels from buttons and links.

  • 🧰 Reliable Python + Selenium stack
    Implemented in Python with cloudscraper, BeautifulSoup, and Selenium. Falls back to HTTP-only mode if a browser cannot initialize, so your run can still succeed.

  • ⚡ Real-time dataset streaming
    As each ad is processed, it’s pushed immediately to the Apify dataset, enabling near-instant consumption by your downstream tools.

How to use Linkedin Ads Scraper - step by step

  1. Create or log in to your Apify account.
  2. Open the “Linkedin Ads Scraper” actor in the Apify Store.
  3. Choose how to search:
  4. Set filters and limits:
    • countries: choose the country to filter results (default: US).
    • dateOption: pick the time range (default: last-30-days).
    • maxItems: cap the total ads to collect (1–1000).
  5. Configure proxy (optional):
    • proxyConfiguration.useApifyProxy: enable if you hit blocks or want residential IPs.
  6. Start the run:
    • Click “Start.” The actor will try multiple strategies, paginate through results, and fetch ad details in parallel.
  7. Download results:
    • Open the run’s Dataset to view and download your results. You can consume them via the Apify web UI or API.

Pro Tip: For ongoing monitoring, schedule the actor and connect its dataset to your analytics stack. This turns the solution into a lightweight LinkedIn ads spy tool for continuous insights.

Use cases

Use case nameDescription
Competitive ad intelligenceTrack competitor campaigns with a LinkedIn competitor ads scraper and review their ad creatives and CTAs over time.
Creative research & inspirationBuild a LinkedIn ad creatives scraper dataset to study messaging, formats, and creative trends.
Campaign monitoring by regionScrape LinkedIn campaign ads with the countries filter to monitor region-specific sponsored posts.
Performance audits & QAUse a LinkedIn sponsored posts scraper to verify live ads against brand and compliance guidelines.
Data pipeline for analyticsRun the actor on a schedule and consume the dataset via API for BI dashboards and modeling.
Academic & market researchCollect structured samples at scale to analyze industry narratives and creative strategies over time.
Product marketing insightsUse a LinkedIn advertising scraper to see how similar products position themselves and prompt-test messaging.

Why choose Linkedin Ads Scraper?

Built for precision, automation, and reliability, this LinkedIn ads scraping software delivers structured outputs from public LinkedIn Ads Library pages without manual effort.

  • ✅ Accurate extraction of creatives, CTAs, and body text using resilient selectors and filters.
  • ⚙️ Automation-first design with parallel fetching, smart pagination, and strategy fallback.
  • 🛡️ Stable infrastructure with optional Apify Proxy for tougher geos and higher volumes.
  • 🧪 Production-ready Python stack (cloudscraper + BeautifulSoup + Selenium) trusted for web automation.
  • 🔄 Real-time output to the Apify dataset for fast iteration and downstream pipelines.
  • 🚫 No login flow: designed to scrape public ad-library pages only—no cookies or personal data.

In short, this LinkedIn ad scraper outperforms browser extensions and unstable tools by combining a robust headless browser flow with safe HTTP fallbacks and clean, consistent outputs.

Yes—when used responsibly. This actor targets publicly available pages in the LinkedIn Ads Library and does not access private profiles or authenticated data.

Guidelines:

  • Only extract public ad-library content.
  • Respect LinkedIn’s Terms of Service and applicable laws (e.g., GDPR, CCPA).
  • Avoid collecting personal or non-public data.
  • Consult your legal team for edge cases and jurisdiction-specific rules.

Input parameters & output format

Example JSON input

{
"input": ["microsoft", "openai"],
"countries": "US",
"dateOption": "last-30-days",
"maxItems": 10,
"proxyConfiguration": {
"useApifyProxy": false
}
}

Parameters

  • input (array)
    Description: Add company names, LinkedIn URLs, or keywords (e.g. google, microsoft). If you fill this, Start URLs below are ignored.
    Default: none
    Required: No

  • startUrls (array)
    Description: LinkedIn company URLs or keywords. Used when 'Companies or keywords' above is empty.
    Default: none
    Required: No

  • countries (string)
    Description: Which country's ads to show.
    Default: US
    Required: No

  • dateOption (string)
    Description: Time range for ads. We also try last 30 days and this month for better coverage.
    Default: last-30-days
    Required: No

  • maxItems (integer)
    Description: Cap on total ads to scrape (1–1000).
    Default: 30
    Required: No

  • proxyConfiguration (object)
    Description: Turn on Apify Proxy here if you hit blocks or want residential IPs.
    Default: none
    Required: No

Example JSON output

[
{
"adId": "901224633",
"adLibraryUrl": "https://www.linkedin.com/ad-library/detail/901224633",
"advertiserLogo": "https://media.licdn.com/dms/image/v2/C4E0BAQHHuFOyFhV0Dg/company-logo_100_100/...",
"imageUrls": [
"https://media.licdn.com/dms/image/v2/C4E22AQH-example1/creative.jpg"
],
"ctas": ["Learn more", "Get started"],
"advertiserName": "Microsoft Dynamics 365 Business Central",
"advertiserUrl": "https://www.linkedin.com/company/91571669",
"format": "CAROUSEL",
"paidBy": "Transcends Marketing",
"body": "If you’re looking to grow your SMB impact, Dynamics 365 Business Central delivers more than just ERP...",
"startUrl": "https://www.linkedin.com/ad-library/search?accountOwner=microsoft&countries=US&dateOption=last-30-days"
},
{
"adId": "880280094",
"adLibraryUrl": "https://www.linkedin.com/ad-library/detail/880280094",
"advertiserLogo": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/...",
"imageUrls": [],
"ctas": ["Saiba mais"],
"advertiserName": "Microsoft",
"advertiserUrl": "https://www.linkedin.com/company/1035",
"format": "VIDEO",
"paidBy": "Global Mind USA LLC",
"body": "O Microsoft 365 Copilot lançou duas novidades que liberam capacidade estratégica...",
"startUrl": "https://www.linkedin.com/ad-library/search?accountOwner=microsoft&countries=US&dateOption=last-30-days"
}
]

Notes:

  • Fields like advertiserLogo, imageUrls, advertiserUrl, and paidBy may be empty if not present in the page markup.
  • advertiserName may appear as “Unknown Company” when the page doesn’t expose a reliable selector.
ToolTool
📄 LinkedIn Profile Post Scraper⚡ LinkedIn Profile Scraper (Cheapest + Fastest)
🏢 LinkedIn Company Profile Scraper📝 LinkedIn Post Scraper
📄 LinkedIn Company About Scraper👥 LinkedIn Company Employees Scraper
💼 LinkedIn Search Jobs Scraper📋 LinkedIn Jobs Scraper
📰 LinkedIn Company Post Scraper📧 LinkedIn Profile Email Scraper
✉️ LinkedIn Email Scraper📞 LinkedIn Phone Number Scraper
☎️ LinkedIn Profile Phone Number Scraper🔓 LinkedIn Open Profile Status
👍 LinkedIn Post Reactions Scraper📊 LinkedIn Profile and Company Posts Scraper

FAQ

Does the Linkedin Ads Scraper require login or cookies?

No. The actor is designed to extract public LinkedIn Ads Library pages and does not include any login flow. It uses a headless browser and HTTP requests to access public content only.

Can I search by company name, URL, or keyword?

Yes. Use the input array for company names, LinkedIn URLs, or keywords. If input is empty, you can provide startUrls as an alternative.

Which ad formats are detected?

The actor detects VIDEO, CAROUSEL, DOCUMENT, and MESSAGE formats based on the ad detail page structure.

How many ads can I collect per run?

You control this with maxItems (1–1000). The scraper uses smart pagination and multiple strategies to find ad IDs, then fetches details in parallel.

Does it support proxies or residential IPs?

Yes. Set proxyConfiguration.useApifyProxy to true to route traffic via Apify Proxy. This helps with stability and geo-targeting.

Is there an API or Python integration?

Yes. This is an Apify actor written in Python and can be triggered via the Apify API. You can integrate it into pipelines as a LinkedIn ads scraper Python component.

What data fields does it return?

See the Output Format section for the exact JSON schema: adId, adLibraryUrl, advertiserLogo, imageUrls, ctas, advertiserName, advertiserUrl, format, paidBy, body, and startUrl.

Yes, when done responsibly. The actor targets public ad-library pages. Always respect LinkedIn’s terms and applicable data regulations, and avoid private or personal data.

Closing CTA / Final thoughts

The Linkedin Ads Scraper is built to turn public LinkedIn Ads Library pages into structured, analysis-ready datasets. With multi-strategy discovery, smart pagination, parallel fetching, and optional proxy support, it helps marketers, analysts, and developers collect high-quality ad creatives and copy at scale. Use it for competitor research, creative benchmarking, or scheduled monitoring, and integrate via the Apify API for an automated pipeline. Start extracting smarter insights from LinkedIn sponsored content today.