Xiaohongshu (RED) Homepage Categories
https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categoriesReturns a list of available homefeed category channels on Xiaohongshu (RED). Use this endpoint to inspect valid category identifiers for content discovery.
- Harga
- $0.01USD / panggilan
- Metode
- POST
- Respons
- JSON
- Parameter
- 0 wajib · 0 opsional
Playground
[
{
"data": {
"code": 0,
"data": {
"categories": [
{
"id": "homefeed.fashion_v3",
"name": "穿搭"
},
{
"id": "homefeed.food_v3",
"name": "美食"
},
{
"id": "homefeed.cosmetics_v3",
"name": "彩妆"
},
"… 8 more items in the full response"
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
}
]Contoh
Pilih contoh untuk memuat input dan hasilnya ke playground.
README API
Xiaohongshu (RED) Homepage Categories API
Returns the list of homefeed category channels on Xiaohongshu (RED). Each entry has a category id and a display name. The API takes no input parameters.
Use cases
- Build a channel menu that mirrors the homefeed tabs on Xiaohongshu.
- Look up the valid
idvalues, such ashomefeed.food_v3, before you request a category feed. - Map category
idvalues to their Chinesenamelabels in a dashboard or report. - Check the current set of top-level channels by comparing the list between runs.
Request
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"categories": [
{
"id": "homefeed.fashion_v3",
"name": "穿搭"
}
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
Response fields
| Field | Meaning |
|---|---|
data.categories[] | List of homefeed category channels. Each item is one channel. |
data.categories[].id | Category identifier, for example homefeed.fashion_v3. Use this value when you need to refer to a channel. |
data.categories[].name | Display name of the category in Chinese, for example 穿搭 (fashion) or 美食 (food). |
code / ok / success | Status flags. code is 0 and ok and success are true when the call worked. |
msg | Status message text. It is 成功 on a successful call. |
Notes
- Send an empty JSON object
{}as the request body. There are no parameters and no pagination. - Category
idvalues follow the patternhomefeed.<channel>_v3. - To read posts from the homepage, call Xiaohongshu (RED) Homepage Feed.
Pricing
$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autentikasi
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.
3. Parameter
Tidak ada schema parameter yang dipublikasikan untuk API ini.
4. Respons
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"code": 0,
"data": {
"categories": [
{
"id": "homefeed.fashion_v3",
"name": "穿搭"
},
{
"id": "homefeed.food_v3",
"name": "美食"
},
{
"id": "homefeed.cosmetics_v3",
"name": "彩妆"
},
"… 8 more items in the full response"
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
}
]Jelajahi lebih lanjut
API Terkait
| API | Harga | Respons |
|---|---|---|
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Pertanyaan
FAQ
Bagaimana cara menggunakan API Xiaohongshu (RED) Homepage Categories?
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categories 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.
Berapa biaya API Xiaohongshu (RED) Homepage Categories?
$0.01 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Parameter apa yang diterima API Xiaohongshu (RED) Homepage Categories?
Xiaohongshu (RED) Homepage Categories tidak memiliki parameter input; kirim body JSON kosong.
Apa yang dikembalikan API Xiaohongshu (RED) Homepage Categories?
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Apakah saya memerlukan akun developer atau kunci API Xiaohongshu?
Tidak. Xiaohongshu (RED) Homepage Categories 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.
