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

Douyin Keyword Crowd Portrait

Dokumentacja API
https://api.sandbase.ai/v1/api/douyin/index/portrait

Returns crowd portrait analysis for a specific keyword over a defined date range. Allows querying data for Douyin or Toutiao platforms.

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

Playground

Wejście
End date YYYYMMDD
The keyword to analyze
Start date YYYYMMDD
Platform, aweme=Douyin, toutiao=Toutiao
WyjściePrzykład
Odpowiedźoutputs · 120 B · 10 wierszy
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 500,
        "StatusMessage": "关键词不为空"
      }
    }
  }
]

Przykłady

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

README API

Douyin Keyword Crowd Portrait API

Returns crowd portrait analysis for one keyword over a date range on Douyin or Toutiao. It needs a keyword, a start_date and an end_date. app_name is optional and picks the platform.

Use cases

  • Check which audience a search term such as 人工智能 attracts on Douyin.
  • Compare the crowd behind the same keyword on Douyin (aweme) and Toutiao (toutiao).
  • Run the same keyword over different date ranges to see how its audience changes.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/portrait" \
  -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 YYYYMMDD
keywordstringYesThe keyword to analyze
start_datestringYesStart date 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 block of the response. In the sample call it is the only top-level key.
BaseResp.StatusCodeNumeric status of the call. The sample call returned 500, which means the request failed.
BaseResp.StatusMessageText that explains the status. The sample call returned 日期格式满足%Y%m%d, which says the date must match the %Y%m%d format.

Notes

  • Send start_date and end_date as YYYYMMDD strings, for example 20241101. The sample request used Unix-style numbers such as 1730044800, and the call failed with the date format error shown above.
  • Set app_name to aweme for Douyin or toutiao for Toutiao.
  • To pick dates that have data, call Douyin Index Valid Dates first.

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 Keyword Crowd Portrait?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/index/portrait 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 Keyword Crowd Portrait?

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

Jakie parametry przyjmuje API Douyin Keyword Crowd Portrait?

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 Keyword Crowd Portrait?

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 Keyword Crowd Portrait 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.