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

Douyin sec_user_id from URL

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

Extracts the Douyin sec_user_id identifier from a provided web link or profile URL. Input the target link in the query parameter to resolve the user identifier.

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
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Đầ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 sec_user_id from URL API

This API takes a Douyin web link in the url parameter and returns a single JSON string. It is meant to extract the sec_user_id from a user profile link. In the sample call, a video link came back as the same URL text.

Use cases

  • Turn a shared Douyin profile link into a sec_user_id before you request that user's data.
  • Prepare user identifiers for Douyin User Profile (Web) from profile links you collected.
  • Check whether a pasted Douyin link resolves to an identifier or comes back unchanged.

Request

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

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

Parameters

NameTypeRequiredDescription
urlstringYes

Example response

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

"https://www.douyin.com/video/7691553968815623478"

Response fields

FieldMeaning
$The whole response is one plain JSON string, not an object, so it has no named fields.
$For a user profile link, this string is the resolved sec_user_id, according to the API description.
$In the sample call with a video link, the string was the same URL that was sent in url.

Notes

  • Send a user profile or homepage URL in url if you want a sec_user_id. The sample video URL https://www.douyin.com/video/7691553968815623478 returned the input unchanged.
  • For a video link, call Douyin Video ID Extractor to get the video ID.
  • To process many profile links in one call, use Douyin sec_user_ids from URLs (Batch).

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.03 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 sec_user_id from URL?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/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 Douyin sec_user_id from URL có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Douyin sec_user_id from URL 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 Douyin sec_user_id from URL 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 sec_user_id from URL 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.