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.
- Preço
- $0.01USD / chamada
- Método
- POST
- Resposta
- JSON
- Parâmetros
- 0 obrigatórios · 0 opcionais
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
}
}
]Exemplos
Selecione um exemplo para carregar as entradas e o resultado no playground.
README da 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.
Comece a construir
Envie sua primeira solicitação
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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. Autenticação
Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
3. Parâmetros
Nenhum schema de parâmetros foi publicado para esta API.
4. Resposta
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
[
{
"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
}
}
]Explorar mais
APIs relacionadas
| API | Preço | Resposta |
|---|---|---|
Xiaohongshu | $0.01 por chamada | JSON |
Xiaohongshu | $0.01 por chamada | JSON |
Xiaohongshu | $0.01 por chamada | JSON |
Xiaohongshu | $0.01 por chamada | JSON |
Xiaohongshu | $0.01 por chamada | JSON |
Xiaohongshu | $0.01 por chamada | JSON |
Perguntas
FAQ
Como eu uso a API Xiaohongshu (RED) Homepage Categories?
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categories com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
Quanto custa a API Xiaohongshu (RED) Homepage Categories?
$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Quais parâmetros a API Xiaohongshu (RED) Homepage Categories aceita?
Xiaohongshu (RED) Homepage Categories não recebe parâmetros de entrada; envie um corpo JSON vazio.
O que a API Xiaohongshu (RED) Homepage Categories retorna?
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Preciso de uma conta de desenvolvedor Xiaohongshu ou de uma chave de API?
Não. Xiaohongshu (RED) Homepage Categories funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Xiaohongshu separadamente.
