kolIdstringrequired
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
}
}
}
]Select an example to load its inputs and result into the 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.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-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" \
--data-binary @- <<'SANDBASE_JSON'
{
"kolId": "7038603512770461703"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
kolIdstringrequiredUser 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`
Saved example response for this API; no live request is made when viewing it.
[
{
"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
}
}
}
]Explore more
| API | Price | Response |
|---|---|---|
Douyin XingTu KOL Cost MetricsThis API Douyin | $0.02 per call | JSON |
Douyin | $0.02 per call | JSON |
Douyin | $0.02 per call | JSON |
Douyin | $0.02 per call | JSON |
Douyin | $0.02 per call | JSON |
Douyin | $0.02 per call | JSON |
Questions
Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu/kol-cp-info-v1 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
Required: kolId (string). The Parameters table and the Playground on this page list every field.
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
No. Douyin XingTu KOL Cost Metrics runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.