Ads Search
Ads from LinkedIn's Ad Library, 24 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
advertiser?stringThe advertiser's name (Microsoft).
payer?stringWho paid for the ads, as the library names it.
query?stringWords in the ads.
country?stringWhere the ads were shown, by its ISO code (DE); everywhere by default. Ads shown
in the EU carry their impressions and targeting.
period?stringlast-30-days, current-month, current-year or last-year; any time (since a
year ago) by default.
Value in
"last-30-days""current-month""current-year""last-year"cursor?stringnextCursor of the previous page.
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
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.linkedin.adsSearch({ advertiser: "Microsoft" });Example Response
{ "data": [ { "id": "1703848596", "url": "https://www.linkedin.com/ad-library/detail/1703848596", "advertiser": { "name": "Microsoft", "url": null }, "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/B56ZYQ0mrGGoAU-/0/1744038948046/microsoft_logo?e=1797465600&v=beta&t=1mPm7MOEs16AU_Y5ecOnYzho5hPhO-RAz2_mHEBSLv0", "payer": null, "creativeType": "SPONSORED_VIDEO", "format": "Video Ad", "text": "Watch highlights from the opening of the #MSIgnite keynote and see how we’re building a frontier ecosystem to turn advan…", "headline": "Microsoft Ignite: Opening Keynote 2026", "destinationUrl": null, "media": [ { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D5610AQEXO53W5nwXIw/videocover-high/B56aITyVLvJEBI-/0/1795628302749?e=2147483647&v=beta&t=KFov1bdOpv0ltuVE0tFnKWcS-p62WjG3nE-sz2TsOeI", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null } ], "ranFrom": null, "ranTo": null, "impressions": null, "impressionsByCountry": [], "targeting": [] }, { "id": "1703747846", "url": "https://www.linkedin.com/ad-library/detail/1703747846", "advertiser": { "name": "Microsoft", "url": null }, "advertiserLogoUrl": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/B56ZYQ0mrGGoAU-/0/1744038948046/microsoft_logo?e=1797465600&v=beta&t=1mPm7MOEs16AU_Y5ecOnYzho5hPhO-RAz2_mHEBSLv0", "payer": null, "creativeType": "SPONSORED_UPDATE_CAROUSEL", "format": "Carousel Ad", "text": "Toronto, get ready for #MicrosoftFrontierTour on Jan 13. Explore what’s next in AI through expert sessions and hands-on …", "headline": null, "destinationUrl": null, "media": [ { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D5610AQEoIpVFUI2ieg/image-shrink_1280/B56aIPGxhjKUAI-/0/1795549764014?e=1796461200&v=beta&t=wyA6QwGcuYedNV6oxpFJgTh4LBvQWJK2283SubEXTwI", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null }, { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D5610AQHBhvUGjdiPeQ/image-pad_1200_1200/B4DaITNXfzHYAU-/0/1795618601502?e=1796461200&v=beta&t=UXIAqRjy47cp3koYcSLKKjwh6IeH1C2Eo8-xzqgFu6M", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null }, { "kind": "image", "url": "https://media.licdn.com/dms/image/v2/D5610AQE_uC5f3Kluyw/image-pad_1200_1200/B4DaITNXfWKcAU-/0/1795618601262?e=1796461200&v=beta&t=y4MVqMZ4hw-XxsTQHgwolQnOsigrKfksT-KT6uWAnVc", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null } ], "ranFrom": null, "ranTo": null, "impressions": null, "impressionsByCountry": [], "targeting": [] } ], "pagination": { "nextCursor": "1651866384-1795616789676", "hasMore": true }}