kolIdstringwajib
User kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
https://api.sandbase.ai/v1/api/douyin/xingtu/kol-cp-info-v1Get expected campaign metrics for a Douyin KOL from XingTu: expected views, CPM and CPE estimates, and hot-video counts.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"expect_cpe": {
"cpe_21_60": "106",
"cpe_60": "143"
},
"expect_cpm": {
"cpm_21_60": "4415",
"cpm_60": "5919"
},
"expect_vv": {
"value": 312535
},
"hot_item": {
"value": 1800
}
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Returns the expected campaign metrics XingTu shows for one Douyin creator: expected views, CPM and CPE estimates, and a hot-video count. It needs one input, the creator's XingTu kolId.
expect_vv.value.hot_item.value to see how many hot videos XingTu counts for them.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/kol-cp-info-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kolId": "7038603512770461703"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
kolId | string | Yes | User kolId, can be obtained from the following interfaces: douyin/xingtu/xingtu-kolid-by-uid; douyin/xingtu/xingtu-kolid-by-sec-user-id; douyin/xingtu/xingtu-kolid-by-unique-id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"expect_cpe": {
"cpe_21_60": "47",
"cpe_60": "63"
},
"expect_cpm": {
"cpm_21_60": "2039",
"cpm_60": "2733"
},
"expect_vv": {
"value": 676711
},
"hot_item": {
"value": 1800
}
}
| Field | Meaning |
|---|---|
expect_vv.value | Expected video views for the KOL, as a number. |
expect_cpm.cpm_21_60 | Expected CPM for videos in the 21 to 60 range, returned as a string. The key name suggests a 21 to 60 second video length. |
expect_cpm.cpm_60 | Expected CPM for videos in the 60 range, returned as a string. The key name suggests videos longer than 60 seconds. |
expect_cpe.cpe_21_60 | Expected CPE for the 21 to 60 range, returned as a string. |
expect_cpe.cpe_60 | Expected CPE for the 60 range, returned as a string. |
hot_item.value | Hot-video count for the KOL, as a number. |
base_resp.status_code / base_resp.status_message | Status of the call. 0 with an empty message means it succeeded. |
kolId from Douyin XingTu kolId Lookup, Douyin XingTu KOL ID by User ID or Douyin XingTu KOL ID by Unique ID.kolId is a numeric ID sent as a string, for example 7038603512770461703.$0.02 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/kol-cp-info-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kolId": "7038603512770461703"
}'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.
kolIdstringwajibUser kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"expect_cpe": {
"cpe_21_60": "106",
"cpe_60": "143"
},
"expect_cpm": {
"cpm_21_60": "4415",
"cpm_60": "5919"
},
"expect_vv": {
"value": 312535
},
"hot_item": {
"value": 1800
}
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.02 per panggilan | JSON |
Douyin | $0.02 per panggilan | JSON |
Douyin | $0.02 per panggilan | JSON |
Douyin | $0.02 per panggilan | JSON |
Douyin | $0.02 per panggilan | JSON |
Douyin | $0.02 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/xingtu/kol-cp-info-v1 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.02 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: kolId (string). 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 XingTu KOL Cost Metrics 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.