user_idstringbắt buộc
Target blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similarGet PGY similar bloggers on Xiaohongshu. Returns the platform data as structured JSON.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns a list of Xiaohongshu bloggers that PGY marks as similar to a target blogger. It needs the target blogger's user_id, and it returns profile, content tag, pricing and cooperation data for each similar blogger.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "5c668b3e0000000012021605", "page_num": 1, "page_size": 4}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Target blogger user ID |
page_num | integer | No | Page |
page_size | integer | No | Page size, 1-4 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"highlightWords": [],
"kols": [
{
"accumCommonImpMedinNum30d": 0,
"accumCoopImpMedinNum30d": 0,
"accumPicCommonImpMedinNum30d": 0,
"accumVideoCommonImpMedinNum30d": 0,
"activityList": [],
"algoRecommendReasons": null,
"authorityList": null,
"avgAgmv90d": 0.0,
"avgLiveViewerNum": 0.0,
"businessNoteCount": 133,
"buyerType": 2,
"classifyCode": null
}
],
"redirect2NickSearch": false,
"resultType": 0,
"total": 8,
"trackId": "kolSimilar_be353bb575c84f58a9dc3a2bfec5cf2f"
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.kols[] | One similar blogger per item. The response holds one object for each blogger on the current page. |
data.kols[].fansCount / data.kols[].fansNum | Follower count of the similar blogger. Both keys carry the same number in this response. |
data.kols[].contentTags[].taxonomy1Tag | Top-level content category of the blogger, for example 美食 (food). |
data.kols[].contentTags[].taxonomy2Tags[] | Sub-categories under the top-level tag, for example 美食探店 (food venue reviews). |
data.kols[].businessNoteCount | Number of sponsored notes the blogger has, as the key name indicates. |
data.kols[].coopNoteNum30d | Number of cooperation notes in the last 30 days, as the key name indicates. |
data.kols[].clickMidNum | Median click count for the blogger. The response gives a bare number, so the exact scope is not stated. |
data.kols[].clothingIndustryPrice.picturePrice / data.kols[].clothingIndustryPrice.videoPrice | Price for an image note and a video note in the clothing industry. The value is 0 for all bloggers in this sample. |
data.total | Total number of similar bloggers found for the target. It was 8 in this sample. |
data.trackId | Identifier of this similar-blogger result, starting with kolSimilar_. |
page_size between 1 and 4. The default is 4.page_num to move through the list. Compare data.total with the number of items you have collected to know when to stop.user_id from Xiaohongshu (RED) PGY Blogger Search. It is a 24-character hex string, such as 5c668b3e0000000012021605.$0.02 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
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/xiaohongshu/pgy/blogger-similar" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "5c668b3e0000000012021605",
"page_num": 1,
"page_size": 4
}'Đặ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.
user_idstringbắt buộcTarget blogger user ID
page_numintegerPage
Mặc định: 1
page_sizeintegerPage size, 1-4
Mặc định: 4
Đâ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
| API | Giá | Phản hồi |
|---|---|---|
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Xiaohongshu | $0.02 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar 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.
$0.02 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ý.
Bắt buộc: user_id (string). Tùy chọn: page_num (integer) và page_size (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. Xiaohongshu PGY similar bloggers 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 Xiaohongshu.