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

Douyin Content Consumer Portrait

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

Returns consumer viewer portrait data for audience members watching videos in a specified Douyin category over a given week or month.

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

Playground

Wejście
End date YYYYMMDD, must align with period
Category ID (**required, does NOT support 0=all**, must pass a specific category ID)
"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)
WyjściePrzykład
Odpowiedźoutputs · 130 B · 10 wierszy
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

Przykłady

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

README API

Douyin Content Consumer Portrait API

Returns viewer portrait data for the audience watching videos in one Douyin category over a week or a month. You send a specific tag_id and an end_date, and you can set period to week or month.

Use cases

  • Check who watches a single Douyin video category before you plan content for it.
  • Compare the viewer portrait of one category across weekly or monthly periods.
  • Pull the audience profile of a category to support a brand or ad targeting brief.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_date": "1735660799", "tag_id": "2027"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
end_datestringYesEnd date YYYYMMDD, must align with period
tag_idstringYesCategory ID (required, does NOT support 0=all, must pass a specific category ID)
periodstringNo"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)

Example response

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

{
  "BaseResp": {
    "StatusCode": -1,
    "StatusMessage": "end_date非当前周期最后一天"
  }
}

Response fields

FieldMeaning
BaseRespStatus block returned with the request result.
BaseResp.StatusCodeResult code. The sample call returned -1, which marks a failed request.
BaseResp.StatusMessageText reason for the result. The sample call returned a message saying end_date is not the last day of the current period.

Notes

  • The sample call failed because end_date was 1735660799, which is not a YYYYMMDD date. Send a value such as 20260331.
  • With period set to week, end_date must be a Sunday. With period set to month, end_date must be the last day of the month.
  • tag_id must be a specific category ID. The value 0 for all categories is not accepted.
  • To find dates that have data, call Douyin Index Valid Dates.

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 Content Consumer Portrait?

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

Wymagane: end_date (string) i tag_id (string). Opcjonalne: period (jedna z opcji: week, month). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Douyin Content Consumer 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 Content Consumer 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.