Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin Content Guide Valid Dates

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/index/content-valid-date

Returns the valid date ranges supported by the Douyin content guide index. Helps clients determine allowable date intervals before requesting trend and guide statistics.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raVí dụ
Phản hồioutputs · 143 B · 10 dòng
[
  {
    "data": {
      "day": "20260818",
      "earliest_week": "20260524",
      "month": "20260731",
      "week": "20260816"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin Content Guide Valid Dates API

Returns the latest valid dates for the Douyin content guide index. It needs no input. The response gives one date for day, week and month data, plus the earliest week available.

Use cases

  • Set the maximum selectable date in a date picker for a Douyin content guide dashboard.
  • Check the latest day, week or month value before you request content trend data.
  • Limit weekly queries to the range between earliest_week and week.
  • Pick the most recent valid date for a scheduled report job.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-valid-date" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "day": "20261101",
  "earliest_week": "20260809",
  "month": "20261031",
  "week": "20261101"
}

Response fields

FieldMeaning
dayLatest valid date for daily data, as a YYYYMMDD string.
weekLatest valid date for weekly data, as a YYYYMMDD string.
earliest_weekEarliest valid date for weekly data. Use it as the lower bound of a weekly range.
monthLatest valid date for monthly data, as a YYYYMMDD string. The value in the example is the last day of a month.

Notes

  • Send an empty JSON object {}. The API has no request parameters.
  • All dates are strings in YYYYMMDD format.
  • Only the weekly data has an earliest date in this response. The response shows no earliest date for day or month.
  • For valid dates of other Douyin Index data types, 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Content Guide Valid Dates?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/index/content-valid-date với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Douyin Content Guide Valid Dates có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Douyin Content Guide Valid Dates chấp nhận những tham số nào?

Douyin Content Guide Valid Dates không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API Douyin Content Guide Valid Dates trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin Content Guide Valid Dates chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.