userIdstringbắt buộc
KOL's user ID.
https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-v2-cost-effectiveGet the Xiaohongshu Pugongying cost-effectiveness analysis for a known creator. Use it to assess cooperation efficiency when comparing creators for a campaign.
Đầ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 cost-effectiveness figures for one Xiaohongshu Pugongying creator. It covers estimated CPM, engagement cost and read cost for picture notes and video notes. It needs the creator's userId.
videoSurpassRate or pictureSurpassRate to find the ones that beat most peers on cost.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-v2-cost-effective" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId": "5a73c5fa4eacab4c4ccc9778"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | KOL's user ID. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"date": null,
"estimatePictureCpm": 20.004835835649338,
"estimatePictureCpmCompare": 0.29824561403508776,
"estimatePictureEngageCost": 0.5015363730895643,
"estimatePictureEngageCostCompare": 0.29239766081871343,
"estimateVideoCpm": 14.239646993455175,
"estimateVideoCpmCompare": 0.8771929824561403,
"estimateVideoEngageCost": 0.5981385926995191,
"estimateVideoEngageCostCompare": 0.8771929824561403,
"pictureCase": 0,
"pictureReadCost": "0.40",
"pictureSurpassRate": 37.59
}
| Field | Meaning |
|---|---|
estimatePictureCpm / estimateVideoCpm | Estimated CPM for picture notes and for video notes. A lower value means a lower estimated cost per thousand impressions. |
estimatePictureEngageCost / estimateVideoEngageCost | Estimated cost per engagement for picture notes and for video notes. |
estimatePictureCpmCompare / estimateVideoCpmCompare | Comparison values for the CPM of each note type, given as decimals between 0 and 1 in this response. |
estimatePictureEngageCostCompare / estimateVideoEngageCostCompare | Comparison values for the engagement cost of each note type, given as decimals between 0 and 1 in this response. |
pictureReadCost / videoReadCost | Read cost for picture notes and for video notes. The values are strings, such as 0.40 and 1.58. |
pictureSurpassRate / videoSurpassRate | Surpass rate for each note type, such as 37.59 and 90.45. A higher number means the creator surpasses more peers on this measure. |
pictureCase / videoCase | Case counts for picture and video notes. Both are 0 in this response. |
date | Date value for the data. It is null in this response. |
userId. You can find it with Xiaohongshu Pugongying Creator Search.pictureReadCost and videoReadCost come as strings. Convert them before you sort.$0.021429 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-v2/data-v2-cost-effective" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "5a73c5fa4eacab4c4ccc9778"
}'Đặ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.
userIdstringbắt buộcKOL's user ID.
Đâ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.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.071429 mỗi lần gọi | JSON |
Xiaohongshu | $0.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.021429 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-v2/data-v2-cost-effective 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.021429 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: userId (string). 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 Pugongying Cost Effectiveness Analysis 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.