brand_namestringwajib
Brand info
https://api.sandbase.ai/v1/api/douyin/index/brand-cyclesReturns periodic brand popularity and cycle analysis data across platforms for a specified brand name and date range.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns periodic brand popularity and cycle analysis data for a brand on Douyin. You send brand_name, start_date and end_date, and can set app_name to aweme or toutiao.
aweme with the same range on toutiao.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-cycles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brand_name": "华为", "end_date": "20260412", "start_date": "20260406"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
brand_name | string | Yes | Brand info |
end_date | string | Yes | End date YYYYMMDD |
start_date | string | Yes | Start date YYYYMMDD |
app_name | string | No | Platform |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "系统异常"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status object. It appears in the response from the sample request. |
BaseResp.StatusCode | Numeric status of the call. The sample request returned -1, which came with an error message. |
BaseResp.StatusMessage | Text message for the status. The sample request returned 系统异常, meaning system exception. |
start_date and end_date as YYYYMMDD, for example 20260406.app_name accepts aweme or toutiao. It defaults to aweme.华为 from 20260406 to 20260412 returned only BaseResp with StatusCode -1. Check this field before you read any data.brand_name.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-cycles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"app_name": "aweme",
"end_date": "20260412",
"brand_name": "华为",
"start_date": "20260406"
}'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.
brand_namestringwajibBrand info
end_datestringwajibEnd date YYYYMMDD
start_datestringwajibStart date YYYYMMDD
app_namestringPlatform
Default: "aweme"
Nilai yang mungkin: aweme, toutiao
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 | 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
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/brand-cycles 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.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: brand_name (string), end_date (string) dan start_date (string). Opsional: app_name (salah satu dari aweme, toutiao). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin Brand Popularity Cycles 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.