LinkedIn Ad Detail
Get full detail for a single LinkedIn ad by its id or detail URL - advertiser, who paid for it, ad copy, headline, format and the media creatives. Provide an ad_id or a url. Costs 6 credits per call.
POST/api/v1/linkedin/ads/detail
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonad_idstringThe ad's numeric id, as carried by every search result. Provide ad_id or url.
Example: 1564460026
urlstringA full ad detail URL, as an alternative to ad_id. Provide ad_id or url.
Example: https://www.linkedin.com/ad-library/detail/1564460026
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.linkedin.ads_detail(ad_id="1564460026")
print(results)Response
"ad_id": "1564460026",
"advertiser": "Ahrefs",
"advertiser_id": "2971962",
"advertiser_url": "https://www.linkedin.com/company/2971962",
"advertiser_logo": "https://media.licdn.com/dms/image/v2/D4D0BAQFsw_XSUcUEjg/company-logo_100_100/B4DZ4GwS3HIEAI-/0/1778229784240/ahrefs_logo?e=1788998400&v=beta&t=zpAgN2ol9Y--yDydCSt4BSKBgDWLGxMh6mznxv2wAgs",
"paid_for_by": "Ahrefs Pte. Ltd.",
"ad_copy": "Every AI answer that leaves you out is a customer going to someone else. See how your brand's AI visibility compares with Brand Radar.",
"headline": "Don't get left out of the AI answer",
"format": "Single Image Ad",
"creative_type": "SPONSORED_STATUS_UPDATE",
"is_sponsored": true,
"detail_url": "https://www.linkedin.com/ad-library/detail/1564460026",
"impressions": null,
"demographics": null
},
"response_time": 2025,
"credits_used": 6,
"credits_remaining": 4558
}