search_wordstringआवश्यक
Keyword
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/keyword-relatedPGY related keywords on Xiaohongshu. Returns the platform data as structured JSON.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns related search keywords for a Xiaohongshu keyword, taken from the PGY (Pugongying) creator marketplace. It needs one input, search_word, and returns two lists: terms that lead into the keyword and terms that follow it.
面膜 to plan note titles and tags.brandTag on each related keyword.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/keyword-related" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"search_word": "面膜"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
search_word | string | Yes | Keyword |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"downSearchWords": [
{
"brandTag": 0,
"noteNum": 93424,
"readTotalCount": 534895518,
"relevanceRank": 1,
"searchScore": 2434694.0,
"searchWord": "面膜推荐"
}
],
"upSearchWords": [
{
"brandTag": 0,
"noteNum": 118837,
"readTotalCount": 389528705,
"relevanceRank": 1,
"searchScore": 2537304.0,
"searchWord": "洗面奶"
}
]
},
"guid": null,
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.downSearchWords[].searchWord | A related keyword in the downSearchWords list. In the example these are longer terms that extend 面膜, such as 面膜推荐 and 面膜补水. |
data.upSearchWords[].searchWord | A related keyword in the upSearchWords list. In the example these are broader or neighboring terms such as 洗面奶, 护肤 and 身体乳. |
data.downSearchWords[].relevanceRank / data.upSearchWords[].relevanceRank | Rank of the related keyword within its list. 1 is the first item. |
data.downSearchWords[].noteNum / data.upSearchWords[].noteNum | Number of notes tied to the related keyword. |
data.downSearchWords[].readTotalCount / data.upSearchWords[].readTotalCount | Total read count for the related keyword. |
data.downSearchWords[].searchScore / data.upSearchWords[].searchScore | Search score for the related keyword. Higher values mean a higher score. The scale is not documented. |
data.downSearchWords[].brandTag / data.upSearchWords[].brandTag | Brand flag for the keyword. All sample rows show 0. The meaning of other values is not shown. |
success / msg / code | Call status. The sample shows success as true, code as 0 and msg as 成功. |
search_word. The API takes no pagination parameters.outputs[0].data, and the fields above sit under its data object.$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/keyword-related" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"search_word": "面膜"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
search_wordstringआवश्यकKeyword
इस 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/keyword-related पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: search_word (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Xiaohongshu PGY related keywords SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।