Douyin Video ID Extractor
https://api.sandbase.ai/v1/api/douyin/web/aweme-idExtracts the internal video ID from a given Douyin video web URL. Useful for parsing links before calling downstream video detail endpoints.
- Harga
- $0.001USD / panggilan
- Metode
- POST
- Respons
- JSON
- Parameter
- 1 wajib · 0 opsional
Playground
[
{
"data": "7675551740036612985"
}
]Contoh
Pilih contoh untuk memuat input dan hasilnya ke playground.
README API
Douyin Video ID Extractor API
Extract the aweme_id (Douyin video ID) from a Douyin video link. Pass a https://www.douyin.com/video/<aweme_id> link.
Use cases
- Normalize shared links before calling video detail, comments or download APIs, which take
aweme_id. - Deduplicate videos collected as links from different sources.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7512756548356492544"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"7512756548356492544"
Response fields
| Field | Meaning |
|---|---|
(body) | The aweme_id as a string, for example "7512756548356492544". |
Notes
- For many links in one call use Douyin All Aweme IDs.
- Keep the ID as a string; it exceeds JavaScript's safe integer range.
Pricing
$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
Kirim permintaan pertama Anda
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://static.sandbase.ai/examples/8199cdcf-9adb-4073-a093-e4e83b70e1d0/input/0598f8d8-d74b-4fae-997a-faec7227135f.bin"
}'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
4. Respons
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": "7675551740036612985"
}
]Jelajahi lebih lanjut
API Terkait
| API | Harga | Respons |
|---|---|---|
Douyin Video ID ExtractorAPI ini 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
FAQ
Bagaimana cara menggunakan API Douyin Video ID Extractor?
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/web/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.
Berapa biaya API Douyin Video ID Extractor?
$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 Video ID Extractor?
Wajib: url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Apa yang dikembalikan API Douyin Video ID Extractor?
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 Video ID Extractor 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.
