Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Douyin Relation Word Analysis

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

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
3 wymaganych · 1 opcjonalnych

Playground

Wejście
End date (**must be a Sunday**), format YYYYMMDD
The keyword to analyze
Start date (recommend Monday), format YYYYMMDD
Platform, aweme=Douyin, toutiao=Toutiao
WyjściePrzykład
Odpowiedźoutputs · 112 B · 10 wierszy
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      }
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

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

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON
Douyin$0.001 za wywołanieJSON

Przewodniki:Best Douyin API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Douyin Relation Word Analysis?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/index/relation-word z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Douyin Relation Word Analysis?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Douyin Relation Word Analysis?

Wymagane: end_date (string), keyword (string) i start_date (string). Opcjonalne: app_name (jedna z opcji: aweme, toutiao). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Douyin Relation Word Analysis?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Douyin lub klucza API?

Nie. Douyin Relation Word Analysis działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.