o_author_idstring필수
Creator ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distributionReturns audience profile metrics for a Xingtu creator, including gender, age, geographic region, and interests based on creator ID.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "男性居多,占比50%",
"distribution_list": [
{
"distribution_key": "male",
"distribution_value": "6169425"
},
{
"distribution_key": "female",
"distribution_value": "6155171"
}
],
"image": [
"男性居多"
],
"origin_type": 0,
"type": 1,
"type_display": "性别分布"
},
{
"description": "一线居多,占比37%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "1048956"
},
{
"distribution_key": "二线",
"distribution_value": "2447991"
},
{
"distribution_key": "一线",
"distribution_value": "4399542"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "新锐白领居多,占比26%",
"distribution_list": [
{
"distribution_key": "资深中产",
"distribution_value": "649188"
},
{
"distribution_key": "Z世代",
"distribution_value": "2670083"
},
{
"distribution_key": "都市蓝领",
"distribution_value": "1177800"
},
"… 5 more items in the full response"
],
"image": [
"新锐白领居多"
],
"origin_type": 10,
"type": 1024,
"type_display": "八大人群分布"
},
"… 7 more items in the full response"
],
"last_update_time": "1790823903"
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Returns the audience profile of a Xingtu creator on Douyin as a list of distributions, such as interests, gender and audience groups. It needs the creator ID in o_author_id.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7029342444797820939"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator ID |
platform_channel | integer | No | Platform channel, default 1 |
platform_source | integer | No | Platform source, default 1 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "分布最多的3个兴趣随拍(53%),体育(9%),社会时政(8%)",
"distribution_list": [
{
"distribution_key": "随拍",
"distribution_value": "3138780"
}
],
"image": [
"随拍,体育,社会时政居多"
],
"origin_type": 6,
"type": 64,
"type_display": "兴趣分布"
}
],
"last_update_time": "1793691160"
}
| Field | Meaning |
|---|---|
distributions[] | One audience breakdown per item. Each item has a type, a description and a list of counts. |
distributions[].type_display | Name of the breakdown, for example 兴趣分布 (interests), 性别分布 (gender) or 八大人群分布 (eight audience groups). |
distributions[].type / origin_type | Numeric codes that identify the breakdown type. Use them to pick a breakdown in code instead of matching the display name. |
distributions[].description | Short summary text of the breakdown, such as which group is largest and its percentage share. |
distributions[].distribution_list[].distribution_key | Label of one category in the breakdown, such as an interest name, male or female, or an audience group name. |
distributions[].distribution_list[].distribution_value | Count for that category, returned as a string. Divide by the sum of the list to get a share. |
distributions[].image[] | Short text label that restates the main finding of the breakdown. |
last_update_time | Unix timestamp in seconds, returned as a string. |
base_resp.status_code / base_resp.status_message | Status of the call. 0 with an empty message means success. |
platform_source and platform_channel are optional integers and both default to 1.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "6677767167234015243"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
o_author_idstring필수Creator ID
platform_channelintegerPlatform channel, default 1
platform_sourceintegerPlatform source, default 1
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "男性居多,占比50%",
"distribution_list": [
{
"distribution_key": "male",
"distribution_value": "6169425"
},
{
"distribution_key": "female",
"distribution_value": "6155171"
}
],
"image": [
"男性居多"
],
"origin_type": 0,
"type": 1,
"type_display": "性别分布"
},
{
"description": "一线居多,占比37%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "1048956"
},
{
"distribution_key": "二线",
"distribution_value": "2447991"
},
{
"distribution_key": "一线",
"distribution_value": "4399542"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "新锐白领居多,占比26%",
"distribution_list": [
{
"distribution_key": "资深中产",
"distribution_value": "649188"
},
{
"distribution_key": "Z世代",
"distribution_value": "2670083"
},
{
"distribution_key": "都市蓝领",
"distribution_value": "1177800"
},
"… 5 more items in the full response"
],
"image": [
"新锐白领居多"
],
"origin_type": 10,
"type": 1024,
"type_display": "八大人群分布"
},
"… 7 more items in the full response"
],
"last_update_time": "1790823903"
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.002 / 호출 | JSON |
Douyin | $0.002 / 호출 | JSON |
Douyin | $0.002 / 호출 | JSON |
Douyin | $0.01 / 호출 | JSON |
Douyin | $0.003 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distribution에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.002, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: o_author_id (string). 선택: platform_channel (integer) 및 platform_source (integer). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin Xingtu Author Fan Distribution은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.