o_author_idstringwajib
Creator ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distributionGet Author Video Distribution on Douyin. Returns the platform data as structured JSON.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
This API returns the content category breakdown of one Douyin creator's short videos, as listed on Xingtu. It needs the creator ID in o_author_id. Each row shows a category name, a video count, and that category's share of the total.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7112600044674482187", "platform_source": 1, "platform_channel": 1}'
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, 1 for short video |
platform_source | integer | No | Platform source, 1 for Douyin |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"video_content_distribution": [
{
"cnt": 4,
"id": "0",
"name": "生活家居",
"proportion": 0.6667
}
]
}
| Field | Meaning |
|---|---|
video_content_distribution[] | One entry per content category found in the creator's videos. The list is sorted from the largest share to the smallest in the sample. |
video_content_distribution[].name | Category name in Chinese, for example 生活家居 (home and living) or 时尚 (fashion). |
video_content_distribution[].cnt | Number of the creator's videos counted in this category. |
video_content_distribution[].proportion | Share of the counted videos that fall in this category, as a decimal. For example 0.6667 means about two thirds. |
video_content_distribution[].id | Category ID. It is "0" for every row in this response, so use name to tell categories apart. |
base_resp.status_code / base_resp.status_message | Status of the request. 0 with an empty message means it succeeded. |
proportion values add up to about 1, and the cnt values add up to the number of videos counted.platform_source at 1 for Douyin and platform_channel at 1 for short video.$0.002 per successful call. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "7112600044674482187",
"platform_source": 1,
"platform_channel": 1
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
o_author_idstringwajibCreator ID
platform_sourceintegerPlatform source, 1 for Douyin
Default: 1
platform_channelintegerPlatform channel, 1 for short video
Default: 1
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.002 per panggilan | JSON |
Douyin | $0.002 per panggilan | JSON |
Douyin | $0.002 per panggilan | JSON |
Douyin | $0.01 per panggilan | JSON |
Douyin | $0.003 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distribution dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.002 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: o_author_id (string). Opsional: platform_source (integer) dan platform_channel (integer). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin Author Video Distribution berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.