# Scrape a LinkedIn Ad Library Search URL

**Use case:** 

Filter the Ad Library on linkedin.com however you like, copy the URL out of the address bar and paste it in. The filters are read off the query string and applied to the search, so there is no form to fill in. Single-ad links work in the same field and are fetched in full, and the two kinds can be mixed in one run. Any parameter that is not recognised is named in the log, not dropped silently.

## Input

```json
{
  "companies": [
    "microsoft"
  ],
  "keywords": [],
  "companyIds": [],
  "countries": [],
  "maxResults": 25,
  "maxResultsPerQuery": 0,
  "adTypes": [],
  "fetchAdDetails": false,
  "enrichAdvertisers": false,
  "aiModel": "claude-haiku-4-5",
  "concurrency": 5,
  "searchUrls": [
    "https://www.linkedin.com/ad-library/search?accountOwner=Figma"
  ],
  "adUrls": []
}
```

## Output

```json
{
  "adLibraryUrl": {
    "label": "Ad Library URL",
    "format": "string"
  },
  "advertiser": {
    "label": "Advertiser",
    "format": "string"
  },
  "advertiserLogo": {
    "label": "Advertiser logo",
    "format": "string"
  },
  "headline": {
    "label": "Headline",
    "format": "string"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "cta": {
    "label": "CTA",
    "format": "string"
  },
  "destinationUrl": {
    "label": "Destination URL",
    "format": "string"
  },
  "landingPage": {
    "label": "Landing page",
    "format": "string"
  },
  "adType": {
    "label": "Ad type",
    "format": "string"
  },
  "creativeType": {
    "label": "Creative type",
    "format": "string"
  },
  "image": {
    "label": "Image",
    "format": "string"
  },
  "video": {
    "label": "Video",
    "format": "string"
  },
  "organicVideo": {
    "label": "Organic video",
    "format": "string"
  },
  "carouselImages": {
    "label": "Carousel images",
    "format": "array"
  },
  "sponsoredMessageSender": {
    "label": "Message sender",
    "format": "string"
  },
  "sponsoredMessageSenderAvatar": {
    "label": "Message sender avatar",
    "format": "string"
  },
  "sponsoredMessageButtons": {
    "label": "Message buttons",
    "format": "array"
  },
  "startDate": {
    "label": "Start date",
    "format": "string"
  },
  "endDate": {
    "label": "End date",
    "format": "string"
  },
  "daysRunning": {
    "label": "Days running",
    "format": "integer"
  },
  "adDuration": {
    "label": "Duration",
    "format": "string"
  },
  "totalImpressions": {
    "label": "Impressions",
    "format": "string"
  },
  "impressionsByCountry": {
    "label": "Impressions by country",
    "format": "array"
  },
  "targetingLocation": {
    "label": "Target: location",
    "format": "string"
  },
  "targetingLanguage": {
    "label": "Target: language",
    "format": "string"
  },
  "advertiserLinkedinPage": {
    "label": "Advertiser page",
    "format": "string"
  },
  "poster": {
    "label": "Poster",
    "format": "string"
  },
  "posterTitle": {
    "label": "Poster title",
    "format": "string"
  },
  "promotedBy": {
    "label": "Promoted by",
    "format": "string"
  },
  "id": {
    "label": "Ad ID",
    "format": "string"
  },
  "_searchedByField": {
    "label": "Searched by (field)",
    "format": "string"
  },
  "_searchedByValue": {
    "label": "Searched by (value)",
    "format": "string"
  },
  "_scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [LinkedIn Ad Library Scraper [NO COOKIES] ✅](https://apify.com/unseenuser/linkedin-ads.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/unseenuser/linkedin-ads.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/unseenuser/linkedin-ads.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`).
