user_idstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
user_idstringobligatoireTarget blogger user ID
page_numintegerPage
Par défaut : 1
page_sizeintegerPage size, 1-4
Par défaut : 4
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Xiaohongshu PGY similar bloggersCette API Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Xiaohongshu | $0.02 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/xiaohongshu/pgy/blogger-similar avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : user_id (string). Facultatif : page_num (integer) et page_size (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Xiaohongshu PGY similar bloggers fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Xiaohongshu séparément.