user_idstringbắt buộc
Blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-historyReturns historical follower growth counts for a Xiaohongshu Pugongying blogger over time based on user ID and a selected date range.
[
{
"data": {
"code": 0,
"data": {
"fansNumInc": 219,
"fansNumIncRate": 0.005887255033737466,
"list": [
{
"dateKey": "2026-09-06",
"num": 37199
},
{
"dateKey": "2026-09-07",
"num": 37201
},
{
"dateKey": "2026-09-08",
"num": 37208
},
"… 27 more items in the full response"
]
},
"guid": null,
"msg": "成功",
"success": true
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns daily follower counts for a Xiaohongshu (RED) Pugongying (PGY) blogger. It needs the blogger's user_id and optionally a date range set with date_type.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-history" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "60b137080000000001000301"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Blogger user ID |
date_type | integer | No | Date range (~1=7d, 2=30d, 3=90d) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"fansNumInc": 151,
"fansNumIncRate": 0.004035383094150031,
"list": [
{
"dateKey": "2026-10-04",
"num": 37419
}
]
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.fansNumInc | Net change in followers over the returned period, as a whole number. |
data.fansNumIncRate | Follower growth over the period as a decimal ratio. A value of 0.004 means about 0.4%. |
data.list[].dateKey | Date of the data point, in YYYY-MM-DD format. |
data.list[].num | Follower count of the blogger on that date. |
success / code | success is true and code is 0 when the call works. |
msg | Status message text. It reads 成功 (success) on a good call. |
user_id as a string. The example value is 60b137080000000001000301. Look up blogger IDs with Xiaohongshu (RED) PGY Blogger Search.date_type is optional. 1 means 7 days, 2 means 30 days and 3 means 90 days. The schema allows values from 1 to 12.$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-fans-history" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "60b137080000000001000301"
}'Đặ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ộcBlogger user ID
date_typeintegerDate range (~1=7d, 2=30d, 3=90d)
Đâ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.
[
{
"data": {
"code": 0,
"data": {
"fansNumInc": 219,
"fansNumIncRate": 0.005887255033737466,
"list": [
{
"dateKey": "2026-09-06",
"num": 37199
},
{
"dateKey": "2026-09-07",
"num": 37201
},
{
"dateKey": "2026-09-08",
"num": 37208
},
"… 27 more items in the full response"
]
},
"guid": null,
"msg": "成功",
"success": true
}
}
]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-fans-history 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: date_type (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 (RED) PGY Blogger Fan History 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.