Skip to content
scrapeatlas.Dashboard

Ad libraries

LinkedIn Ads Library API

Search LinkedIn ads and retrieve creative and transparency details.

4 endpointsx-api-key

Find public campaigns by advertiser or keyword, continue through results and inspect creatives, messages and published targeting and impression ranges.

API availability: Available

Base URL · local workerhttp://localhost:3029Public API: https://api.scrapeatlas.com.
Authenticationx-api-keyCustomer key from your account. See Authentication.

Endpoints

GET/v1/linkedin/ads/search

Search ads

Search one page by company, payer, keyword, company ID, countries, date preset or date pair, impression range and targeting facets, sorted newest or oldest first. Each card is enriched from its detail page. Pass the returned token with the same filters for continuation. Individual source failures are explicit partial results.

Reference
GET/v1/linkedin/ad

Ad details

Retrieve a public ad by exact ID or canonical URL. Includes creative media, payer, advertiser, disclosed targeting, dates and impressions. Image, video, carousel, messages, InMail, article and event creatives have dedicated extraction; native documents expose their previews, and other formats are reported with partial coverage.

Reference
GET/v1/linkedin/ad-library/ads/search

Unified ad search

Search one page by company, payer, keyword, company ID, countries, date preset or date pair, impression range and targeting facets, sorted newest or oldest first. Each card is enriched from its detail page. Pass the returned token with the same filters for continuation. Individual source failures are explicit partial results.

Reference
GET/v1/linkedin/ad-library/ads

Unified ad details

Retrieve a public ad by exact ID or canonical URL. Includes creative media, payer, advertiser, disclosed targeting, dates and impressions. Image, video, carousel, messages, InMail, article and event creatives have dedicated extraction; native documents expose their previews, and other formats are reported with partial coverage.

Reference

Quick start

Create an API key on your account page, then call the public API. Values below are placeholders.

Terminal
curl "https://api.scrapeatlas.com/v1/linkedin/ads/search?company=microsoft" \
  -H "x-api-key: YOUR_API_KEY"

Coverage & limits

  • Two active operations; 45-second deadline; 26 upstream attempts with one shared transient retry.
  • Up to six detail pages are read side by side. Impression bounds are given as a pair (minImpressions and maxImpressions); a date preset and a date pair are alternatives.
  • 24 ads per source page; 12 MiB total decoded browser responses, 2 MiB per HTML page, 60,000 DOM nodes and depth 80.
  • Plain HTTPS reads with a browser TLS profile; a headed Chromium (Xvfb on Linux) is used only when a read is challenged. Optional residential proxy pools. No account, storage, media downloads or consumer runtime.
  • Image, video, carousel, message, InMail, article and event details supported. Native documents expose their previews. Other formats and multiple variants are reported with partial coverage.
  • targetingDetails preserves additional flags and normalizes whitespace; range impressions remain labels.
  • Upstream challenges and throttling are explicit; successful cards are returned with failedAds when enrichment is partial.
Error codes
10
HTTPfailure.codeMeaning
400invalid_requestInvalid, duplicate, unknown or conflicting inputs.
401unauthorizedMissing or incorrect service key.
403restricted_pageThe source restricts this ad.
404not_foundMissing ad or route.
429upstream_rate_limitedSource throttling.
502upstream_challenged unsupported_pageChallenge, unsupported markup or identity mismatch.
502upstream_error unsafe_redirect response_too_large payload_too_complex request_limitBounded source failure.
503busyWorker capacity reached.
504timeoutRequest deadline elapsed.
200partialUnavailable details, other creative formats or additional variants.