Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin Batch Video ID Extraction

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id

Extracts video IDs from a list of Douyin video URLs. Accepts an array of links and returns the corresponding item identifiers.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Video link list
Đầu raVí dụ
Phản hồioutputs · 59 B · 7 dòng
[
  {
    "data": [
      "7512756548356492544"
    ]
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin Batch Video ID Extraction API

Extract aweme_id values (Douyin video IDs) from several Douyin video links in one call.

Use cases

  • Convert a batch of shared links into IDs for bulk video detail or comment collection.

Request

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.

Parameters

NameTypeRequiredDescription
bodyarrayYesVideo link list

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

[
  "7512756548356492544"
]

Response fields

FieldMeaning
(body)Array of aweme_id strings, in the order of the input links.

Notes

  • Pass the links as a JSON array in body.
  • For a single link use Douyin Aweme ID.

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.03 mỗi lần gọiJSON
Douyin$0.15 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Batch Video ID Extraction?

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.

API Douyin Batch Video ID Extraction có giá bao nhiêu?

$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ý.

API Douyin Batch Video ID Extraction chấp nhận những tham số nào?

Bắt buộc: body (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Batch Video ID Extraction trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

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.