Ad
One ad with who paid for it and its reach.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe ad's link in the Ad Library (https://www.linkedin.com/ad-library/detail/…).
id?stringIts number (1703848596), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*An ad, as LinkedIn's Ad Library shows it.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.linkedin.ad({ url: "https://www.linkedin.com/ad-library/detail/1646153623" });Example Response
{ "data": { "id": "1646153623", "url": "https://www.linkedin.com/ad-library/detail/1646153623", "advertiser": { "name": "Sappi Packaging and Speciality Papers", "url": "https://www.linkedin.com/company/37832034" }, "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/C4D0BAQFAHnUBiwFAfQ/company-logo_100_100/company-logo_100_100/0/1630458380992/sappi_packaging_and_speciality_papers_logo?e=1797465600&v=beta&t=IlR9hfqHqOSswfHwAhR73W8RWE8k1q3QjfimeaYS4Jg", "payer": "Sappi Papier Holding GmbH", "creativeType": "SPONSORED_UPDATE_CAROUSEL", "format": "Carousel Ad", "text": "Discover how Sappi's barrier papers help protect tea quality, supported by shelf-life testing and commercial production results.", "headline": null, "destinationUrl": "https://www.sappi.com/en-gb/insights/campaigns/its-not-plastic-its-fantastic", "media": [ { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D4D10AQGhm7x4oJi0iQ/image-shrink_1280/B4DaIIGmz7J0AM-/0/1795432279678?e=1796461200&v=beta&t=XaT-HQxyYPWX3I4jGwzmAgtzHTu41XcYe9BFhezPhQw", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null }, { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D4D10AQHjOswxPV9d_w/image-shrink_1280/B4DaIIGm0kKIAI-/0/1795432279791?e=1796461200&v=beta&t=1YKJB4-EIJqEw3aphs-TUWZNk5ce51Y_vZWC7hcr0nc", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null }, { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D4D10AQGqon8iLJdHUw/image-shrink_1280/B4DaIIGnLOJIAI-/0/1795432281252?e=1796461200&v=beta&t=9Q1knEE2Dc0fTECe96kYztauV3xbbhTxsZRl-GPlCpQ", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null } ], "ranFrom": "2026-11-25T00:00:00.000Z", "ranTo": "2026-11-27T00:00:00.000Z", "impressions": "1k-5k", "impressionsByCountry": [ { "country": "India", "percent": 34 }, { "country": "Pakistan", "percent": 12 }, { "country": "United Kingdom", "percent": 11 } ], "targeting": [ { "parameter": "Language", "includes": "English", "targeted": null, "excluded": null }, { "parameter": "Location", "includes": "North America, Asia and Europe, Africa, Oceania, Latin America", "targeted": null, "excluded": null }, { "parameter": "Audience", "includes": null, "targeted": false, "excluded": false } ] }}