Linkedin ads scraper avatar
Linkedin ads scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Linkedin ads scraper

Linkedin ads scraper

Extract ads details from LinkedIn Ad Library. Gain access to ad details, ad copy, media URL, call-to-action buttons and more.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

unli

unli

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

2

Monthly active users

a month ago

Last modified

Share

LinkedIn Ads Library Scraper

Extract ads from LinkedIn Ad Library with ease. Get comprehensive ad data including advertiser details, ad copy, media URLs, and more.

🔎 What is the LinkedIn Ads Library Scraper?

A simple and powerful tool that allows you to extract data from LinkedIn's Ad Library. This scraper provides access to all publicly available ad information without requiring authentication.

📊 What LinkedIn ads data can I extract?

All ad formats are supported by this LinkedIn Ad Library scraper, including:

  • Single image ads
  • Carousel ads
  • Video ads
  • Document ads
  • Sponsored content

Extracted Data Points:

  • Ad ID - Unique identifier for each ad
  • Ad Detail URL - Direct link to the ad's detail page
  • Advertiser Information
    • Advertiser name
    • Advertiser logo URL
  • Ad Content
    • Ad type (SPONSORED_STATUS_UPDATE, SPONSORED_UPDATE_CAROUSEL, etc.)
    • Creative format (Single Image Ad, Carousel Ad, Video Ad, Document Ad)
    • Ad copy/body text
    • Headline
    • Truncation status (whether full text is available)
  • Media Assets
    • Media type (image, video, carousel, document)
    • Media URLs
    • Carousel items (for carousel ads) with individual images and titles
  • Call-to-Action
    • CTA text

📖 How to use

⬇️ Input

The input for the LinkedIn Ads Library Scraper requires a LinkedIn Ad Library search URL:

{
"searchUrl": "https://www.linkedin.com/ad-library/search?accountOwner=nvidia&countries=BR&dateOption=last-30-days",
"maxAds": 100,
"includeDetailPages": false
}

Input Parameters:

  • searchUrl (string, optional) - LinkedIn Ad Library search URL

    • Default: https://www.linkedin.com/ad-library/search?accountOwner=nvidia&countries=BR&dateOption=last-30-days
  • maxAds (integer, optional) - Maximum number of ads to scrape

    • Default: 100
    • Range: 1-1000
  • includeDetailPages (boolean, optional) - Whether to visit individual ad detail pages to get complete ad copy

    • Default: false
    • Note: Setting this to true will make scraping slower but provides complete, non-truncated ad text

How to Build Search URLs

Visit LinkedIn Ad Library and use the search filters:

  1. Search by company - Enter company name in "Search by company or advertiser name"
  2. Filter by country - Select target countries
  3. Filter by date - Choose date range (Last 30 days, This month, This year, etc.)
  4. Copy the URL from your browser

Example URLs:

https://www.linkedin.com/ad-library/search?accountOwner=nvidia&countries=US&dateOption=last-30-days
https://www.linkedin.com/ad-library/search?accountOwner=apple&countries=GB,FR,DE&dateOption=current-year
https://www.linkedin.com/ad-library/search?accountOwner=microsoft&dateOption=last-year

⬆️ Output

The extracted ad data is stored in a dataset, accessible in the Storage tab. It's available in JSON, JSONL, Excel, HTML, CSV, or XML formats.

Example Output:

