end_datestringerforderlich
End date YYYYMMDD, must align with period
https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portraitReturns consumer viewer portrait data for audience members watching videos in a specified Douyin category over a given week or month.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD, must align with period |
tag_id | string | Yes | Category ID (required, does NOT support 0=all, must pass a specific category ID) |
period | string | No | "week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status block returned with the request result. |
BaseResp.StatusCode | Result code. The sample call returned -1, which marks a failed request. |
BaseResp.StatusMessage | Text reason for the result. The sample call returned a message saying end_date is not the last day of the current period. |
end_date was 1735660799, which is not a YYYYMMDD date. Send a value such as 20260331.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.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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 '{
"tag_id": "example",
"end_date": "example"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
end_datestringerforderlichEnd date YYYYMMDD, must align with period
tag_idstringerforderlichCategory ID (**required, does NOT support 0=all**, must pass a specific category ID)
periodstring"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)
Mögliche Werte: week, month
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Douyin Content Consumer PortraitDiese API Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Anleitungen:Best Douyin API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: end_date (string) und tag_id (string). Optional: period (eines von week, month). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Douyin Content Consumer Portrait läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Douyin API beantragen.