LinkedIn Ad Library
search_linkedin_adsAds from the LinkedIn Ad Library by company, keyword, payer, ad ID or library URL, with country, date, impression and targeting filters: ad text, headline, button, landing link, images, video and document links, format, payer, run dates, impressions by country and targeting where LinkedIn publishes them, and a B2B intent score. Advertiser ranking for a topic, new-ads monitor, video transcript, text on the image and AI marketing analysis. No login or cookies needed from you. Use for ads on LinkedIn (LinkedIn Ad Library) by company, keyword or payer; for Facebook and Instagram ads use search_meta_ads; for Google use search_google_ads. Returns {items: [...]} with one object per result, for example: {"status":"ok","adId":"1615887163","adUrl":"https://www.linkedin.com/ad-library/detail/1615887163","advertiserName":"HubSpot","format":"SINGLE_IMAGE","headline":"Reserve your seat","body":"Meet the new marketing studio...","paidBy":"HubSpot, Inc.","startDate":"2026-12-01","endDate":"2026-12-04","daysRunning":4,"impressions":"100k-150k","b2bIntentScore":25} Large requests return nextCursor: call again with only cursor to get the next page. Cost: pay per result (prices on the store page where you subscribed), or US$ 0.05 per call with x402 (up to 50 ads). Read-only: it only reads public data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_linkedin_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Keywords to search in ads. Comma-separate several (max 5). | |
| max | No | Maximum ads per search (1-5000, default 20). When one call cannot carry them all, send nextCursor for the rest. | |
| url | No | An Ad Library search or ad URL with your filters already set (one per call). | |
| ad_id | No | Ad IDs. Comma-separate several (max 20). | |
| payer | No | Who paid for the ads (name). Comma-separate several (max 5). | |
| cursor | No | Next page: the nextCursor of the previous answer. Send it alone; the first call's parameters are kept. Cursors last 24 hours. | |
| format | No | Only these formats, comma-separated: single image, video, carousel, document, message, conversation, event, article, text, job, follow company, spotlight. | |
| period | No | Only ads shown in this period. | |
| sample | No | With result_type=advertisers: how many ads to sample (default 240, max 2400). | |
| compact | No | Shorter rows: drops logos, duplicate fields and long texts of the targeting. | |
| company | No | Company names, LinkedIn company page URLs or company IDs. Comma-separate several (max 10). Give company, q, payer, ad_id or url. | |
| country | No | Country codes (ISO 2 letters), comma-separated. Default: all countries. | |
| date_to | No | Only ads shown on or before this date (YYYY-MM-DD, up to yesterday). | |
| details | No | Open each ad: dates, impressions, targeting, payer, landing link and media (default true). false returns the faster list view. | |
| min_days | No | Only ads running for at least this many days. | |
| only_new | No | Only ads this API key has not received before under the same stateKey. | |
| searches | No | Several different searches in one call: JSON list of up to 10 objects, each with its own company, keyword, payer, countries, startDate, endDate, e.g. [{"company":"HubSpot","countries":["DE"]},{"keyword":"crm"}]. Plain text is read as one company name per line. | |
| stateKey | No | With only_new: name of your monitor (letters, numbers, - and _). | |
| date_from | No | Only ads shown on or after this date (YYYY-MM-DD, within the last 12 months). | |
| targeting | No | Only ads that target by these facets, comma-separated: language, location, audience, demographic, company, education, job, interests_and_traits. | |
| image_text | No | The words written on the ad image (imageText). | |
| skip_empty | No | Leave out empty fields. | |
| transcribe | No | Speech of each video ad as text: transcript, language, first 3 seconds (hook3s), timed segments. Fewer ads per call; send nextCursor for the rest. | |
| active_only | No | Only ads shown in the last two days. | |
| ai_analysis | No | Marketing reading of each ad (analysis): hook, offer, offer type, angle, emotional trigger, target persona, call to action, summary. | |
| result_type | No | advertisers: rank who advertises for the search, from a sample of its ads. Default ads. | |
| impressions_max | No | Only ads with at most this many impressions. | |
| impressions_min | No | Only ads with at least this many impressions (published for ads shown in the EU). | |
| exclude_keywords | No | Drop ads with any of these words (comma-separated). | |
| include_keywords | No | Keep only ads whose text, advertiser or link has one of these words (comma-separated). | |
| exclude_targeting | No | Only ads that exclude by these facets (same names as targeting). |