[
{
"ad_id": "971107993",
"ad_detail_url": "https://linkedin.com/ad-library/detail/971107993",
"advertiser_name": "NVIDIA Brasil",
"advertiser_logo_url": "https://media.licdn.com/dms/image/v2/D560BAQEQxQYINJmKww/company-logo_100_100/...",
"ad_type": "SPONSORED_STATUS_UPDATE",
"creative_format": "Single Image Ad",
"ad_copy": "Liderança se mede em decisões que antecipam o amanhã...",
"ad_copy_truncated": true,
"headline": "Acelere o mundo",
"media_type": "image",
"media_urls": [
"https://media.licdn.com/dms/image/v2/D4D10AQHLsFjBG9z5fg/image-shrink_1280/..."
],
"carousel_items": [],
"cta_text": "View details"
},
{
"ad_id": "969936153",
"ad_detail_url": "https://linkedin.com/ad-library/detail/969936153",
"advertiser_name": "NVIDIA Brasil",
"advertiser_logo_url": "https://media.licdn.com/dms/image/v2/D560BAQEQxQYINJmKww/company-logo_100_100/...",
"ad_type": "SPONSORED_UPDATE_CAROUSEL",
"creative_format": "Carousel Ad",
"ad_copy": "Os Grandes Modelos de Linguagem (LLMs) estão redefinindo...",
"ad_copy_truncated": true,
"headline": null,
"media_type": "carousel",
"media_urls": [],
"carousel_items": [
{
"image_url": "https://media.licdn.com/dms/image/v2/D4D10AQGJddLzedJ6ZA/...",
"title": "Guia completo sobre LLMs"
},
{
"image_url": "https://media.licdn.com/dms/image/v2/D4D10AQEQqT0MNjrDUw/...",
"title": "Entenda do conceito à aplicação real"
}
],
"cta_text": "View details"
}
]

♾️ How many ads can you scrape?

This scraper automatically handles pagination and will continue scraping until it reaches:

  • The maximum number of ads specified in maxAds parameter, OR
  • The end of available results

The scraper efficiently processes multiple pages using LinkedIn's pagination tokens.

🚀 Features

  • No authentication required - Works with public LinkedIn Ad Library
  • All ad formats supported - Images, videos, carousels, documents
  • Automatic pagination - Seamlessly handles multiple pages
  • Proxy support - Built-in Apify proxy support
  • Flexible output - Export to JSON, CSV, Excel, and more
  • Optional detail scraping - Get complete ad copy by visiting detail pages

💡 Use Cases

  • Competitive Analysis - Monitor competitors' ad strategies
  • Market Research - Analyze advertising trends in your industry
  • Ad Creative Inspiration - Discover successful ad formats and messaging
  • Lead Generation - Identify companies actively advertising
  • Campaign Planning - Research ad formats and messaging styles

⚙️ Technical Details

Technologies Used:

  • Crawlee - Modern web scraping framework
  • Cheerio - Fast HTML parsing
  • Apify SDK - Actor infrastructure

Performance:

  • Efficient scraping with minimal resource usage
  • Automatic retry on failures
  • Proxy rotation to avoid rate limiting

Scraping publicly available LinkedIn Ads Library data is legal as long as you:

  • Only access publicly available information
  • Respect LinkedIn's terms of service
  • Comply with data protection regulations (GDPR, CCPA, etc.)
  • Don't scrape personal data without legitimate reason

🔗 Integration

This scraper integrates seamlessly with:

  • Make (Integromat) - Automate workflows
  • Zapier - Connect with 5,000+ apps
  • n8n - Open-source workflow automation
  • Custom APIs - Use Apify API for custom integrations

📝 Example Use Cases

Monitor Competitor Ads

{
"searchUrl": "https://www.linkedin.com/ad-library/search?accountOwner=competitor-name&countries=US&dateOption=last-30-days",
"maxAds": 50
}

Get Complete Ad Copy

{
"searchUrl": "https://www.linkedin.com/ad-library/search?accountOwner=company-name&countries=GB&dateOption=current-year",
"maxAds": 100,
"includeDetailPages": true
}

Bulk Export for Analysis

{
"searchUrl": "https://www.linkedin.com/ad-library/search?accountOwner=brand&dateOption=last-year",
"maxAds": 1000,
"includeDetailPages": false
}
  • Facebook Ads Library Scraper - Extract ads from Facebook Ad Library
  • Google Ads Transparency Center Scraper - Scrape Google political ads
  • TikTok Ads Library Scraper - Extract TikTok commercial content

📄 License

This project is licensed under the Apache-2.0 License.

Happy Scraping! 🚀

If you find this scraper useful, please consider giving it a ⭐ star!