bodyarraywajib
Video link list
https://api.sandbase.ai/v1/api/douyin/web/all-aweme-idExtracts video IDs from a list of Douyin video URLs. Accepts an array of links and returns the corresponding item identifiers.
[
{
"data": [
"7512756548356492544"
]
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Extract aweme_id values (Douyin video IDs) from several Douyin video links in one call.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body": ["https://www.douyin.com/video/7512756548356492544"]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
body | array | Yes | Video link list |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
"7512756548356492544"
]
| Field | Meaning |
|---|---|
(body) | Array of aweme_id strings, in the order of the input links. |
body.$0.001 per successful call. Failed calls, including lookups whose target does not exist, 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/web/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": [
"https://static.sandbase.ai/examples/065a6f00-759d-4a47-b76e-ee86608434dd/input/37b54c15-fdda-4fbc-9918-f5aeae5c4218.bin"
]
}'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.
bodyarraywajibVideo link list
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": [
"7512756548356492544"
]
}
]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.03 per panggilan | JSON |
Douyin | $0.15 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id 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: body (array). 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 Batch Video ID Extraction 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.