linkedin_ad_library_search
Pack: linkedin-ad-library · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/linkedin_ad_library_search for the schema, then POST the same URL with its arguments for the data.
Search LinkedIn’s public Ad Library for ads by advertiser name and/or keyword. Returns ad ID, library URL, creative type, ad type (e.g. “Single Image Ad”), advertiser name and logo, ad text (the library truncates it on the list with an ellipsis; use linkedin_ad_library_ad for the full text), headline and images, newest first, about 24 per page, with next_cursor/has_more. The library does not publish a total result count, so total_results is null. Advertiser matching is a substring match on the advertiser name, so a query for “Microsoft” also returns “Microsoft Copilot” ads; each row carries advertiser_exact_match and own_ads_only=true keeps exact matches only. Source: LinkedIn Ad Library.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
advertiser | string | yes | Advertiser (company or person) name, e.g. “Microsoft”. Substring match on the name. |
advertiser_id | string | no | LinkedIn company id (digits, e.g. “1035” for Microsoft). Exact: returns only that company’s ads. Takes precedence over advertiser. |
keyword | string | no | Word or phrase to look for in ads, e.g. “cybersecurity”. At least one of advertiser, advertiser_id or keyword is required (or a cursor). |
within | string | no | Date window: last-30-days (alias 30d), current-year (alias ytd), or last-year. Omit for no date filter. |
countries | string | no | Optional comma-separated ISO country codes (e.g. “US,DE”). Omit for all countries. |
own_ads_only | boolean | no | Keep only rows whose advertiser name equals the advertiser query exactly (case-insensitive). Default false. |
cursor | string | no | next_cursor from the previous call. It carries the original query, so advertiser/keyword/within need not be repeated. |
Example call
Arguments
{
"advertiser": "Microsoft",
"within": "last-30-days"
}
curl
curl -X POST https://gateway.pipeworx.io/linkedin-ad-library/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"linkedin_ad_library_search","arguments":{"advertiser":"Microsoft","within":"last-30-days"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('linkedin_ad_library_search', {
"advertiser": "Microsoft",
"within": "last-30-days"
});
More examples
{
"advertiser_id": "1035"
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
query | object | |
source | string | |
total_results | null | |
page_size | number | |
returned | number | |
next_cursor | string | |
has_more | boolean | |
results | array | |
coverage | object |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"query": {
"type": "object",
"properties": {
"advertiser": {
"type": "string"
},
"keyword": {
"type": "null"
},
"within": {
"type": "string"
},
"countries": {
"type": "null"
}
},
"additionalProperties": true
},
"source": {
"type": "string"
},
"total_results": {
"type": "null"
},
"page_size": {
"type": "number"
},
"returned": {
"type": "number"
},
"next_cursor": {
"type": "string"
},
"has_more": {
"type": "boolean"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ad_id": {
"type": "string"
},
"library_url": {
"type": "string"
},
"creative_type": {
"type": "string"
},
"ad_type": {
"type": "string"
},
"advertiser_name": {
"type": "string"
},
"advertiser_url": {
"type": "null"
},
"advertiser_logo": {
"type": "string"
},
"advertiser_exact_match": {
"type": "boolean"
},
"ad_text": {
"type": "string"
},
"ad_text_truncated": {
"type": "boolean"
},
"headline": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"alt": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
},
"coverage": {
"type": "object",
"properties": {
"carried": {
"type": "array",
"items": {
"type": "string"
}
},
"null_on_search": {
"type": "object",
"properties": {
"advertiser_url": {
"type": "string"
},
"total_results": {
"type": "string"
},
"first_shown_last_shown_impressions_targeting": {
"type": "string"
}
},
"additionalProperties": true
},
"headline": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the linkedin-ad-library pack
{
"mcpServers": {
"linkedin-ad-library": {
"url": "https://gateway.pipeworx.io/linkedin-ad-library/mcp"
}
}
}
See Getting Started for client-specific install steps.