LINKEDIN AD LIBRARY API
Ad Details
Retrieve ad details from LinkedIn Ad Library with a single API request.
GET
/api/data/v1/linkedin/ad1credit base cost
Request parameters
Up to 1 creditThe url of the ad
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/linkedin/ad?url=https%3A%2F%2Fwww.linkedin.com%2Fad-library%2Fdetail%2F666281156' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"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=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
"preRollVideo": null,
"organicVideo": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
"preRollAdvertiser": null,
"carouselImages": [],
"url": "https://www.linkedin.com/ad-library/detail/1629532086",
"adType": "Video Ad",
"creativeType": "SPONSORED_VIDEO",
"advertiser": "CodeAnt AI",
"advertiserLinkedinPage": "https://www.linkedin.com/company/96582348",
"advertiserLogo": "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=m3Yqh1eMA4FSBoIhNZzLkOQO8FLl84sq6rMUXuYaqXA",
"cta": "Join",
"sponsoredMessageSender": null,
"sponsoredMessageSenderAvatar": null,
"sponsoredMessageButtons": [],
"destinationUrl": null,
"landingPage": null,
"adDuration": "",
"startDate": null,
"endDate": null,
"totalImpressions": null,
"impressionsByCountry": [],
"imageSources": [],
"videoSources": [
{
"src": "https://dms.licdn.com/playlist/vid/v2/D5610AQHhFKchr0EgUA/mp4-360p-30fp-crf28/B56aDdqz26GoCE-/0/1790425384702?e=2147483647&v=beta&t=JDvJ4pLmerMVdDjbUZskRZIeuno7_YD4b-t_y2aY_f0",
"type": "video/mp4",
"bitrate": 124294
}
],
"thumbnailSources": [
"https://media.licdn.com/dms/image/v2/D5610AQHhFKchr0EgUA/videocover-high/B56aDdqz26GoBM-/0/1790425384196?e=2147483647&v=beta&t=f4890gDBvRXts6rJzik-j7iF8aDV6XOLTyaT10Bdkyg"
],
"preRollVideoSources": [],
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Illustrative response with example values adapted for FetchGoblin. Run a request to retrieve current platform data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"headline": {
"type": "string"
},
"poster": {
"type": "string"
},
"targeting": {
"type": "object",
"properties": {}
},
"image": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"video": {
"type": "string"
},
"preRollVideo": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"organicVideo": {
"type": "string"
},
"preRollAdvertiser": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"carouselImages": {
"type": "array"
},
"url": {
"type": "string"
},
"adType": {
"type": "string"
},
"creativeType": {
"type": "string"
},
"advertiser": {
"type": "string"
},
"advertiserLinkedinPage": {
"type": "string"
},
"advertiserLogo": {
"type": "string"
},
"cta": {
"type": "string"
},
"sponsoredMessageSender": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"sponsoredMessageSenderAvatar": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"sponsoredMessageButtons": {
"type": "array"
},
"destinationUrl": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"landingPage": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"adDuration": {
"type": "string"
},
"startDate": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"endDate": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"totalImpressions": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"impressionsByCountry": {
"type": "array"
},
"imageSources": {
"type": "array"
},
"videoSources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"src": {
"type": "string"
},
"type": {
"type": "string"
},
"bitrate": {
"type": "integer"
}
}
}
},
"thumbnailSources": {
"type": "array",
"items": {
"type": "string"
}
},
"preRollVideoSources": {
"type": "array"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}