小紅書 profile API
REST 呼び出し1回で 小紅書 の profile データを取得——全プラットフォーム共通の安定した JSON スキーマに正規化。
- 公開エンドポイント 1 件
- GET /v1/xhs/users/{username}
契約サマリー(英語): Get a normalized Xiaohongshu profile (capability xhs.profile)
- 正規化されたレスポンスエンティティ
- xiaohongshu/profile
- capability
- xhs.profile
すべてのレスポンスには新鮮度(cache / default / live)と課金メタデータも含まれます。
活用シーン
- 最新の {{platform}} プロフィールデータで CRM や営業リストを強化——フォロワー数、認証状態、バイオを構造化 JSON で。
- キャンペーン前に一貫したクエリ可能なプロフィール指標でクリエイター・パートナー候補を審査。
- 同じハンドルを再クエリして正規化フィールドを差分比較し、プロフィールの変化を追跡。
レスポンスフィールド
Xiaohongshu Profile (normalized)
Normalized Xiaohongshu (RED) creator profile. This is the ONLY upper-layer format; provider-private fields MUST NOT appear here — the Normalizer drops them. The capability id is xhs.profile (the /v1/xhs surface; the URL prefix xhs. maps to this xiaohongshu entity platform at entity resolution).
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | string | 必須 | Platform-stable user id (the numeric xiaohongshu user_id). |
| platform | "xiaohongshu" | 必須 | — |
| type | "profile" | 必須 | — |
| username | string | 必須 | The xiaohongshu red_id (public handle); the numeric user id when the surface omits red_id. |
| display_name | string | null | 任意 | The xiaohongshu nickname. |
| description | string | null | 任意 | The profile bio. |
| url | string | null | 任意 | — |
| profile_image_url | string | null | 任意 | — |
| verified | boolean | 必須 | Official account verification. |
| created_at | string | null | 任意 | Account creation time, UTC RFC3339; null — the platform does not expose it. |
| metrics.followers | integer | 必須 | Fans count. |
| metrics.following | integer | 必須 | — |
| metrics.posts | integer | 必須 | Note count. |
| metrics.likes | integer | 任意 | Lifetime likes received across notes; omitted when unknown. |
| fetched_at | string | 必須 | When the platform data was actually collected (UTC RFC3339). |
フィールドの注記は契約英語の原文のまま表示されます。
レスポンスメタデータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| mode | cache | default | live | 必須 | Effective mode after merging param > max_age > source policy (D-004). |
| age_seconds | integer | null | 任意 | Age of served data; null when unknown. |
| source_layer | cache | db | upstream | 必須 | Which layer served the response (PRD §10). |
| stale | boolean | 任意 | True when stale data was served under stale_if_error / SWR (D-004). |
| billing.amount_credits | integer | 必須 | Micro-USD (1e-6 USD) actually charged for this request. |
| billing.cache_hit | boolean | 必須 | — |
フィールドの注記は契約英語の原文のまま表示されます。
リクエストとレスポンスの例
/v1/xhs/users/{username}curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
"https://api.fetchpi.com/v1/xhs/users/newdev"{
"data": {
"id": "66f2a1de000000001e0167a1",
"platform": "xiaohongshu",
"type": "profile",
"username": "creatordev",
"display_name": "Creator Dev",
"description": "Notes about data APIs.",
"profile_image_url": "https://cdn.example.com/avatar/creatordev.jpg",
"verified": true,
"created_at": null,
"metrics": {
"followers": 51230,
"following": 310,
"posts": 862,
"likes": 2140000
},
"fetched_at": "2026-09-18T09:00:00Z"
},
"meta": {
"request_id": "req_01HTXQ8Z9HTQ",
"freshness": {
"mode": "default",
"age_seconds": 120,
"source_layer": "db",
"stale": false
},
"billing": {
"amount_credits": 100,
"cache_hit": false
}
}
}無料デモ
無料アカウントを作成して API キーを取得すれば、ブラウザ版 Playground からこのエンドポイントを呼び出せます。
Playground で試すこのエンドポイントのパラメータ表・エラーコード・レスポンスの詳細は API ドキュメントにあります。
エンドポイントリファレンスを開くよくある質問
小紅書 profile API は何を返しますか?
正規化されたプロフィールオブジェクト(ID・バイオ・オーディエンス項目、下記フィールドテーブル参照)に、新鮮度と課金メタデータが付きます。
このエンドポイントを無料で試せますか?
はい——アカウント登録後に API キーを取得すれば、コンソールの Playground から呼び出せます。
profile ケイパビリティの課金は?
Data API はリクエスト単位のクレジット課金で、cache/live の新鮮度により倍率が変わります。最新のケイパビリティ別価格は料金ページをご確認ください。
料金
リクエスト単位のクレジット課金、cache/live の新鮮度オプション対応——最新価格は料金ページをご確認ください。