Apinoa Docs

Ad

获取 LinkedIn 广告资料库中的单条广告:完整文本与媒体、出资方,以及公开时的投放日期、展示次数和定向。

查看原始 .mdx
GET | POST /v1/linkedin-ads/ad

参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。

请求

curl "https://gateway.apinoa.com/v1/linkedin-ads/ad?id=1578851684" \
  -H "x-api-key: $APINOA_API_KEY"

传入内容

传入读取内容说明
id广告广告资料库 id,或广告资料库 URL(linkedin.com/ad-library/detail/<id>)

每次调用传入一个来源。所有标识符也接受页面 URL。

参数

参数类型必填说明
idstringThe ad's Ad Library id, or its Ad Library URL (linkedin.com/ad-library/detail/<id>).

这些参数及所有响应类型也写在OpenAPI 文档中。

响应

在 data 中返回 Ad。以下为真实响应的节选:数组只保留前几项,长文本已截断。

{
  "success": true,
  "data": {
    "library": "linkedin-ads",
    "id": "1578851684",
    "url": "https://www.linkedin.com/ad-library/detail/1578851684",
    "advertiser": {
      "id": "101691424",
      "name": "Quantum Security Defence",
      "url": "https://www.linkedin.com/company/101691424",
      "avatarUrl": "https://media.licdn.com/dms/image/v2/D4E0BAQHoN-S2VTf9bg/company-logo_…",
      "ext": {
        "type": "company"
      }
    },
    "paidBy": "Quantum Security and Defense Working Group lts",
    "format": "Single Image Ad",
    "text": "The G7 is urging governments and companies to start the transition to …",
    "linkUrl": "https://lnkd.in/e5J2WDUc",
    "images": [
      {
        "url": "https://media.licdn.com/dms/image/v2/D4E22AQEOAg2S6vIyxw/feedshare-ima…"
      }
    ],
    "videos": [],
    "cards": [],
    "firstShownAt": "2026-09-29",
    "lastShownAt": "2026-10-03",
    "impressions": {
      "text": "< 1k",
      "upper": 1000
    },
    "countries": [
      {
        "country": "Spain",
        "percent": 10
      },
      {
        "country": "Greece",
        "percent": 9
      },
      {
        "country": "France",
        "percent": 9
      }
    ],
    "ext": {
      "creativeType": "SPONSORED_STATUS_UPDATE",
      "links": [
        "https://lnkd.in/e5J2WDUc"
      ],
      "targeting": {
        "language": "Targeting includes English",
        "location": "Targeting includes Europe",
        "parameters": [
          {
            "name": "Audience",
            "targeted": false,
            "excluded": false
          },
          {
            "name": "Demographic",
            "targeted": false,
            "excluded": false
          },
          {
            "name": "Company",
            "targeted": false,
            "excluded": false
          }
        ]
      }
    }
  }
}

错误

状态代码含义
400INVALID_PARAMS参数缺失、未知或超出范围。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_CREDITS积分不足以支付本次调用。请在控制台选择套餐或充值。
404NOT_FOUNDLinkedIn 广告资料库中没有该 id 的广告。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_ERROR广告资料库返回了无法使用的内容。请退避后重试。

所有代码见 Errors。失败的调用不计费。

价格

价格 每次调用 1 积分。套餐与积分

说明

  • 所有记录遵循统一的 Ads API 数据结构。只有 LinkedIn 提供的信息在 ext 中。
  • firstShownAt、lastShownAt、impressions、countries 和 ext.targeting 仅在 LinkedIn 对该广告公开时才有。LinkedIn 依据欧盟透明度规则只对部分广告公开这些信息,因此许多广告(尤其是只在欧盟以外展示的)没有。lastShownAt 为今天表示广告仍在投放。
  • impressions 是 LinkedIn 所示的范围(text)及其给出的上下限(lower、upper)。countries 按名称给出各国及其展示占比(percent);新广告最多可能要 48 小时后才会显示。
  • ext.targeting 按 LinkedIn 所写(以广告的语言)给出语言和地区,并对每个定向类别(Audience、Demographic、Company、Education、Job、Member Interests and Traits)说明是用于定向还是排除。LinkedIn 不公开类别内的具体细分。
  • 广告主可以是公司或会员(advertiser.ext.type)。公司的 advertiser.id 可直接传给 ads?advertiser=。思想领袖广告在 ext.poster 中给出被推广帖子的会员。
  • 视频的 url 是最佳文件;ext.sources 列出每个文件及其码率。视频文件、图片和文档页面都是指向 LinkedIn 媒体服务器的链接。

本页内容