user_idstring必填
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
}
}
]选择一个示例,将其输入和结果加载到 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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
user_idstring必填Blogger user ID
date_typeintegerDate range (~1=7d, 2=30d, 3=90d)
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"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
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Xiaohongshu | $0.02 每次调用 | JSON |
Xiaohongshu | $0.02 每次调用 | JSON |
Xiaohongshu | $0.02 每次调用 | JSON |
Xiaohongshu | $0.02 每次调用 | JSON |
Xiaohongshu | $0.02 每次调用 | JSON |
Xiaohongshu | $0.02 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-history 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.02,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:user_id (string)。 可选:date_type (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Xiaohongshu (RED) PGY Blogger Fan History 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Xiaohongshu API 访问权限。