sec_uidstringerforderlich
User sec_id
https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-listReturns metric trend records for a Douyin account over time, including new likes, works, comments, or shares broken down by hour or day.
[
{
"data": {
"code": 0,
"data": {
"avg": 31046.3595505618,
"trends": [
{
"datetime": 1783440000,
"value": 1600
},
{
"datetime": 1783526400,
"value": 1057
},
{
"datetime": 1783612800,
"value": 1023
},
"… 86 more items in the full response"
]
},
"extra": {
"now": 1791290506000
},
"message": ""
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns a time series of one metric for a Douyin account, plus the average value across the series. It needs the account's sec_uid. You can pick the metric with option and the interval with date_window.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_id |
date_window | integer | No | Time window, 1 by hour 2 by day |
option | integer | No | Option, 2 New like 3 New work 4 New comment 5 New share |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"avg": 24082.404494382023,
"trends": [
{
"datetime": 1785859200,
"value": 28479
}
]
},
"extra": {
"now": 1793691105000
},
"message": ""
}
| Field | Meaning |
|---|---|
data.trends[] | List of data points in time order. Each item is one interval of the chosen metric. |
data.trends[].datetime | Start time of the interval as a Unix timestamp in seconds. |
data.trends[].value | Metric count for that interval. The metric depends on the option you send. |
data.avg | Average of the metric across the returned interval values. |
code / message | code is 0 on success. message is an empty string when there is no error. |
sec_uid from an account entry in Douyin Hot Account List or Douyin Hot Account Search.option values: 2 new likes, 3 new works, 4 new comments, 5 new shares. date_window values: 1 by hour, 2 by day.datetime values differ by 86400, which matches one-day steps.$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/billboard/hot-account-trends-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
}'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.
sec_uidstringerforderlichUser sec_id
date_windowintegerTime window, 1 by hour 2 by day
optionintegerOption, 2 New like 3 New work 4 New comment 5 New share
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"code": 0,
"data": {
"avg": 31046.3595505618,
"trends": [
{
"datetime": 1783440000,
"value": 1600
},
{
"datetime": 1783526400,
"value": 1057
},
{
"datetime": 1783612800,
"value": 1023
},
"… 86 more items in the full response"
]
},
"extra": {
"now": 1791290506000
},
"message": ""
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Douyin Account Metric TrendsDiese 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/billboard/hot-account-trends-list 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: sec_uid (string). Optional: date_window (integer) und option (integer). 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 Account Metric Trends 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.