Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Douyin Relation Word Analysis

Documentación de la API
https://api.sandbase.ai/v1/api/douyin/index/relation-word

Returns search and content relation word graphs and rankings for a keyword. Query by target keyword, platform selection, and weekly date intervals.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
3 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
End date (**must be a Sunday**), format YYYYMMDD
The keyword to analyze
Start date (recommend Monday), format YYYYMMDD
Platform, aweme=Douyin, toutiao=Toutiao
SalidaEjemplo
Respuestaoutputs · 112 B · 10 líneas
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      }
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

Douyin Relation Word Analysis API

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.

Use cases

  • Find which words people connect to a topic such as 人工智能 in a given week.
  • Compare the related words for one keyword on Douyin (aweme) and Toutiao (toutiao).
  • Check how the word associations around a brand or topic change between weekly periods.

Request

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.

Parameters

NameTypeRequiredDescription
end_datestringYesEnd date (must be a Sunday), format YYYYMMDD
keywordstringYesThe keyword to analyze
start_datestringYesStart date (recommend Monday), format YYYYMMDD
app_namestringNoPlatform, aweme=Douyin, toutiao=Toutiao

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "BaseResp": {
    "StatusCode": 500,
    "StatusMessage": "日期格式需满足%Y%m%d,且关联分析终止日期为周日"
  }
}

Response fields

FieldMeaning
BaseRespStatus wrapper that the response returns. Check it first to see whether the call worked.
BaseResp.StatusCodeNumeric result code. 500 means the request failed, as in the sample response.
BaseResp.StatusMessageText reason for the result. The sample says the date must be in %Y%m%d format and the end date must be a Sunday.

Notes

  • The sample request used values like 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.
  • Use Douyin Relation Analysis Valid Dates to find dates that work for relation analysis.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON

Guías:Best Douyin API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Douyin Relation Word Analysis?

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.

¿Cuánto cuesta la API de Douyin Relation Word Analysis?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Douyin Relation Word Analysis?

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.

¿Qué devuelve la API de Douyin Relation Word Analysis?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Douyin?

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.