LinkedIn Scraper
Get Ad
Fetch one LinkedIn ad's full creative, impressions, and targeting by ad ID or URL.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| adIdstring · required if adId, url are all empty | string | required if adId, url are all empty | LinkedIn Ad ID. Provide this or the Ad URL. Example: |
| urlstring · required if adId, url are all empty | string | required if adId, url are all empty | LinkedIn Ad URL. Provide this or the Ad ID. Example: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"element"
],
"properties": {
"error": {
"type": "string"
},
"query": {
"type": "object",
"properties": {},
"additionalProperties": true
},
"status": {
"type": "string"
},
"element": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Unique ad identifier"
},
"about": {
"type": "object",
"properties": {
"ranTo": {
"type": "string",
"description": "End date of the campaign"
},
"format": {
"type": "string",
"description": "Ad format"
},
"paidBy": {
"type": "string",
"description": "Who paid for the ad"
},
"ranFrom": {
"type": "string",
"description": "Start date of the campaign"
},
"advertiserUrl": {
"type": "string",
"description": "Advertiser URL"
},
"advertiserName": {
"type": "string",
"description": "Advertiser name"
}
},
"description": "Ad campaign metadata",
"additionalProperties": true
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"slides": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"targetUrl": {
"type": "string"
}
},
"additionalProperties": true
},
"description": "Carousel slides"
},
"ctaLabel": {
"type": "string",
"description": "Call to action label"
},
"headline": {
"type": "string",
"description": "Ad headline"
},
"imageUrl": {
"type": "string",
"description": "Ad image URL"
},
"targetUrl": {
"type": "string",
"description": "Click-through URL"
},
"description": {
"type": "string",
"description": "Ad copy text"
},
"videoThumbnailUrl": {
"type": "string",
"description": "Video thumbnail URL"
}
},
"description": "Ad creative content",
"additionalProperties": true
},
"advertiser": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Advertiser company name"
},
"headline": {
"type": "string",
"description": "Advertiser headline"
},
"imageUrl": {
"type": "string",
"description": "Advertiser logo URL"
},
"linkedinUrl": {
"type": "string",
"description": "Advertiser LinkedIn URL"
}
},
"description": "Advertiser details",
"additionalProperties": true
},
"creativeType": {
"type": "string",
"description": "Type of ad creative"
}
},
"additionalProperties": true
},
"description": "Ad creative variants"
},
"targeting": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"excludes": {
"type": "array",
"items": {
"type": "string"
}
},
"includes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
},
"description": "Targeting segments"
},
"parameters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"excluded": {
"type": "boolean"
},
"targeted": {
"type": "boolean"
}
},
"additionalProperties": true
},
"description": "Targeting parameters"
}
},
"description": "Targeting criteria",
"additionalProperties": true
},
"impressions": {
"type": "object",
"properties": {
"total": {
"type": "string",
"description": "Total impressions"
},
"byCountry": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Country name"
},
"percentage": {
"type": "string",
"description": "Percentage of impressions"
}
},
"additionalProperties": true
},
"description": "Impressions by country"
}
},
"description": "Impression stats",
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}