oAuthorIdstring必須
Author's unique ID.
https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-distributionGet Douyin Creator Marketplace (Xingtu) follower or loyal-follower distribution data for a specified creator. Use it to compare audience-profile distributions during creator selection.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API returns follower distribution data for one creator on Douyin Creator Marketplace (Xingtu). It needs the creator's oAuthorId, and an optional authorType switches between all followers and loyal followers.
DIE_HARD_FAN) against all followers to see how the core audience differs.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"oAuthorId": "6870161898013196295"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
oAuthorId | string | Yes | Author's unique ID. |
authorType | string | No | Author type filter. |
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个省份广东(11%),江苏(7%),山东(6%)",
"distribution_list": [
{
"distribution_key": "广西",
"distribution_value": "4619384"
}
],
"image": [
"广东,江苏,山东居多"
],
"origin_type": 2,
"type": 4,
"type_display": "省份分布"
}
],
"last_update_time": "1793691175"
}
| Field | Meaning |
|---|---|
distributions[] | One block per audience dimension. This response includes province, city and device brand blocks. |
distributions[].type_display | Name of the dimension, for example 省份分布 (province), 城市分布 (city) or 设备品牌分布 (device brand). |
distributions[].description | Short summary text written by the platform. It names the top entries and their percentages, for example the top 3 provinces. |
distributions[].distribution_list[].distribution_key | Label of one bucket in the dimension, such as a province, city or phone brand. |
distributions[].distribution_list[].distribution_value | Value for that bucket, returned as a string. It looks like a count, not a percentage, so compare it with the other buckets in the same block. |
distributions[].image[] | Very short tag text that sums up the block, for example 北京居多. |
distributions[].type / origin_type | Numeric codes for the dimension. Use them to match the same dimension across calls. |
last_update_time | Unix timestamp in seconds, returned as a string. |
base_resp.status_code / base_resp.status_message | Call status from the platform. 0 with an empty message means success. |
authorType as FAN (default) or DIE_HARD_FAN to switch between followers and loyal followers.description, image and type_display is in Chinese.$0.021429 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"oAuthorId": "6870161898013196295",
"authorType": "FAN"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
oAuthorIdstring必須Author's unique ID.
authorTypestringAuthor type filter.
デフォルト: "FAN"
指定可能な値: FAN, DIE_HARD_FAN
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.021429 / 回 | JSON |
Douyin | $0.021429 / 回 | JSON |
Douyin | $0.021429 / 回 | JSON |
Douyin | $0.021429 / 回 | JSON |
Douyin | $0.071429 / 回 | JSON |
Douyin | $0.021429 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-distribution に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.021429、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: oAuthorId (string)。 任意: authorType(FAN, DIE_HARD_FAN のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Xingtu Follower Distribution は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。