Skip to main content
GET
/
linkedin
/
ad
Get LinkedIn Ad by ID
curl --request GET \
  --url https://api.harvest-api.com/linkedin/ad \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "variants": [
    {
      "advertiser": {
        "name": "<string>",
        "linkedinUrl": "<string>",
        "imageUrl": "<string>",
        "headline": "<string>"
      },
      "content": {
        "description": "<string>",
        "imageUrl": "<string>",
        "videoThumbnailUrl": "<string>",
        "videoSource": "<unknown>",
        "targetUrl": "<string>",
        "headline": "<string>",
        "ctaLabel": "<string>",
        "slides": [
          {
            "imageUrl": "<string>",
            "targetUrl": "<string>",
            "title": "<string>"
          }
        ]
      },
      "creativeType": "<string>"
    }
  ],
  "about": {
    "format": "<string>",
    "advertiserName": "<string>",
    "advertiserUrl": "<string>",
    "paidBy": "<string>",
    "ranFrom": "<string>",
    "ranTo": "<string>"
  },
  "impressions": {
    "total": "<string>",
    "byCountry": [
      {
        "name": "<string>",
        "percentage": "<string>"
      }
    ]
  },
  "targeting": {
    "segments": [
      {
        "name": "<string>",
        "includes": [
          "<string>"
        ],
        "excludes": [
          "<string>"
        ]
      }
    ],
    "parameters": [
      {
        "name": "<string>",
        "targeted": true,
        "excluded": true
      }
    ]
  }
}
const params = new URLSearchParams({
  url: 'https://www.linkedin.com/ad-library/detail/1104386363',
  // adId: '1104386363', // Alternatively, by Ad ID
});

fetch(`https://api.harvest-api.com/linkedin/ad?${params.toString()}`, {
  headers: { 'X-API-Key': '<api-key>' },
})
  .then((response) => response.json())
  .then((data) => console.log(data));

Authorizations

X-API-Key
string
header
required

Query Parameters

adId
string

The unique identifier of the LinkedIn Ad.

url
string

The URL of the LinkedIn Ad.

Response

Detailed information about the specified LinkedIn Ad.

id
string
required
variants
object[]
required
about
object
required
impressions
object
required
targeting
object
required