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

TikTok User ID by Username

เอกสาร API
https://api.sandbase.ai/v1/api/tiktok/app-v3/user-id-and-sec-user-id-by-username

Returns the user_id and sec_user_id associated with a specific TikTok username. Provide a profile username to resolve account identifiers.

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

Playground

อินพุต
Username
เอาต์พุตพร้อมใช้งาน

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

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

API README

TikTok User ID by Username API

Returns the user_id and sec_user_id for a TikTok account. You send the profile username and get both identifiers back in a flat JSON object.

Use cases

  • Convert a TikTok handle into the numeric user_id for storage in a database.
  • Get the sec_user_id needed to call profile and video list endpoints for an account.
  • Keep a stable identifier for a creator in case you track them over time.
  • Check that a handle resolves to a real account before you run other lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/user-id-and-sec-user-id-by-username" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "tiktok"}'

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

Parameters

NameTypeRequiredDescription
usernamestringYesUsername

Example response

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

{
  "sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
  "user_id": "107955"
}

Response fields

FieldMeaning
user_idNumeric account ID for the username, returned as a string.
sec_user_idLong encoded account ID for the same user. Other TikTok user endpoints take this value as input.

Notes

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ราคาการตอบกลับ
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.01 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON

คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

คำถาม

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

ฉันจะใช้ TikTok User ID by Username API ได้อย่างไร?

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

TikTok User ID by Username API ราคาเท่าไร?

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

TikTok User ID by Username API รับพารามิเตอร์อะไรบ้าง?

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

TikTok User ID by Username API ส่งคืนอะไร?

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

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

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