# Find AI Ads in the LinkedIn Ad Library

**Use case:** 

Find public LinkedIn ads matching AI and review their advertiser, headline, body copy, call to action, media URLs, and landing URL. For competitor research, change searchTerms to another keyword or add more keywords. Full ad details are enabled for up to 20 results.

## Input

```json
{
  "mode": "search",
  "searchTerms": [
    "AI"
  ],
  "advertisers": [
    "Microsoft",
    "Anthropic"
  ],
  "companyIds": [
    "1035",
    "3608"
  ],
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft"
  ],
  "payer": [
    "Microsoft Corporation"
  ],
  "advertiserMatch": "startsWith",
  "countries": [
    "US",
    "DE"
  ],
  "dateOption": "last-30-days",
  "sortOrder": "newest",
  "impressionsMinUnit": "none",
  "impressionsMaxUnit": "none",
  "targetingIncluded": [
    "LANGUAGE",
    "JOB"
  ],
  "targetingExcluded": [
    "COMPANY"
  ],
  "includeDetails": true,
  "decodeShortLinks": false,
  "adIds": [
    "1611810664"
  ],
  "directUrls": [
    {
      "url": "https://www.linkedin.com/ad-library/search?keyword=AI&countries=US"
    }
  ],
  "maxItems": 20
}
```

## Output

```json
{
  "advertiser_name": {
    "label": "Advertiser",
    "format": "text"
  },
  "ad_format": {
    "label": "Format",
    "format": "text"
  },
  "headline": {
    "label": "Headline",
    "format": "text"
  },
  "body_text_full": {
    "label": "Full copy",
    "format": "text"
  },
  "image_urls": {
    "label": "Images",
    "format": "text"
  },
  "video_urls": {
    "label": "Videos",
    "format": "text"
  },
  "video_poster_url": {
    "label": "Poster",
    "format": "image"
  },
  "landing_url": {
    "label": "Landing",
    "format": "link"
  },
  "ad_url": {
    "label": "Ad URL",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The LinkedIn Ad Library Keyword & Advertiser Scraper Actor is ready to run with the inputs already set for "Find AI Ads in the LinkedIn Ad Library". [Sign up or log in](https://console.apify.com/create-task-from-example/SiruSRCMbPngxUHA8) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find AI Ads in the LinkedIn Ad Library" task

The LinkedIn Ad Library Keyword & Advertiser Scraper Actor will start running based on the input automatically. You can also change all the input fields, like mode, keywords, and more, to match your specific use case.

### 3. Receive the "Find AI Ads in the LinkedIn Ad Library" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as advertiser, format, headline, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find AI Ads in the LinkedIn Ad Library" task via API](https://apify.com/nimbryxo-studio/linkedin-ad-library-keyword-and-advertiser-scraper.md).

## FAQ

### How do I find AI software ads on LinkedIn for competitor research?

The LinkedIn AI ads task searches public LinkedIn ads for the keyword AI and returns up to 20 results. Change the search phrase in your copied task to research other topics.

### What data does the LinkedIn AI ads task return?

The LinkedIn AI ads task can return advertiser name, ad format, headline, full body text, image and video URLs, video poster URL, landing URL, and ad URL.

### Can I get the full copy and call to action for LinkedIn ads?

With details enabled, the LinkedIn AI ads task opens each ad page to collect full copy, call to action, landing URL, video, payer, and available EU transparency data.

### How many LinkedIn ads can this search return?

The LinkedIn AI ads task is capped at 20 results for this run. The task accepts up to 4,800 results per run, with a maximum of 4,800 ads per search.

### Can I export LinkedIn ad results to CSV or Excel?

Results from the LinkedIn AI ads task land in a dataset that you can download as CSV, Excel, JSON, XML, RSS, or an HTML table, or read through the Apify API.

### How much does it cost to scrape 20 LinkedIn ads?

For the LinkedIn AI ads task, the result charge is at most $0.02 on the Free plan for 20 results, plus the Actor start event and Apify platform compute usage.

### Can I schedule LinkedIn ad searches or run them through an API?

You can schedule the LinkedIn AI ads task with Apify Schedules, run it through the Apify API, or connect it through integrations such as Zapier, Make, and n8n.

## About this Actor

This example demonstrates how to use [LinkedIn Ad Library Keyword & Advertiser Scraper](https://apify.com/nimbryxo-studio/linkedin-ad-library-keyword-and-advertiser-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nimbryxo-studio/linkedin-ad-library-keyword-and-advertiser-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nimbryxo-studio/linkedin-ad-library-keyword-and-advertiser-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
