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

TikTok Profile Sec User ID

เอกสาร API
https://api.sandbase.ai/v1/api/tiktok/web/sec-user-id

Returns the internal TikTok sec_user_id string for a specified user homepage URL. This identifier serves as a key parameter for downstream TikTok web endpoints.

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

Playground

อินพุต
User homepage link
เอาต์พุตพร้อมใช้งาน

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

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

API README

TikTok Profile Sec User ID API

Returns the sec_user_id string for a TikTok user. You send the full profile homepage link in url, for example https://www.tiktok.com/@tiktok.

Use cases

  • Convert a profile link into the sec_user_id that other TikTok web endpoints ask for.
  • Store a stable user key for each creator you track by profile link.
  • Prepare the input for profile, post list, or follower list calls.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/sec-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.tiktok.com/@tiktok"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesUser homepage link

Example response

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

"MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"

Response fields

FieldMeaning
$The whole body is one JSON string. It is the sec_user_id of the profile in url. There is no wrapper object and there are no other keys.
$[0:8]The first 8 characters of the string. In the example they are MS4wLjAB.
$[8:]The rest of the string after the first 8 characters. Keep the full value together and pass it unchanged to other endpoints.

Notes

  • The body is a bare string, not an object. Read it directly instead of looking for a field name.
  • Send a full homepage link in the form https://www.tiktok.com/@username.
  • To resolve many profile links in one call, use TikTok User Sec User ID Extractor.
  • To get the user ID from a profile link instead, use TikTok User ID from Profile Link.

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.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.001 ต่อการเรียกJSON
TikTok$0.05 ต่อการเรียกJSON

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

คำถาม

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

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

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

TikTok Profile Sec User ID API ราคาเท่าไร?

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

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

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

TikTok Profile Sec User ID API ส่งคืนอะไร?

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

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

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