Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin Account Metric Trends

เอกสาร API
https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list

Returns metric trend records for a Douyin account over time, including new likes, works, comments, or shares broken down by hour or day.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
User sec_id
Time window, 1 by hour 2 by day
Option, 2 New like 3 New work 4 New comment 5 New share
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 521 B · 29 บรรทัด
[
  {
    "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": ""
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Douyin Account Metric Trends API

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.

Use cases

  • Chart daily new likes for a creator to see which days performed best.
  • Compare new works, comments, and shares for an account over the same period.
  • Switch to hourly values to find the times of day when an account gains the most engagement.
  • Use the average value as a baseline to flag days that rise far above normal.

Request

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.

Parameters

NameTypeRequiredDescription
sec_uidstringYesUser sec_id
date_windowintegerNoTime window, 1 by hour 2 by day
optionintegerNoOption, 2 New like 3 New work 4 New comment 5 New share

Example response

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": ""
}

Response fields

FieldMeaning
data.trends[]List of data points in time order. Each item is one interval of the chosen metric.
data.trends[].datetimeStart time of the interval as a Unix timestamp in seconds.
data.trends[].valueMetric count for that interval. The metric depends on the option you send.
data.avgAverage of the metric across the returned interval values.
code / messagecode is 0 on success. message is an empty string when there is no error.

Notes

  • Get 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.
  • In the example response, consecutive datetime values differ by 86400, which matches one-day steps.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON

คู่มือ:Best Douyin API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin Account Metric Trends API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-trends-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin Account Metric Trends API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin Account Metric Trends API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: sec_uid (string). ตัวเลือก: date_window (integer) และ option (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin Account Metric Trends API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin Account Metric Trends ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก