user_idstringआवश्यक
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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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 key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
user_idstringआवश्यकTarget blogger user ID
page_numintegerPage
डिफ़ॉल्ट: 1
page_sizeintegerPage size, 1-4
डिफ़ॉल्ट: 4
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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-similar पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: user_id (string)। वैकल्पिक: page_num (integer) और page_size (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Xiaohongshu PGY similar bloggers SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।