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

Douyin Index User ID Encryption

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id

Converts a standard numeric Douyin uid into the encrypted user_id required by Douyin Index endpoints for debugging or custom queries.

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
Douyin uid, numeric string
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Douyin Index User ID Encryption API

This API converts a numeric Douyin uid into the encrypted user_id string used by Douyin Index endpoints. It needs one input, the uid as a numeric string, and returns both values.

Use cases

  • Get the encrypted user_id for a creator before you build a custom Douyin Index query.
  • Check that your own uid-to-user_id conversion matches the value this API returns.
  • Convert a list of numeric creator uids into the IDs that Douyin Index creator endpoints expect.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "92769419069"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYesDouyin uid, numeric string

Example response

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

{
  "uid": "92769419069",
  "user_id": "jchgjebjagj"
}

Response fields

FieldMeaning
uidThe numeric Douyin uid you sent in the request, returned unchanged.
user_idThe encrypted form of the uid. Pass this value to Douyin Index endpoints that ask for an encrypted user ID.

Notes

  • Send uid as a string of digits, for example 92769419069. Do not send it as a number.
  • The response has only two keys, uid and user_id. The call returns no creator profile data.
  • Use the returned user_id in creator endpoints such as Douyin Creator Top Videos or Douyin Daren Fan Analysis, if their parameters ask for an encrypted ID.

Pricing

$0.001 per successful call. Failed calls 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.001 mỗi lần gọiJSON
Douyin$0.001 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 Index User ID Encryption?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-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 Index User ID Encryption 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 Index User ID Encryption chấp nhận những tham số nào?

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

API Douyin Index User ID Encryption 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 Index User ID Encryption 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.