Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Douyin Relation Word Analysis

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

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
3 obligatoires · 1 facultatifs

Bac à sable

Entrée
End date (**must be a Sunday**), format YYYYMMDD
The keyword to analyze
Start date (recommend Monday), format YYYYMMDD
Platform, aweme=Douyin, toutiao=Toutiao
SortieExemple
Réponseoutputs · 112 B · 10 lignes
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      }
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON
Douyin$0.001 par appelJSON

Guides :Best Douyin API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Douyin Relation Word Analysis ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/index/relation-word avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Douyin Relation Word Analysis ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Douyin Relation Word Analysis accepte-t-elle ?

Obligatoire : end_date (string), keyword (string) et start_date (string). Facultatif : app_name (l’un de aweme, toutiao). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Douyin Relation Word Analysis ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Douyin ?

Non. Douyin Relation Word Analysis fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Douyin séparément.