Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Douyin Relation Word Analysis

Docs da 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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
3 obrigatórios · 1 opcionais

Playground

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

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON
Douyin$0.001 por chamadaJSON

Guias:Best Douyin API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API Douyin Relation Word Analysis?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/douyin/index/relation-word com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Douyin Relation Word Analysis?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Douyin Relation Word Analysis aceita?

Obrigatórios: end_date (string), keyword (string) e start_date (string). Opcionais: app_name (um de aweme, toutiao). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Douyin Relation Word Analysis retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Douyin ou de uma chave de API?

Não. Douyin Relation Word Analysis funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Douyin separadamente.