search_wordstringwajib
Keyword
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/keyword-relatedPGY related keywords on Xiaohongshu. Returns the platform data as structured JSON.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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": "ι’θ"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
search_wordstringwajibKeyword
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Xiaohongshu | $0.02 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/pgy/keyword-related dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.02 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: search_word (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Xiaohongshu PGY related keywords berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Xiaohongshu secara terpisah.