Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin Index User ID Encryption

เอกสาร 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.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
Douyin uid, numeric string
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON
Douyin$0.001 ต่อการเรียกJSON

คู่มือ:Best Douyin API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin Index User ID Encryption API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin Index User ID Encryption API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin Index User ID Encryption API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: uid (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin Index User ID Encryption API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin Index User ID Encryption ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก