LinkedIn Scraper

Get Ad

Fetch one LinkedIn ad's full creative, impressions, and targeting by ad ID or URL.

1 creditNo API key needed

Endpoint

Parameters

NameTypeRequiredNote
adIdstring · required if adId, url are all emptystringrequired if adId, url are all empty

LinkedIn Ad ID. Provide this or the Ad URL.

Example: 1104386363

urlstring · required if adId, url are all emptystringrequired if adId, url are all empty

LinkedIn Ad URL. Provide this or the Ad ID.

Example: https://linkedin.com/ad-library/detail/1104386363

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
}

Get started

How to use this tool

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, and this tool comes with it. There’s no API key or account to set up.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this tool when the job calls for it, along with any others it needs.

  3. Make it a workflow

    Add it as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether it runs on its own or asks first. When it asks, you see an Allow or Deny card before any credits are spent.