# SocialFetch LinkedIn Ad Library - Get Ad by ID or URL

> SocialFetch LinkedIn Ad Library - Get Ad by ID or URL 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).

Fetches a single LinkedIn Ad Library ad creative and its metadata using an ad ID or public Ad Library URL.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/linkedin/ad-library/ads
- 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-get-ad-by-id-or-url-072bfeb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HtsxyxIqumavAxuyII5_m

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-get-ad-by-id-or-url-072bfeb1
```

Example prompt: Can you pull up the LinkedIn Ad Library ad with ID 123456789 and show me the creative details and ad copy?

## When to prefer this

Use this endpoint when you need to retrieve details for a specific, known LinkedIn ad — either by its ad ID or a direct Ad Library URL. Prefer this over search-based endpoints when you already have a specific ad identifier and need full creative details for that one ad.

## Known failure modes

- Invalid or non-existent ad ID returns an error or empty result
- Private or removed ads may not be accessible
- Malformed LinkedIn Ad Library URL results in a parsing error
- Rate limiting if too many requests are made in quick succession
- Ad Library may not include very recent or very old ads

## How this service works

Get a LinkedIn Ad Library ad by ad id or Ad Library URL.

## Output

Returns structured data for a single LinkedIn Ad Library ad, including the ad creative content, advertiser information, ad format, copy, and any available metadata associated with the ad ID or URL provided.

## 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": {
      "url": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Public LinkedIn Ad Library URL for the ad."
      },
      "adId": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "LinkedIn Ad Library id for the ad."
      }
     }
    }
   },
   "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-get-ad-by-id-or-url-072bfeb1/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)
