bodyarraybắt buộc
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"
]
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
]
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
bodyarraybắt buộcVideo link list
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": [
"7512756548356492544"
]
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.03 mỗi lần gọi | JSON |
Douyin | $0.15 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: body (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Batch Video ID Extraction chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.