- Home
- LinkedIn Ad Library API
LinkedIn Ad Library API
Search the LinkedIn Ad Library from your code. One GET request returns the B2B ads that match a keyword or a company, with the text, images, videos, headline and format of each one, as clean JSON.
Open any ad for who paid for it, when it ran and, for ads shown in the European Union, its impressions by country and the targeting parameters. Filter by country and dates, page through results with a cursor, no LinkedIn account needed.
No credit card needed. One API key works on every endpoint.
Quick example
https://api.scrapeadlibrary.com/v1/linkedin/ads/searchcurl "https://api.scrapeadlibrary.com/v1/linkedin/ads/search?advertiser=HubSpot&country=DE&date_range=last_30_days" \
-H "X-API-Key: sal_your_api_key"Response
{
"data": [ { "source": "linkedin", "id": "1644065084", "advertiser": { "name": "HubSpot", ... }, ... } ],
"total_estimate": null,
"has_more": true,
"next_cursor": "c_Lk3m9PqZt2",
"credits_used": 1,
"cached": false
}Illustrative values: a real response carries the live data of the ads and advertisers you ask for.
One ad with its EU transparency data
GET /v1/linkedin/ads/1615887163 returns the whole ad, the payer, the run dates and, for EU ads, impressions and targeting:
{
"data": {
"source": "linkedin",
"id": "1615887163",
"url": "https://www.linkedin.com/ad-library/detail/1615887163",
"advertiser": {
"id": "11573825",
"name": "made2GROW GmbH | HubSpot Platin Partner",
"url": "https://www.linkedin.com/company/11573825",
"logo_url": "https://media.licdn.com/..."
},
"format": "image",
"started_at": "2026-11-12",
"ended_at": "2026-11-18",
"body": "Sales: "These leads are useless." Marketing: "Sales never follows up." ...",
"title": "Let's fix that. HUG Berlin · Nov 24",
"link_url": "https://events.hubspot.com/...",
"cta": { "text": "Attend", "type": null },
"images": [ { "type": "image", "url": "https://media.licdn.com/..." } ],
"videos": [],
"variants_count": 1,
"payer": "made2GROW GmbH",
"impressions": { "lower": 1000, "upper": 5000, "text": "1k-5k" },
"regions": [ { "country": "DE", "name": "Germany", "impressions_share": 100.0, ... } ],
"targeting": [
{ "name": "Location", "included": ["Berlin Metropolitan Area"], "excluded": [], "targeted": null, "has_exclusions": null },
{ "name": "Job", "included": [], "excluded": [], "targeted": true, "has_exclusions": false }
],
"topic": null,
"previews": []
},
"credits_used": 1,
"cached": false
}What each ad contains
The same ad model as the Google Ads Transparency API, with the names of the Meta ads for the same things, so one parser reads every library.
| Field | Type | Description |
|---|---|---|
| source, id, url | string | linkedin, the Ad Library ID and its page in the library. |
| advertiser | object | Company name and logo; the detail adds its LinkedIn company ID and url. |
| format | string | image, video, carousel, document, event, article, message, text, job or other. |
| body, title | string | null | Ad text (truncated in lists, whole in the detail) and headline. |
| images, videos | array | Creatives; videos in the detail come with url, sd_url and preview_url. |
| link_url, cta (detail) | string, object | Landing page and call to action. |
| payer, started_at, ended_at (detail) | string | Who paid for the ad and when it ran. |
| impressions, regions, targeting (detail) | object, array | EU ads: total impressions, share by country and the targeting parameters. |
Parameters of the search
| Parameter | In | Type | Default | Description |
|---|---|---|---|---|
| q | query | string | - | Keyword or phrase in the ad. q or advertiser is required |
| advertiser | query | string | - | Advertiser (company) name, e.g. HubSpot |
| country | query | string | ALL | ISO 3166 alpha-2 country where the ads were shown, or ALL |
| date_range | query | enum | all | all | last_30_days | current_month | current_year | last_year |
| active_from | query | date | - | YYYY-MM-DD, custom range start (last 12 months only; not with date_range) |
| active_to | query | date | - | YYYY-MM-DD, custom range end (today or later becomes yesterday) |
| sort | query | enum | newest | newest | oldest |
| limit | query | integer | 25 | Ads per call (one page of the library), 1-25 |
| cursor | query | string | - | next_cursor of the previous page; the other parameters must be identical |
Either q or advertiser is required. Use date_range or a custom active_from / active_to window within the last 12 months.
What people build with it
B2B competitor research
Follow the LinkedIn ads of the companies you compete with: offers, formats, headlines and landing pages, week by week.
Targeting insights
For ads shown in the EU, read which locations, languages, jobs and audiences an advertiser targeted, and where the impressions went.
Creative inspiration
Search a keyword across every advertiser to collect the hooks and formats that work in your category.
Cross-channel reporting
Combine a brand’s LinkedIn ads with its Meta and Google ads in one report: one ad model for every library.
Pricing
Every call costs 1 credit, whatever it returns: up to 25 ads (limit 1-25, one page of the library) or one ad with its details. The next page is a new call with the cursor; errors are free.
- 65 free calls every month, no credit card
- Then $5 per 1,000 calls, pay as you go
- Only successful calls are billed: errors cost nothing
- Credits valid for 12 months from purchase; bulk packs from 10,000 credits for $45
Also in the MCP server for AI assistants
The ScrapeAdLibrary MCP server gives Claude, Cursor and other MCP clients the same data as tools: search_linkedin_ads and get_linkedin_ad. Ask an assistant “what is this company advertising on LinkedIn in Germany, and to whom?” and it searches and reads the ads for you.
Run it with uvx scrapeadlibrary-mcp and your API key in SCRAPEADLIBRARY_API_KEY; the MCP server guide has the configuration for each client. Tool calls are billed like API calls.
LinkedIn Ad Library API: FAQ
- Does LinkedIn have an Ad Library API?
- LinkedIn publishes its Ad Library as web pages only. This API searches it for you and returns the ads as JSON, with an API key and no LinkedIn account.
- Which ads can I find?
- The ads the public LinkedIn Ad Library shows: ads of the last 12 months, searchable by keyword and by advertiser (company) name, filtered by country and dates. LinkedIn does not let anyone search further back.
- What does the ad detail add?
- The whole text, the media, the headline and link, the advertiser’s company page and who paid for the ad, the dates it ran and, for ads shown in the EU, total impressions, impressions by country and the targeting parameters the advertiser chose.
- Are LinkedIn members’ names returned?
- No. Some ads are posts of a member promoted by a company (“thought leader” ads): we return the advertiser, a company, never the member who posted it.
- How much does it cost?
- 1 credit per successful call: a page of up to 25 ads or one ad with its details. Errors are free, and every account gets 65 free calls a month.
Related APIs
- Facebook Ads Search APISearch the Ad Library by keyword or advertiser, with country, platform, media and date filters.
- Facebook Ad Details APIOne ad with its creatives, payers and EU (DSA) reach by country, age and gender.
- Facebook Page Ads APIThe profile of an advertiser page and every ad it runs, page by page.
- Facebook Advertiser Search APIFind the advertisers that ran ads on a keyword, with their page ID and category.
- Winning Facebook Ads APILong-running ads first: days_active, a documented 0-100 winning_score and a min_days_active filter.
- Google Ads Transparency APIGoogle Search, YouTube and Display ads of any advertiser or website, with dates and impressions per region.
- Free Ad Library searchTry the data in the browser: a few free searches a day, no account.
Every parameter and error code is in the LinkedIn ads reference.
Search the LinkedIn Ad Library in minutes
Create a free account, copy your API key and run the example above. 65 free calls every month, no card required.