oAuthorIdstring必須
Author's unique ID.
https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distributionGet Douyin Creator Marketplace (Xingtu) live audience or follower watch-distribution data for a creator and selected live-room type. Use it to assess live audience fit for a campaign.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns watch-distribution breakdowns for a creator's Douyin live streams on Xingtu, such as city, city tier and audience segment. It needs the creator's oAuthorId. You can choose the audience type (liveCrowdType) and the live room type (liveType).
AUDIENCE and once with FANS to see how live viewers differ from followers.ECOMMERCE and GAME live rooms for the same creator to pick the right live format.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-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. |
liveCrowdType | string | No | Live audience profile type. |
liveType | string | No | Live room 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": "分布最多的1个城市北京(4%)",
"distribution_list": [
{
"distribution_key": "北京",
"distribution_value": "2203379"
}
],
"image": [
"北京居多"
],
"origin_type": 8,
"type": 256,
"type_display": "城市分布"
}
]
}
| Field | Meaning |
|---|---|
distributions[] | One entry per breakdown type. Each entry holds a summary text and a list of values. |
distributions[].type_display | Name of the breakdown, such as 城市分布 (city distribution), 八大人群分布 (eight-segment audience distribution) or 城市等级分布 (city tier distribution). |
distributions[].description | Short text that names the top group and its share, for example 新锐白领居多,占比20%. |
distributions[].distribution_list[].distribution_key | Label of one group in the breakdown, such as a city name, a city tier or an audience segment. |
distributions[].distribution_list[].distribution_value | Value for that group, returned as a string of digits. Convert it to a number before you sort or add values. |
distributions[].image[] | Short label text for the top group, such as 北京居多. |
distributions[].type / origin_type | Numeric codes for the breakdown type. Use type to match the same breakdown across calls. |
base_resp.status_code / base_resp.status_message | Status of the request. 0 with an empty message appears in this response. |
oAuthorId from Douyin Xingtu Creator Search.liveCrowdType accepts AUDIENCE or FANS. liveType accepts ALL, GAME, ECOMMERCE or OTHER. Both are optional.$0.021429 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"oAuthorId": "6870161898013196295"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
oAuthorIdstring必須Author's unique ID.
liveCrowdTypestringLive audience profile type.
指定可能な値: AUDIENCE, FANS
liveTypestringLive room type filter.
指定可能な値: ALL, GAME, ECOMMERCE, OTHER
この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/aggregator-author-live-watch-distribution に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.021429、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: oAuthorId (string)。 任意: liveCrowdType(AUDIENCE, FANS のいずれか) と liveType(ALL, GAME, ECOMMERCE, OTHER のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Xingtu Live Watch Distribution は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。