← 返回目录
📁 API Reference

用户信息

获取用户信息

您可以使用本接口获取已获得访问某一开发者应用的授权的用户信息。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{30%}|v1.2{35%}|v1.3{35%}| |---|---|---| |接口路径|/v1.2/user/info/|/v1.3/user/info/| |返回参数名称和类型 |id: number|core_user_id: string| |新增返回参数| / |avatar_url`|


## 请求
**地址**
https://business-api.tiktok.com/open_api/v1.3/user/info/

**方法** GET

**Header**
```xtable
|字段|类型|描述|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌,可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。  |

示例

(code curl http)
curl --get -H "Access-Token:xxx" \
https://business-api.tiktok.com/open_api/v1.3/user/info/
(/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|返回数据。  |
#|display_name |string| 用户昵称。 |
#|email |string| 电子邮箱。<br><p><span style="color:darkred"><b>注意</b></span>:电子邮箱已作数据脱敏处理。 |
#|core_user_id|string|TikTok for Business 用户 ID。 |
#|create_time |timestamp| 用户创建时间。 |
#| avatar_url | string | 用户头像的URL。|
|request_id |string|请求的日志ID,唯一标识一个请求。  |

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
  "message": "OK",
  "code": 0,
  "data": {
    "display_name": "Jane Doe",
    "id": 75960823000,
    "email": "j***e@example.org",
    "create_time":1561518952
  },
  "request_id": "2020051106295001023125009013359"
}
(/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 每日平台更新简报 →