Apinoa Docs

Ad

TikTok 广告资料库中的一条广告:广告主和出资方、链接、各国展示量及年龄×性别分布,以及定向对象。

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

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

请求

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

传入内容

传入读取内容说明
id一条广告数字 id,或广告在资料库中的 URL(…/ads/detail/?ad_id=…)

参数

参数类型必填说明
idstringThe ad's id in the library, or its library URL (…/ads/detail/?ad_id=<id>).

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

响应

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

{
  "success": true,
  "data": {
    "library": "tiktok-ads",
    "id": "1882611596287058",
    "url": "https://library.tiktok.com/ads/detail/?ad_id=1882611596287058",
    "advertiser": {
      "id": "7569814894275739664",
      "name": "Ryan",
      "ext": {
        "registeredIn": "United Kingdom"
      }
    },
    "paidBy": "Ryan",
    "text": "#tn #nike #getreadywithme #treanding #viral @Nike ",
    "images": [],
    "videos": [
      {
        "url": "https://library.tiktok.com/api/v1/cdn/1795662270/video/aHR0cHM6Ly92NzcudGlrdG9rY…",
        "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-no1a-p-0037-no/o4EbIAFnVoumAqDqGFqRfxS…"
      }
    ],
    "cards": [],
    "categories": [
      "Apps"
    ],
    "firstShownAt": "2026-11-23T00:00:00.000Z",
    "lastShownAt": "2026-11-23T00:00:00.000Z",
    "impressions": {
      "text": "0-1K",
      "lower": 0,
      "upper": 1000
    },
    "reach": {
      "text": "0-1K",
      "lower": 0,
      "upper": 1000
    },
    "countries": [
      {
        "country": "SE",
        "impressions": {
          "text": "0-1K",
          "lower": 0,
          "upper": 1000
        },
        "ext": {
          "breakdown": [
            {
              "age": "18-24",
              "gender": "MALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            },
            {
              "age": "18-24",
              "gender": "FEMALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            }
          ]
        }
      },
      {
        "country": "DE",
        "impressions": {
          "text": "0-1K",
          "lower": 0,
          "upper": 1000
        },
        "ext": {
          "breakdown": [
            {
              "age": "18-24",
              "gender": "MALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            },
            {
              "age": "18-24",
              "gender": "FEMALE",
              "impressions": {
                "text": "0-1K",
                "lower": 0,
                "upper": 1000
              }
            }
          ]
        }
      }
    ],
    "ext": {
      "objective": "Community interaction",
      "targeting": {
        "countries": [
          "SE",
          "DE"
        ],
        "ages": [
          {
            "region": "SE",
            "13-17": false,
            "18-24": true,
            "25-34": true,
            "35-44": true,
            "45-54": true,
            "55+": true
          },
          {
            "region": "DE",
            "13-17": false,
            "18-24": true,
            "25-34": true,
            "35-44": true,
            "45-54": true,
            "55+": true
          }
        ],
        "genders": [
          {
            "region": "SE",
            "female": true,
            "male": true,
            "unknown": true
          },
          {
            "region": "DE",
            "female": true,
            "male": true,
            "unknown": true
          }
        ],
        "audienceSize": {
          "text": "187.7M-229.4M",
          "lower": 187700000,
          "upper": 229400000
        },
        "interests": "Education, Beauty & Personal Care, Travel, Pets, Apps, News & Entertainment, Foo…",
        "ext": {
          "audience": "No",
          "video_interactions": "",
          "creator_interactions": "",
          "cities": [
            "Glasgow"
          ],
          "provinces": [
            "Scotland"
          ],
          "device_models": [],
          "operating_systems": [
            "ALL"
          ],
          "high_spending_power": "No",
          "audience_exclude": "No",
          "location": {
            "total_region": 12
          }
        }
      },
      "audit_status": "1",
      "type": "2",
      "spent": "",
      "impression": 0,
      "show_mode": 1,
      "rejection_info": null,
      "sor_audit_status": "1",
      "display_mode": "enhanced"
    }
  }
}

错误

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

全部错误代码见 Errors。失败的调用不计费。

价格

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

说明

  • advertiser.id 是 ads?advertiser= 接受的值(与 advertiserName = advertiser.name 一起);advertiser.ext.registeredIn 是 TikTok 标注的广告主注册国家,advertiser.ext.account 是资料库注明时广告所用的 TikTok 账号。
  • impressions 是所有国家的合计;countries 中每个展示过广告的国家各有一行,含其展示量,行的 ext.breakdown 中有年龄×性别分布。
  • 范围同时保留 TikTok 显示的文本(0-1K、22.2M-27.1M)和从中读取的上下限。
  • ext.objective 是广告系列目标;ext.targeting 是定向对象:国家、各国的年龄段和性别、audienceSize、语言、兴趣,以及 ext.targeting.ext 中的其他所有定向信息(城市、设备、排除对象等)。
  • 视频 URL 是资料库签名的副本,会过期。

本页内容