Kuaishou User ID Lookup
https://api.sandbase.ai/v1/api/kuaishou/web/get-user-idResolves a Kuaishou user ID from a provided user share link. Useful for extracting internal profile identifiers from public sharing URLs.
- 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 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
Kuaishou User ID Lookup API
Returns the Kuaishou user ID found in a user share link. It needs one input, share_link, which is a Kuaishou user share URL such as https://c.kuaishou.com/fw/user/3xcuu5habgc8z29.
Use cases
- Turn a copied Kuaishou profile share link into a user ID you can store.
- Normalize a list of user share URLs into IDs before you run profile lookups.
- Match a creator's shared link to the same creator in your own database.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_link": "https://c.kuaishou.com/fw/user/3xcuu5habgc8z29"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user_id": "3xcuu5habgc8z29"
}
Response fields
| Field | Meaning |
|---|---|
user_id | The Kuaishou user ID, returned as a string. |
user_id | In the sample, the value equals the last segment of the share link path (/fw/user/3xcuu5habgc8z29). |
user_id | The only field in the response. Pass it to other Kuaishou APIs that take a user identifier. |
Notes
- Pass the full user share URL in
share_link. The sample uses the formhttps://c.kuaishou.com/fw/user/<id>. - The response holds only
user_id. Use it as input to a profile API such as Kuaishou Web User Info or Kuaishou Single User Data (V2). - To list a creator's posts after the lookup, try Kuaishou User Video List (V2).
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_link": "https://c.kuaishou.com/fw/user/3xcuu5habgc8z29"
}'2. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Kuaishou User ID LookupAPI này Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.002 mỗi lần gọi | JSON |
Kuaishou | $0.002 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API Kuaishou User ID Lookup?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/kuaishou/web/get-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 Kuaishou User ID Lookup 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 Kuaishou User ID Lookup chấp nhận những tham số nào?
Bắt buộc: share_link (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
API Kuaishou User ID Lookup 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 Kuaishou không?
Không. Kuaishou User ID Lookup 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 Kuaishou.
