Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Douyin Content Consumer Portrait

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
2 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
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)
SalidaEjemplo
Respuestaoutputs · 130 B · 10 líneas
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON

Guías:Best Douyin API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Douyin Content Consumer Portrait?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Douyin Content Consumer Portrait?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Douyin Content Consumer Portrait?

Requeridos: end_date (string) y tag_id (string). Opcionales: period (una de week, month). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin Content Consumer Portrait?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Douyin?

No. Douyin Content Consumer Portrait funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.