← 返回目录
📁 API Reference › Catalog Event Sources

获取事件源绑定信息

您可以使用本接口获取商务中心下商品库的事件源绑定信息。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{30%}|v1.2{35%}|v1.3{35%}| |---|---|---| |接口路径|/v1.2/catalog/eventsource_bind/get/|/v1.3/catalog/eventsource_bind/get/| |请求参数类型|bc_id: number<br>catalog_id: number|bc_id: string<br>catalog_id: string| |返回参数类型|app_id: number|app_id`: string|

## 请求

**地址** https://business-api.tiktok.com/open_api/v1.3/catalog/eventsource_bind/get/

**方法** GET

**Header**

```xtable
|字段|类型|描述|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。|
|Content-Type {必填}|string|请求信息类型。<br>允许格式:`application/json`。|

参数

|字段|类型|描述|
|---|---|---|
|bc_id {必填}|string| 商务中心ID。|
|catalog_id {必填}|string| 商品库ID。|

示例

(code)
curl --location --request GET 'https://business-api.tiktok.com/open_api/v1.3/catalog/eventsource_bind/get/' \
--header 'Access-Token: {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bc_id": {{bc_id}},
    "catalog_id": {{catalog_id}}
}'
(/code)

返回

|字段|类型|描述|
|---|---|---|
|code |number|返回码,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|message |string|返回信息,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|data |object|返回数据。  |
#|catalog_id|integer|商品库ID。|
#|event_sources|object[]|事件源数据。每个事件源是一个对象。|
##|event_source_name|string|事件源名。|
##|app_id|string|移动应用ID。|
##|pixel_code|string|Pixel代码。|
|request_id |string|请求的日志id,唯一标识一个请求。  |

示例

(code JSON JSON)
{
  "code": 0,
  "message": "OK",
  "request_id": "{{request_id}}",
  "data": {
    "catalog_id": "{{catalog_id}}",
    "event_sources": [
      {
        "app_id": "{{app_id}}",
        "event_source_name": "{{event_source_name}}",
        "pixel_code": null
      }
    ]
  }
}
(/code)

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →