user_idstring必填
Blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-profileReturns demographic distributions for a blogger's follower base, including gender, age, region, interests, and device types, filtered by user ID.
[
{
"data": {
"code": 0,
"data": {
"ages": [
{
"group": "<18",
"percent": 0.030312608654423617
},
{
"group": "18-24",
"percent": 0.15026709232860258
},
{
"group": "25-34",
"percent": 0.36482599487941336
},
"… 2 more items in the full response"
],
"cities": [
{
"name": "北京",
"percent": 0.06032083810770993
},
{
"name": "上海",
"percent": 0.03549407977301249
},
{
"name": "广州",
"percent": 0.03260217165930049
},
"… 6 more items in the full response"
],
"dateKey": "2026-10-05",
"devices": [
{
"desc": "苹果",
"name": "apple inc.",
"percent": 0.4337290216946378
},
{
"desc": "华为",
"name": "huawei",
"percent": 0.18196206849501975
},
{
"desc": "小米",
"name": "xiaomi",
"percent": 0.10907354345749762
},
"… 7 more items in the full response"
],
"gender": {
"female": 0.42516673515187914,
"male": 0.5748332648481209
},
"interests": [
{
"name": "生活记录",
"percent": 0.08833639927903822
},
{
"name": "兴趣爱好",
"percent": 0.06424240171940712
},
{
"name": "娱乐",
"percent": 0.062006429195235704
},
"… 17 more items in the full response"
],
"provinces": [
{
"name": "广东",
"percent": 0.1256888743384078
},
{
"name": "浙江",
"percent": 0.07049708080973427
},
{
"name": "山东",
"percent": 0.06381295356577726
},
"… 33 more items in the full response"
]
},
"guid": null,
"msg": "成功",
"success": true
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns the follower demographic breakdown for one Xiaohongshu (RED) blogger on the PGY platform. It covers gender, age, city, province, interest and device shares. The only input is the blogger's user_id.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-profile" \
-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 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"ages": [
{
"group": "<18",
"percent": 0.030148218227688428
}
],
"cities": [
{
"name": "北京",
"percent": 0.05891793379212795
}
],
"dateKey": "2026-11-02",
"devices": [
{
"desc": "苹果",
"name": "apple inc.",
"percent": 0.43350383631713557
}
],
"gender": {
"female": 0.42393566698202456,
"male": 0.5760643330179754
},
"interests": [
{
"name": "生活记录",
"percent": 0.08384622079649869
}
],
"provinces": [
{
"name": "广东",
"percent": 0.12422816418681827
}
]
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.gender.female / data.gender.male | Share of followers by gender. The two values add up to 1. |
data.ages[].group | Age bucket label, for example <18, 18-24 or 25-34. |
data.ages[].percent | Share of followers in that age bucket, as a fraction between 0 and 1. |
data.provinces[].name / data.cities[].name | Province or city name of the followers, in Chinese. |
data.provinces[].percent / data.cities[].percent | Share of followers located in that province or city, as a fraction between 0 and 1. |
data.interests[].name | Interest category of the followers, in Chinese, such as 生活记录 (life records). |
data.interests[].percent | Share of followers tied to that interest, as a fraction between 0 and 1. |
data.devices[].name / data.devices[].desc | Device brand. name is the English brand key and desc is the Chinese label. |
data.devices[].percent | Share of followers using that device brand, as a fraction between 0 and 1. |
data.dateKey | Date string in YYYY-MM-DD format attached to this profile. |
percent values and gender values are fractions, so 0.36 means 36%.ages, cities and devices come back as arrays of items with a percent value.user_id with Xiaohongshu (RED) PGY Blogger Search.$0.02 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-profile" \
-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
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"code": 0,
"data": {
"ages": [
{
"group": "<18",
"percent": 0.030312608654423617
},
{
"group": "18-24",
"percent": 0.15026709232860258
},
{
"group": "25-34",
"percent": 0.36482599487941336
},
"… 2 more items in the full response"
],
"cities": [
{
"name": "北京",
"percent": 0.06032083810770993
},
{
"name": "上海",
"percent": 0.03549407977301249
},
{
"name": "广州",
"percent": 0.03260217165930049
},
"… 6 more items in the full response"
],
"dateKey": "2026-10-05",
"devices": [
{
"desc": "苹果",
"name": "apple inc.",
"percent": 0.4337290216946378
},
{
"desc": "华为",
"name": "huawei",
"percent": 0.18196206849501975
},
{
"desc": "小米",
"name": "xiaomi",
"percent": 0.10907354345749762
},
"… 7 more items in the full response"
],
"gender": {
"female": 0.42516673515187914,
"male": 0.5748332648481209
},
"interests": [
{
"name": "生活记录",
"percent": 0.08833639927903822
},
{
"name": "兴趣爱好",
"percent": 0.06424240171940712
},
{
"name": "娱乐",
"percent": 0.062006429195235704
},
"… 17 more items in the full response"
],
"provinces": [
{
"name": "广东",
"percent": 0.1256888743384078
},
{
"name": "浙江",
"percent": 0.07049708080973427
},
{
"name": "山东",
"percent": 0.06381295356577726
},
"… 33 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 |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-fans-profile。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.02,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:user_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Xiaohongshu (RED) PGY Blogger Fan Profile 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。