end_datestringwajib
End date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-itemsReturns videos associated with a specific trending keyword in a category. Filters include category ID, target keyword, analysis period, and end date.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns videos linked to a trending keyword in one Douyin category. You send a category ID in tag_id, a keyword, and an end_date. You can also set period to 1, 3 or 7 days.
人工智能 in a single category.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "tag_id": "2027"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD. Must be a Sunday only when period=7; any day for period=1/3 |
keyword | string | Yes | Hot keyword (typically from fetch_content_creative_keywords) |
tag_id | string | Yes | Category ID (same as category_id in fetch_item_query) |
period | string | No | "1" / "3" / "7" days |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "json data error,key:ca,2027,人工智能,1735660799,keyword_items_v2,aweme,7"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status wrapper for the call. It is the only top-level object in the sample response. |
BaseResp.StatusCode | Numeric status of the lookup. The sample request returned -1, which marks a failed lookup. |
BaseResp.StatusMessage | Text describing the status. In the sample it reads json data error and then lists the values used for the lookup: 2027, 人工智能, 1735660799 and 7. |
end_date 1735660799 and returned StatusCode -1. The schema asks for end_date in YYYYMMDD format, so send a date like 20241229.period is 7, end_date must be a Sunday. For 1 or 3, any day works.keyword from Douyin Content Creative Keywords. Use the same category ID as tag_id.period accepts only the strings 1, 3 and 7.$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/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "2027",
"keyword": "人工智能",
"end_date": "1735660799"
}'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.
end_datestringwajibEnd date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
keywordstringwajibHot keyword (typically from fetch_content_creative_keywords)
tag_idstringwajibCategory ID (same as category_id in fetch_item_query)
periodstring"1" / "3" / "7" days
Nilai yang mungkin: 1, 3, 7
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/content-creative-keyword-items 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: end_date (string), keyword (string) dan tag_id (string). Opsional: period (salah satu dari 1, 3, 7). 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 Creative Keyword Related Videos 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.