end_datestringobbligatorio
End date YYYYMMDD
https://api.sandbase.ai/v1/api/douyin/index/portraitReturns crowd portrait analysis for a specific keyword over a defined date range. Allows querying data for Douyin or Toutiao platforms.
[
{
"data": {
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "关键词不为空"
}
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns crowd portrait analysis for one keyword over a date range on Douyin or Toutiao. It needs a keyword, a start_date and an end_date. app_name is optional and picks the platform.
人工智能 attracts on Douyin.aweme) and Toutiao (toutiao).curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "start_date": "1730044800"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD |
keyword | string | Yes | The keyword to analyze |
start_date | string | Yes | Start date YYYYMMDD |
app_name | string | No | Platform, aweme=Douyin, toutiao=Toutiao |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "日期格式满足%Y%m%d"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status block of the response. In the sample call it is the only top-level key. |
BaseResp.StatusCode | Numeric status of the call. The sample call returned 500, which means the request failed. |
BaseResp.StatusMessage | Text that explains the status. The sample call returned 日期格式满足%Y%m%d, which says the date must match the %Y%m%d format. |
start_date and end_date as YYYYMMDD strings, for example 20241101. The sample request used Unix-style numbers such as 1730044800, and the call failed with the date format error shown above.app_name to aweme for Douyin or toutiao for Toutiao.$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/portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "example",
"end_date": "example",
"start_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
keywordstringobbligatorioThe keyword to analyze
start_datestringobbligatorioStart date YYYYMMDD
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
Valori possibili: aweme, toutiao
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "关键词不为空"
}
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin Keyword Crowd PortraitQuesta 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/portrait 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), keyword (string) e start_date (string). Facoltativi: app_name (uno tra aweme, toutiao). 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 Keyword Crowd Portrait 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.