Douyin Brand Hot Videos Time Scope
https://api.sandbase.ai/v1/api/douyin/index/brand-hot-videos-time-scopeReturns the queryable time scope for Douyin brand hot videos. Allows systems to check valid date ranges before querying related brand analytics endpoints.
- Harga
- $0.001USD / panggilan
- Metode
- POST
- Respons
- JSON
- Parameter
- 0 wajib · 0 opsional
Playground
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
README API
Douyin Brand Hot Videos Time Scope API
Returns the date range you can query for Douyin brand hot videos. It needs no input. The response gives the first and last week of the range and the latest available day.
Use cases
- Read
latest_dayto set the default end date in a brand hot video report. - Limit a date picker to the range from
start_weektoend_week. - Check a requested date against the range before you call a brand analytics endpoint.
- Run the call on a schedule to see when the range moves forward.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-hot-videos-time-scope" \
-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.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"end_week": "20261101",
"latest_day": "20261101",
"start_week": "20260809"
}
Response fields
| Field | Meaning |
|---|---|
start_week | First date of the queryable range, written as YYYYMMDD (for example 20260809). |
end_week | Last date of the queryable range, written as YYYYMMDD. |
latest_day | Most recent day in the range, written as YYYYMMDD. |
BaseResp.StatusCode | Status code of the call. 0 means the call succeeded. |
BaseResp.StatusMessage | Status text. It is an empty string when the call succeeds. |
Notes
- Send an empty JSON object
{}as the body. The API has no request parameters. - All dates use the compact
YYYYMMDDformat with no separators. - For other valid date ranges in Douyin Index, call Douyin Index Valid Dates.
- To look up a brand before you query its data, call Douyin Brand Search Suggestions.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-hot-videos-time-scope" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autentikasi
Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
3. Parameter
Tidak ada schema parameter yang dipublikasikan untuk API ini.
4. Respons
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
API Terkait
| API | Harga | Respons |
|---|---|---|
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
FAQ
Bagaimana cara menggunakan API Douyin Brand Hot Videos Time Scope?
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/brand-hot-videos-time-scope dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Berapa biaya API Douyin Brand Hot Videos Time Scope?
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Parameter apa yang diterima API Douyin Brand Hot Videos Time Scope?
Douyin Brand Hot Videos Time Scope tidak memiliki parameter input; kirim body JSON kosong.
Apa yang dikembalikan API Douyin Brand Hot Videos Time Scope?
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Apakah saya memerlukan akun developer atau kunci API Douyin?
Tidak. Douyin Brand Hot Videos Time Scope berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.
