keywordstring必須
Search keyword.
https://api.sandbase.ai/v1/api/xiaohongshu/search-userSearch Xiaohongshu (RedNote) users by keyword with page-based pagination. Use it to support creator discovery, account research, and finding profiles related to a topic, name, or brand term.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API returns Xiaohongshu (RedNote) user accounts that match a search keyword. It needs one input, keyword, and accepts an optional page number for more results.
sub_title for outreach research.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword. |
page | integer | No | Page number for pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"filters": [
{
"filter_tags": [
{
"icon_tail_url": "",
"icon_tail_url_night": "",
"icon_url": "",
"icon_url_night": "",
"id": "all",
"name": "不限",
"need_location_info": false,
"origin_text": ""
}
],
"group_show_type": 0,
"id": "fans_count",
"invisible": true,
"name": "粉丝数量",
"type": "single",
"word_request_id": "5c1334adfe1832dc352490d37357c71a"
}
],
"users": [
{
"desc": "小红书号:d10686543",
"followed": false,
"id": "5f956ca30000000001006e76",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/5fe98a2e6a06fb6dec28c1d4.jpg?imageView2/…",
"link": "xhsdiscover://1/user/user.5f956ca30000000001006e76",
"name": "美食",
"reason": "",
"red_id": "d10686543",
"red_official_verified": false,
"red_official_verify_type": 0,
"self": false,
"show_red_official_verify_icon": false
}
]
}
| Field | Meaning |
|---|---|
users[] | List of user accounts that match the keyword. Each item is one profile. |
users[].id | Internal user ID of the account. It also appears inside the link value. |
users[].red_id | The public Xiaohongshu ID of the account. The same number appears in desc after the label 小红书号. |
users[].name | Display name of the account. |
users[].sub_title | Short follower label as shown in the app, for example 粉丝 6万. It is display text, not a number. |
users[].image | URL of the account avatar image. |
users[].link | App deep link that opens the user profile in the Xiaohongshu app. |
users[].red_official_verified / users[].red_official_verify_type / users[].show_red_official_verify_icon | Flags for official verification. The false and 0 values in the sample mean the account is not verified. |
users[].followed / users[].self | Whether the account is already followed, and whether it is the calling account itself. |
filters[].id / filters[].name / filters[].filter_tags[] | Filter groups the app offers, such as fans_count and user_type. Each tag has an id and a display name. |
page to get the next set of results. It starts at 1 and the sample request used the default.粉丝 4.2万, so parse them if you need numbers.users[].id are 24-character hex strings. Use them with Xiaohongshu (RED) User Information or Xiaohongshu (RED) User Posted Notes for more detail.filters list describes filter options only. This API has no filter parameters.$0.021429 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"keyword": "美食"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
keywordstring必須Search keyword.
pageintegerPage number for pagination.
デフォルト: 1
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Xiaohongshu User Searchこの API Xiaohongshu | $0.021429 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
Xiaohongshu | $0.01 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/xiaohongshu/search-user に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.021429、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: keyword (string)。 任意: page (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Xiaohongshu User Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Xiaohongshu の API アクセスを別途申請する必要はありません。