LINKEDIN AD LIBRARY API

Ad Details

Retrieve ad details from LinkedIn Ad Library with a single API request.

GET/api/data/v1/linkedin/ad
1credit base cost

Request parameters

Up to 1 credit

The url of the ad

Try in the console

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": "664291126",
  "description": "Learn to start building an AI strategy that helps your small business automate routine tasks and keep teams focused on high-value activities.",
  "headline": "Read “The Guide to AI for Small Businesses”",
  "poster": "Salesforce",
  "posterTitle": "Promoted",
  "promotedBy": null,
  "targeting": {
    "language": "Targeting includes English",
    "location": "Targeting includes Portugal",
    "audience": "Inclusion and exclusion targeting applied"
  },
  "image": "https://media.licdn.com/dms/image/v2/D5610AQHEjQAydHWLaw/image-shrink_1280/image-shrink_1280/0/1736950502005/Ai-guide-for-smbs?e=2147483647&v=beta&t=dC-iPz1fr8piN6YutdDgKIOmRPJvFaj4Hr0g_raHZ70",
  "adType": "Single Image Ad",
  "advertiser": "Salesforce",
  "advertiserLinkedinPage": "https://www.linkedin.com/company/3185",
  "cta": null,
  "destinationUrl": "https://www.salesforce.com/eu/form/small-business/ai-guide-for-smbs/?d=701ed00000CX0GfAAL&nc=701ed000007UYTMAA4&utm_source=linkedin&utm_medium=paid_social&utm_campaign=emea_pt_einsteinai_allindustries&utm_content=enterprisesmallbusiness_pp-dm-all-crx-multi-tal-linkedin-prospect-tals-esmb_701ed00000CX0GfAAL_english_ai-guide-for-smbs&trk=ad_library_ad_preview_headline_content",
  "adDuration": "Ran from Apr 1, 2025 to Apr 3, 2025",
  "startDate": "2025-04-01T00:00:00.000Z",
  "endDate": "2025-04-03T00:00:00.000Z",
  "totalImpressions": "5k-10k",
  "impressionsByCountry": [
    {
      "country": "Portugal",
      "impressions": "100%"
    }
  ],
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current 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"
    },
    "posterTitle": {
      "type": "string"
    },
    "promotedBy": {
      "type": [
        "string",
        "object",
        "array",
        "number",
        "boolean",
        "null"
      ]
    },
    "targeting": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "audience": {
          "type": "string"
        }
      }
    },
    "image": {
      "type": "string"
    },
    "adType": {
      "type": "string"
    },
    "advertiser": {
      "type": "string"
    },
    "advertiserLinkedinPage": {
      "type": "string"
    },
    "cta": {
      "type": [
        "string",
        "object",
        "array",
        "number",
        "boolean",
        "null"
      ]
    },
    "destinationUrl": {
      "type": "string"
    },
    "adDuration": {
      "type": "string"
    },
    "startDate": {
      "type": "string"
    },
    "endDate": {
      "type": "string"
    },
    "totalImpressions": {
      "type": "string"
    },
    "impressionsByCountry": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "impressions": {
            "type": "string"
          }
        }
      }
    },
    "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."
    }
  }
}
LinkedIn Ad Library Ad Details API | FetchGoblin