How to run a Ad Library linkedin search ads
GET request to /v1/ad-library/linkedin/search-ads with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. Run a Ad Library linkedin search ads and get structured, ranked results as clean JSON.How to run a Ad Library linkedin search ads (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the LinkedIn Ad Library Search API
Send an authenticated GET request to /v1/ad-library/linkedin/search-ads with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
curl "https://api.captapi.com/v1/ad-library/linkedin/search-ads?q=microsoft" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"success": true,
"data": {
"query": "microsoft",
"country": "US",
"totalReturned": 3,
"ads": [
{
"platform": "linkedin_ad_library",
"id": "1475728386",
"url": "https://www.linkedin.com/ad-library/detail/1475728386",
"text": "The apps you know go further with Copilot. Explore limited time offers today.",
"adFormat": "Single Image Ad",
"country": "US",
"advertiser": {
"name": "Microsoft 365",
"logo": "https://media.licdn.com/dms/image/v2/C560BAQGG-2Kb6o7o4A/company-logo_100_100/company-logo_100_100/0/1630592958709/microsoft_office_logo?e=1784764800&v=beta&t=McAvdsqf8HXtZyPU7nS-RGDY-98NHgoC_pwqOw5Gw7k"
},
"media": [
"https://media.licdn.com/dms/image/v2/D4D10AQFWrEKj4VaX3g/image-shrink_1280/B4DZ7vxdWJHgAc-/0/1782139180792/Copilot_LinkedIn-Theme4_USA_1200x1200_PHA_SubTheme4L-SU_SMB-EN_NA_Standard_SBAN_LEA_NA_1jpg?e=2147483647&v=beta&t=nrMFf9aBVU7jPCZrhg2A-V0VMOscElqrqWshkXp_r7Y"
]
},
{
"platform": "linkedin_ad_library",
"id": "1480089046",
"url": "https://www.linkedin.com/ad-library/detail/1480089046",
"text": "Celebrate your work. Spotlight your impact. Submit your Microsoft Advertising Partner Award nomination by July 15. https…",
"adFormat": "Single Image Ad",
"country": "US",
"advertiser": {
"name": "Microsoft Advertising",
"logo": "https://media.licdn.com/dms/image/v2/C560BAQGCzRbSOXB2wQ/company-logo_100_100/company-logo_100_100/0/1630567794734/bing_ads_logo?e=1784764800&v=beta&t=BzqkDTytrzFb_8OLsQQIBHuGqimMbzavRs88iErL0ck"
},
"media": [
"https://media.licdn.com/dms/image/v2/D5610AQFp6MVJQ_ELIQ/image-shrink_1280/B56Z8FkbnCGcAg-/0/1782504864563/PartnerAwards-Nominationcreative-squarepng?e=2147483647&v=beta&t=UQnA8QEX1N3wDgmKAiG32tPqtzJsUPha7xcw3hMBN_I"
]
},
{
"platform": "linkedin_ad_library",
"id": "1480019596",
"url": "https://www.linkedin.com/ad-library/detail/1480019596",
"text": "Celebrate your work. Spotlight your impact. Submit your Microsoft Advertising Partner Award nomination by July 15. https…",
"adFormat": "Single Image Ad",
"country": "US",
"advertiser": {
"name": "Microsoft Advertising",
"logo": "https://media.licdn.com/dms/image/v2/C560BAQGCzRbSOXB2wQ/company-logo_100_100/company-logo_100_100/0/1630567794734/bing_ads_logo?e=1784764800&v=beta&t=BzqkDTytrzFb_8OLsQQIBHuGqimMbzavRs88iErL0ck"
},
"media": [
"https://media.licdn.com/dms/image/v2/D5610AQFMsObBoXKilg/image_627_1200/B4DZ8AkxjpHQAQ-/0/1782421068868/PartnerAwardnominationpng?e=2147483647&v=beta&t=gCPJRZXnj1LOvGwC87qEbjzYvvDhHtfHA1xd9ZBTYe8"
]
}
]
}
}Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Keyword, company, or advertiser to search LinkedIn Ad Library (min 2 characters). |
| country | string | No | Two-letter ISO country code. Default US. |
| limit | integer | No | Max items to return (default 20, max 200). Billed per result. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Frequently asked questions
What does the LinkedIn Ad Library Search API do?
The LinkedIn Ad Library Search API lets you search and return matching results from a public Ad Library query using one GET request to /v1/ad-library/linkedin/search-ads. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the LinkedIn Ad Library Search API cost?
Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.
Do I need a Ad Library API key or OAuth?
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the LinkedIn Ad Library Search API suitable for production use?
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
Ready to run a Ad Library linkedin search ads?
Start free with 100 credits — no credit card required.
Get your free API key