end_datestringrequerido
End date (**must be a Sunday**), format YYYYMMDD
https://api.sandbase.ai/v1/api/douyin/index/relation-wordReturns search and content relation word graphs and rankings for a keyword. Query by target keyword, platform selection, and weekly date intervals.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
}
}
}
]Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
This API returns search and content relation word graphs and rankings on Douyin or Toutiao for a keyword. It needs a keyword, a start_date and an end_date. app_name is optional and selects the platform.
人工智能 in a given week.aweme) and Toutiao (toutiao).curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/relation-word" \
-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 (must be a Sunday), format YYYYMMDD |
keyword | string | Yes | The keyword to analyze |
start_date | string | Yes | Start date (recommend Monday), format 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 wrapper that the response returns. Check it first to see whether the call worked. |
BaseResp.StatusCode | Numeric result code. 500 means the request failed, as in the sample response. |
BaseResp.StatusMessage | Text reason for the result. The sample says the date must be in %Y%m%d format and the end date must be a Sunday. |
1735660799 for start_date and end_date, and the API rejected them. Send dates as YYYYMMDD, for example 20241229.end_date must be a Sunday. Use a Monday for start_date so the range covers whole weeks.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/relation-word" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "example",
"end_date": "example",
"start_date": "example"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
end_datestringrequeridoEnd date (**must be a Sunday**), format YYYYMMDD
keywordstringrequeridoThe keyword to analyze
start_datestringrequeridoStart date (recommend Monday), format YYYYMMDD
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
Valores posibles: aweme, toutiao
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
}
}
}
]Explorar más
| API | Precio | Respuesta |
|---|---|---|
Douyin Relation Word AnalysisEsta API Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/index/relation-word con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: end_date (string), keyword (string) y start_date (string). Opcionales: app_name (una de aweme, toutiao). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Douyin Relation Word Analysis funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.