# LinkedIn Ads Library Scraper

> LinkedIn Ads Library Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Scrapes structured ad data from LinkedIn's public Ad Library, returning ad content, advertiser info, and targeting metadata for given search or company URLs.

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/linkedin-ads?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/linkedin-ads-library-scraper-cff5149e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3Q3-aJA2ndcY_5NszEGv5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability linkedin-ads-library-scraper-cff5149e -d '<json body>'
```

Example prompt: Pull up to 50 LinkedIn ads for Salesforce from the LinkedIn Ad Library — I want full details including ad body, payer, impressions, targeting info, and media links. Use their company page URL as the starting point.

## When to prefer this

Choose this endpoint when you need structured, machine-readable LinkedIn ad data at scale without building your own scraper or maintaining LinkedIn session cookies. It is ideal for competitive intelligence workflows, ad creative analysis, and compliance monitoring. Prefer it over manual browsing when you need to collect dozens to hundreds of ads programmatically. Note that it relies on the public LinkedIn Ad Library, so only publicly disclosed ads are accessible.

## Known failure modes

- LinkedIn Ad Library blocks continuation endpoint — fewer results than resultsLimit returned
- Invalid or private company URL provided — returns empty items array
- LinkedIn anti-bot measures temporarily block scraping — empty or partial results
- Malformed startUrls input — request fails validation
- maxItems cap reached before all URLs are processed — truncated results

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of collected ads and an array of ad items. Each item includes ad ID, body text, ad URL, click URL, availability window, advertiser name, advertiser logo URL, advertiser profile URL, payer info, impression counts, targeting details, and media links. Fields may be null when not available from the public source or when skipDetails is enabled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxItems": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Maximum ads across all input URLs. Set to 0 for no total cap."
  },
  "startUrls": {
   "type": "array",
   "description": "Public Ad Library search URLs with advertiser, payer, keyword, date, or country filters. Public company URLs are also accepted and converted to advertiser searches."
  },
  "skipDetails": {
   "type": "boolean",
   "default": false,
   "description": "Collect search cards only. Runs faster, but dates, payer, impressions, targeting, full body, and media links may be absent."
  },
  "resultsLimit": {
   "type": "integer",
   "default": 100,
   "minimum": 1,
   "description": "Maximum ads to collect from each input URL. The public source may return fewer results when its continuation endpoint blocks requests."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "adId": null,
    "body": null,
    "adUrl": null,
    "clickUrl": null,
    "availability": null,
    "advertiserUrl": null,
    "advertiserLogo": null,
    "advertiserName": null
   }
  ],
  "product": "linkedin-ads"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/linkedin-ads-library-scraper-cff5149e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
