Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Douyin Content Consumer Portrait

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

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
2 obbligatori · 1 opzionali

Playground

Input
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)
OutputEsempio
Rispostaoutputs · 130 B · 10 righe
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Douyin$0.001 per chiamataJSON
Douyin$0.001 per chiamataJSON
Douyin$0.001 per chiamataJSON
Douyin$0.001 per chiamataJSON
Douyin$0.001 per chiamataJSON
Douyin$0.001 per chiamataJSON

Guide:Best Douyin API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Douyin Content Consumer Portrait?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Douyin Content Consumer Portrait?

$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Douyin Content Consumer Portrait?

Richiesti: end_date (string) e tag_id (string). Facoltativi: period (uno tra week, month). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Douyin Content Consumer Portrait?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Douyin?

No. Douyin Content Consumer Portrait funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.