# LinkedIn Ad Library — Search Ads

Get LinkedIn search data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as company, companyId, countries, and retrieve structured data including identifier, returned ad duration field, returned ad type field, returned advertiser field, and returned advertiser logo field for content research and account lookup, and integration reference.

Documentation: https://openany.si/linkedin/linkedin-scrapecreators-search/b318bb72-b179-4463-9eb7-ed3a34c444ae/
API ID: b318bb72-b179-4463-9eb7-ed3a34c444ae
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/linkedin/ads/search
Page update time: 2026-12-03T02:50:45.490Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:44.801Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## LinkedIn Ad Library — Search Ads API

Search for the LinkedIn Ad Library by company name, keyword, or companyId with optional country and date filters. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `ads[].id` | Identifier |
| `ads[].adDuration` | Returned ad duration field |
| `ads[].adType` | Returned ad type field |
| `ads[].advertiser` | Returned advertiser field |
| `ads[].advertiserLinkedinPage` | Returned advertiser linkedin page field |
| `ads[].advertiserLogo` | Returned advertiser logo field |
| `ads[].carouselImages` | Returned carousel images field |
| `ads[].creativeType` | Returned creative type field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LinkedIn Ad Library — Search Ads request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "company": {
          "type": "string",
          "description": "The company name to search for. 'Microsoft' for example"
        },
        "keyword": {
          "type": "string",
          "description": "The keyword to search for"
        },
        "companyId": {
          "type": "string",
          "description": "The company id to search for"
        },
        "countries": {
          "type": "string",
          "description": "Comma separated list of countries. Example: US,CA,MX"
        },
        "startDate": {
          "type": "string",
          "description": "Start date in YYYY-MM-DD format. Must be used with endDate and cannot be earlier than the date one year ago."
        },
        "endDate": {
          "type": "string",
          "description": "End date in YYYY-MM-DD format. Must be used with startDate and cannot be today or a future date."
        },
        "paginationToken": {
          "type": "string",
          "description": "Pagination token to paginate through results"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "ads": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "adDuration": {
            "type": "string"
          },
          "adType": {
            "type": "string"
          },
          "advertiser": {
            "type": "string"
          },
          "advertiserLinkedinPage": {
            "type": "string"
          },
          "advertiserLogo": {
            "type": "string"
          },
          "carouselImages": {
            "type": "array",
            "items": {}
          },
          "creativeType": {
            "type": "string"
          },
          "cta": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "destinationUrl": {
            "type": "null"
          },
          "endDate": {
            "type": "null"
          },
          "headline": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "image": {
            "type": "null"
          },
          "imageSources": {
            "type": "array",
            "items": {}
          },
          "impressionsByCountry": {
            "type": "array",
            "items": {}
          },
          "landingPage": {
            "type": "null"
          },
          "organicVideo": {
            "type": "string"
          },
          "poster": {
            "type": "string"
          },
          "posterTitle": {
            "type": "null"
          },
          "preRollAdvertiser": {
            "type": "null"
          },
          "preRollVideo": {
            "type": "null"
          },
          "preRollVideoSources": {
            "type": "array",
            "items": {}
          },
          "promotedBy": {
            "type": "null"
          },
          "sponsoredMessageButtons": {
            "type": "array",
            "items": {}
          },
          "sponsoredMessageSender": {
            "type": "null"
          },
          "sponsoredMessageSenderAvatar": {
            "type": "null"
          },
          "startDate": {
            "type": "null"
          },
          "targeting": {
            "type": "object",
            "properties": {}
          },
          "thumbnailSources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalImpressions": {
            "type": "null"
          },
          "url": {
            "type": "string"
          },
          "video": {
            "type": "string"
          },
          "videoSources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bitrate": {
                  "type": "integer"
                },
                "src": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "isLastPage": {
      "type": "boolean"
    },
    "paginationToken": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "totalAds": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/linkedin/ads/search?company=microsoft&companyId=157238&countries=US%2CCA%2CMX&endDate=2026-09-01&keyword=scraping&paginationToken=640547184-1743616612000&startDate=2026-01-01' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "ads": [
    {
      "adDuration": "",
      "adType": "Video Ad",
      "advertiser": "CodeAnt AI",
      "advertiserLinkedinPage": "https://www.linkedin.com/company/96582348",
      "advertiserLogo": "https://media.licdn.com/dms/image/v2/D560BAQGncbvGj9h-YA/company-logo_100_100/company-logo_100_100/0/1700642866542/codeant_ai_logo?e=1793836800&v=beta&t=m3Yqh1eMA4FSBoIhNZzLkOQO8FLl84sq6rMUXuYaqXA",
      "carouselImages": [],
      "creativeType": "SPONSORED_VIDEO",
      "cta": "Join",
      "description": "Offensive security for Insurance Brokers, TPAs, MGAs and Carriers.\n\nGet a full audit-grade NYDFS or SOC2 PDF report within 48 hours.",
      "destinationUrl": null,
      "endDate": null,
      "headline": "Meet us at Booth 3240",
      "id": "1629532086",
      "image": null,
      "imageSources": [],
      "impressionsByCountry": [],
      "landingPage": null,
      "organicVideo": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
      "poster": "CodeAnt AI",
      "posterTitle": null,
      "preRollAdvertiser": null,
      "preRollVideo": null,
      "preRollVideoSources": [],
      "promotedBy": null,
      "sponsoredMessageButtons": [],
      "sponsoredMessageSender": null,
      "sponsoredMessageSenderAvatar": null,
      "startDate": null,
      "targeting": {},
      "thumbnailSources": [
        "https://media.licdn.com/dms/image/v2/D5610AQHhFKchr0EgUA/videocover-high/B56aDdqz26GoBM-/0/1790425384196?e=2147483647&v=beta&t=f4890gDBvRXts6rJzik-j7iF8aDV6XOLTyaT10Bdkyg"
      ],
      "totalImpressions": null,
      "url": "https://www.linkedin.com/ad-library/detail/1629532086",
      "video": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
      "videoSources": [
        {
          "bitrate": 124294,
          "src": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
          "type": "video/mp4"
        }
      ]
    }
  ],
  "credits_charged": 1,
  "credits_remaining": 100,
  "isLastPage": false,
  "paginationToken": "1587449116-1788316404963",
  "success": true,
  "totalAds": 258
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Which pagination or result-size inputs are exposed?
countries is string; startDate is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- scrapecreators: https://openany.si/linkedin/linkedin-scrapecreators-search/b318bb72-b179-4463-9eb7-ed3a34c444ae/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
