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.
- 料金
- $0.01USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 0 件 · 任意 0 件
プレイグラウンド
[
{
"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
}
}
]例
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
API README
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.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
このAPIのパラメータスキーマは公開されていません。
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"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
}
}
]さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
質問
FAQ
Xiaohongshu (RED) Homepage Categories API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed-categories に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Xiaohongshu (RED) Homepage Categories API の料金はいくらですか?
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
Xiaohongshu (RED) Homepage Categories API はどのパラメータを受け付けますか?
Xiaohongshu (RED) Homepage Categories は入力パラメータを取りません。空の JSON ボディを送信してください。
Xiaohongshu (RED) Homepage Categories API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
Xiaohongshu の開発者アカウントまたは API key は必要ですか?
いいえ。Xiaohongshu (RED) Homepage Categories は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Xiaohongshu の API アクセスを別途申請する必要はありません。
