user_idstringzorunlu
Target blogger user ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similarGet PGY similar bloggers on Xiaohongshu. Returns the platform data as structured JSON.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
This API returns a list of Xiaohongshu bloggers that PGY marks as similar to a target blogger. It needs the target blogger's user_id, and it returns profile, content tag, pricing and cooperation data for each similar blogger.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "5c668b3e0000000012021605", "page_num": 1, "page_size": 4}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Target blogger user ID |
page_num | integer | No | Page |
page_size | integer | No | Page size, 1-4 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"highlightWords": [],
"kols": [
{
"accumCommonImpMedinNum30d": 0,
"accumCoopImpMedinNum30d": 0,
"accumPicCommonImpMedinNum30d": 0,
"accumVideoCommonImpMedinNum30d": 0,
"activityList": [],
"algoRecommendReasons": null,
"authorityList": null,
"avgAgmv90d": 0.0,
"avgLiveViewerNum": 0.0,
"businessNoteCount": 133,
"buyerType": 2,
"classifyCode": null
}
],
"redirect2NickSearch": false,
"resultType": 0,
"total": 8,
"trackId": "kolSimilar_be353bb575c84f58a9dc3a2bfec5cf2f"
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.kols[] | One similar blogger per item. The response holds one object for each blogger on the current page. |
data.kols[].fansCount / data.kols[].fansNum | Follower count of the similar blogger. Both keys carry the same number in this response. |
data.kols[].contentTags[].taxonomy1Tag | Top-level content category of the blogger, for example 美食 (food). |
data.kols[].contentTags[].taxonomy2Tags[] | Sub-categories under the top-level tag, for example 美食探店 (food venue reviews). |
data.kols[].businessNoteCount | Number of sponsored notes the blogger has, as the key name indicates. |
data.kols[].coopNoteNum30d | Number of cooperation notes in the last 30 days, as the key name indicates. |
data.kols[].clickMidNum | Median click count for the blogger. The response gives a bare number, so the exact scope is not stated. |
data.kols[].clothingIndustryPrice.picturePrice / data.kols[].clothingIndustryPrice.videoPrice | Price for an image note and a video note in the clothing industry. The value is 0 for all bloggers in this sample. |
data.total | Total number of similar bloggers found for the target. It was 8 in this sample. |
data.trackId | Identifier of this similar-blogger result, starting with kolSimilar_. |
page_size between 1 and 4. The default is 4.page_num to move through the list. Compare data.total with the number of items you have collected to know when to stop.user_id from Xiaohongshu (RED) PGY Blogger Search. It is a 24-character hex string, such as 5c668b3e0000000012021605.$0.02 per successful call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "5c668b3e0000000012021605",
"page_num": 1,
"page_size": 4
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
user_idstringzorunluTarget blogger user ID
page_numintegerPage
Varsayılan: 1
page_sizeintegerPage size, 1-4
Varsayılan: 4
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Xiaohongshu | $0.02 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.02, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: user_id (string). İsteğe bağlı: page_num (integer) ve page_size (integer). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Xiaohongshu PGY similar bloggers, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Xiaohongshu API erişimi için ayrıca başvuru yapmanız gerekmez.