# SocialFetch LinkedIn Ad Library Search

> SocialFetch LinkedIn Ad Library Search is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-15).

Search the LinkedIn Ad Library for ads by company name, keyword, or company ID, with optional date range and country filters.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/linkedin/ad-library/ads/search
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-linkedin-ad-library-search-8b6c833f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SpF3hmKWBa8tQgMS1jpin

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 socialfetch-linkedin-ad-library-search-8b6c833f
```

Example prompt: Can you search the LinkedIn Ad Library for ads from Salesforce — keyword 'CRM' — in the US between January 1 2025 and March 31 2025?

## When to prefer this

Use this endpoint when you need to search across multiple LinkedIn ads by company name, keyword, or company ID — especially for competitive research, ad monitoring, or market intelligence. Prefer this over the single-ad lookup endpoint when you need discovery or bulk retrieval rather than fetching a specific known ad.

## Known failure modes

- No ads found matching the query — empty results list returned
- Invalid date format causes validation error
- Invalid country code returns no results or error
- Missing required search parameter (company, keyword, or companyId) results in error
- Pagination cursor from a different query causes unexpected results
- Rate limiting or quota exceeded returns an error response

## How this service works

Search LinkedIn Ad Library ads by company, keyword, or company id.

## Output

A paginated list of LinkedIn Ad Library ad records matching the search criteria, including ad creatives and advertiser metadata, plus an opaque cursor for fetching the next page of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Opaque pagination cursor from a previous response."
      },
      "company": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Company name to search for in the LinkedIn Ad Library."
      },
      "endDate": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Optional end date filter in YYYY-MM-DD format."
      },
      "keyword": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Keyword or phrase to search for in LinkedIn Ad Library ads."
      },
      "companyId": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "LinkedIn company id to search for in the Ad Library."
      },
      "countries": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Optional comma-separated list of country codes (for example US,CA,MX)."
      },
      "startDate": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Optional start date filter in YYYY-MM-DD format."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/socialfetch-linkedin-ad-library-search-8b6c833f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
