end_datestringobbligatorio
End date YYYYMMDD, must align with period
https://api.sandbase.ai/v1/api/douyin/index/content-creative-durationReturns the video duration distribution for a specified Douyin category. Breaks down content duration patterns across weekly or monthly periods.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns the video duration distribution for one Douyin category over a week or a month. You send a category tag_id, an end_date, and optionally a period.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "tag_id": "2027"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD, must align with period |
tag_id | string | Yes | Category ID (required, does NOT support 0=all, must pass a specific category ID) |
period | string | No | "week" (end_date must be a Sunday) or "month" (end_date must be month-end) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status block for the call. The response you get when the request is rejected contains only this object. |
BaseResp.StatusCode | Result code. -1 means the request failed. A failed call returns no duration data. |
BaseResp.StatusMessage | Reason for the failure, in Chinese. The value end_date非当前周期最后一天 means end_date is not the last day of the period. |
end_date set to 1735660799 returned StatusCode -1. Send end_date as YYYYMMDD instead, for example 20241229.period set to week, end_date must be a Sunday. With month, it must be the last day of the month.tag_id must be a specific category ID. 0 for all categories is not accepted.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "example",
"end_date": "example"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
end_datestringobbligatorioEnd date YYYYMMDD, must align with period
tag_idstringobbligatorioCategory ID (**required, does NOT support 0=all**, must pass a specific category ID)
periodstring"week" (end_date must be a Sunday) or "month" (end_date must be month-end)
Valori possibili: week, month
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin Content Creative DurationQuesta API Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: end_date (string) e tag_id (string). Facoltativi: period (uno tra week, month). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Douyin Content Creative Duration funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.