user_idstringwymagane
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
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
user_idstringwymaganeBlogger user ID
date_typeintegerDate range (~1=7d, 2=30d, 3=90d)
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"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
}
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Xiaohongshu | $0.02 za wywołanie | JSON |
Xiaohongshu | $0.02 za wywołanie | JSON |
Xiaohongshu | $0.02 za wywołanie | JSON |
Xiaohongshu | $0.02 za wywołanie | JSON |
Xiaohongshu | $0.02 za wywołanie | JSON |
Xiaohongshu | $0.02 za wywołanie | JSON |
Przewodniki:Best Xiaohongshu API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-history z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.02 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: user_id (string). Opcjonalne: date_type (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Xiaohongshu (RED) PGY Blogger Fan History działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Xiaohongshu.