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

TikTok Profile Sec User ID

Tài liệu 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.

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
User homepage link
Đầ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

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.

Khám phá thêm

APIs liên quan

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

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Profile Sec User ID?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/web/sec-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 TikTok Profile Sec User ID 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 TikTok Profile Sec User ID chấp nhận những tham số nào?

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

API TikTok Profile Sec User ID 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 TikTok không?

Không. TikTok Profile Sec User ID 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 TikTok.