LinkedIn Ad Library

2 endpoints.

GET /v1/linkedin/ad

Ad Details

Retrieves detailed information about a specific LinkedIn ad by URL. Returns id, description, headline, adType, advertiser, and targeting with language, location, and audience criteria. Also includes totalImpressions, impressionsByCountry, adDuration, startDate, and endDate. Date and impression fields are nullable when LinkedIn does not expose them on the public ad page. The existing image, video, organicVideo, preRollVideo, and carouselImages fields keep their previous values. paidForBy is the public paying entity when LinkedIn shows one, without the 'Paid for by' prefix. targetingTable lists the public targeting-category flags that LinkedIn shows; it does not expand a collapsed location summary into individual locations. imageSources and thumbnailSources list the creative-image and video-poster URLs LinkedIn supplies. videoSources lists native video renditions as { src, type, bitrate }; preRollVideoSources uses the same structure but contains only pre-roll ad video. type and bitrate are null when absent; bitrate is in bits per second. Choose the lowest positive bitrate for a smaller video download, rather than assuming source order ranks quality. All four source fields are arrays and are empty when unavailable. Document-cover previews are included in imageSources where available, including search fallback results. LinkedIn may expose only one image or thumbnail resolution; URLs are signed and should not be rewritten to guess smaller sizes. Search detail hydration is best-effort, so blocked or timed-out detail fetches can leave videoSources empty even for a video ad. No extra parameter or credit charge is required. adDuration is the ad availability date-range text, not video playback duration; it is an empty string with null startDate/endDate when LinkedIn does not publish the availability block.

Parameters

NameInTypeDescription
url requiredquerystringThe url of the ad

Request

curl "https://api.scrapall.bipsport.com/scapi/v1/linkedin/ad?url=https://www.linkedin.com/ad-library/detail/666281156" \
  -H "X-Scapi-Key: YOUR_API_KEY"
const res = await fetch("https://api.scrapall.bipsport.com/scapi/v1/linkedin/ad?url=https://www.linkedin.com/ad-library/detail/666281156", {
  headers: { "X-Scapi-Key": "YOUR_API_KEY" }
});
const data = await res.json();
import requests

r = requests.get(
    "https://api.scrapall.bipsport.com/scapi/v1/linkedin/ad?url=https://www.linkedin.com/ad-library/detail/666281156",
    headers={"X-Scapi-Key": "YOUR_API_KEY"},
)
print(r.json())

Response 200 (sample)

{
  "id": "1629532086",
  "description": "Offensive security for Insurance Brokers, TPAs, MGAs and Carriers.\n\nGet a full audit-grade NYDFS or SOC2 PDF report within 48 hours.",
  "headline": "Meet us at Booth 3240",
  "poster": "CodeAnt AI",
  "targeting": {},
  "image": null,
  "video": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeu...",
  "pre_roll_video": null,
  "organic_video": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeu...",
  "pre_roll_advertiser": null,
  "carousel_images": [],
  "url": "https://www.linkedin.com/ad-library/detail/1629532086",
  "ad_type": "Video Ad",
  "creative_type": "SPONSORED_VIDEO",
  "advertiser": "CodeAnt AI",
  "advertiser_linkedin_page": "https://www.linkedin.com/company/96582348",
  "advertiser_logo": "https://media.licdn.com/dms/image/v2/D560BAQGncbvGj9h-YA/company-logo_100_100/company-logo_100_100/0/1700642866542/codeant_ai_logo?e=1793836800&v=beta&t=m3Yq...",
  "cta": "Join",
  "sponsored_message_sender": null,
  "sponsored_message_sender_avatar": null,
  "sponsored_message_buttons": [],
  "destination_url": null,
  "landing_page": null,
  "ad_duration": "",
  "start_date": null,
  "...": "7 more fields"
}