端点
xiaohongshuのすべての接続先です。RESTとMCPは同じツールを提供する2つのインターフェースです。
| 项 | 值 |
|---|---|
| MCP(Streamable HTTP) | https://claudebaby.cn/mcp/xiaohongshu |
| MCP(SSE) | https://claudebaby.cn/sse/xiaohongshu |
| MCP(stdio) | claudebaby-mcp --platform xiaohongshu |
| RESTデータ取得 | POST https://claudebaby.cn/v1/social/xiaohongshu/tools/{tool} |
| REST エンドポイント一覧 | https://claudebaby.cn/v1/social/xiaohongshu/tools |
MCPの接続先は、ほかの公開中プラットフォームと同じ形式:ホストと /mcp/ のプレフィックスは共通で、末尾だけが xiaohongshuです。末尾を別のプラットフォーム名に置き換えると、そのプラットフォームのエンドポイントになります。
接続方法
3つの接続方法から選べます。認証、計測、キャッシュはすべてクラウド側で行い、上流のキーはローカルに保存しません。
# Claude Code:1つのコマンドで接続
claude mcp add --transport http claudebaby-xiaohongshu https://claudebaby.cn/mcp/xiaohongshu \
--header "Authorization: Bearer $CB_KEY"
# 接続後、セッションで/mcpを実行するとツールを確認できます{
"mcpServers": {
"claudebaby-xiaohongshu": {
"type": "http",
"url": "https://claudebaby.cn/mcp/xiaohongshu",
"headers": { "Authorization": "Bearer <あなたのAPIキー>" }
}
}
}# ローカルstdio:キーを端末に保存せず、データ取得はクラウドゲートウェイ経由
uv tool install --from "git+https://github.com/lingling1989r/claudebaby.git#subdirectory=mcps" claudebaby-mcp
CLAUDEBABY_API_KEY=cb_live_xxx claudebaby-mcp --platform xiaohongshuキーはコンソールで発行され、平文は一度だけ表示されます。残高不足の場合は insufficient_balance(HTTP 402)。
エンドポイント一覧
ツール名はRESTパスの末尾と同じです。同じツールをMCPからも利用でき、同じenvelopeが返されます。
合計 4 件のエンドポイント。
| 端点 | 入参 | 説明 |
|---|---|---|
| xiaohongshu_search_notes | query*:string · page:integer · sort_type:string · note_type:string · time_filter:string | Keyword search over Xiaohongshu notes. |
| xiaohongshu_user_profile | user_id:string · url:string | Public profile of a Xiaohongshu account. |
| xiaohongshu_user_notes | user_id:string · url:string · cursor:string | Notes published by a Xiaohongshu account. |
| xiaohongshu_note_detail | note_id:string · url:string | Single Xiaohongshu note (image or video). |
検索例:anker
例では anker を検索語としてxiaohongshuの xiaohongshu_search_notes。検索語はツールの実際の引数に設定済みです。ほかの必須項目はプレースホルダーなので、 <…> を自分の値に置き換えてください。パラメーターと説明は上のエンドポイント一覧、またはhttps://claudebaby.cn/v1/social/xiaohongshu/toolsをご覧ください。
export CB_KEY=cb_live_xxx
curl -s -X POST https://claudebaby.cn/v1/social/xiaohongshu/tools/xiaohongshu_search_notes \
-H "Authorization: Bearer $CB_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "anker"}'{
"ok": true,
"data": {
"…": "xiaohongshu_search_notesのレスポンス。フィールドはツールによって異なります"
},
"meta": {
"platform": "xiaohongshu",
"domain": "social",
"tool": "xiaohongshu_search_notes",
"request_id": "req_…",
"credits": "<今回の消費クレジット。/pricing.jsonを参照>"
}
}実際のレスポンスは呼び出して確認してください(エンドポイントとルートに応じて課金)— 上の data は形式の例で、架空のデータではありません。ブラウザーから直接試すには、 API詳細 自分のキーを入力してください。
料金
チャージまたはプランを選択できます。有料取得前にクレジットを確保し、残高不足時は拒否します。
通常のEC照会は1回1クレジット。×N表示は1回Nクレジットです。複合処理とページは個別計算。実行前に確保し、成功で確定、失敗で解放、タイムアウトは確認待ちです。
| 呼び出し種別 | ルート | 基本クレジット | 倍率 | クレジット / 回 | 通常価格 / 回 | 試用30クレジットの回数 |
|---|---|---|---|---|---|---|
| instagram / user.posts | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| tiktok / user.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| xiaohongshu / search.notes | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| facebook / page.posts | 拡張 | 1 | ×113 | 113 | ¥2.26 | 0 |
| linkedin / user.profile | 代替 | 1 | ×131 | 131 | ¥2.62 | 0 |
| amazon / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
全エンドポイントの倍率と価格状態
| 呼び出し種別 | ルート | 基本クレジット | 倍率 | クレジット / 回 | 通常価格 / 回 | 試用30クレジットの回数 |
|---|---|---|---|---|---|---|
| bilibili / search.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| bilibili / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| bilibili / user.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| bilibili / video.comments | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| bilibili / video.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| douyin / post.comments | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| douyin / post.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| douyin / search.videos | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| douyin / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| gongzhonghao / account.articles | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| gongzhonghao / account.profile | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| gongzhonghao / article.comments | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| gongzhonghao / article.detail | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| instagram / post.detail | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| instagram / search.users | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| instagram / user.posts | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| instagram / user.profile | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| kuaishou / search.videos | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| kuaishou / user.profile | 標準 | 1 | ×5 | 5 | ¥0.10 | 6 |
| lemon8 / post.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| lemon8 / search.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| lemon8 / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| linkedin / company.profile | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| linkedin / post.detail | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| linkedin / user.profile | 標準 | 1 | ×18 | 18 | ¥0.36 | 1 |
| threads / user.posts | 標準 | 1 | ×5 | 5 | ¥0.10 | 6 |
| tiktok / post.comments | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| tiktok / post.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| tiktok / user.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| tiktok / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| toutiao / article.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| toutiao / post.comments | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| toutiao / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| toutiao / video.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| weibo / hot.list | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| weibo / post.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| weibo / search.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| weibo / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| x / post.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| x / search.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| x / user.posts | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| x / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| xiaohongshu / note.detail | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| xiaohongshu / search.notes | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| xiaohongshu / user.notes | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| xiaohongshu / user.profile | 標準 | 1 | ×23 | 23 | ¥0.46 | 1 |
| xigua / search.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| xigua / user.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| youtube / channel.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| youtube / channel.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| youtube / search.videos | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| youtube / video.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| zhihu / answer.detail | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| zhihu / hot.list | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| zhihu / question.answers | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| zhihu / user.profile | 標準 | 1 | ×3 | 3 | ¥0.06 | 10 |
| facebook / page.profile | 拡張 | 1 | ×113 | 113 | ¥2.26 | 0 |
| facebook / page.posts | 拡張 | 1 | ×113 | 113 | ¥2.26 | 0 |
| facebook / post.detail | 拡張 | 1 | ×113 | 113 | ¥2.26 | 0 |
| linkedin / user.profile | 代替 | 1 | ×131 | 131 | ¥2.62 | 0 |
| linkedin / company.profile | 代替 | 1 | ×131 | 131 | ¥2.62 | 0 |
| linkedin / post.detail | 代替 | 1 | ×131 | 131 | ¥2.62 | 0 |
| amazon / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / category.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / category.report | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / category.report_history | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / category.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / category.keywords | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.search_from_name | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.reviews | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.customers_say | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.variations | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.traffic_terms | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / product.keyword_ranking | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / keyword.list | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / keyword.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / keyword.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / keyword.extends | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| amazon / keyword.search_results | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / category.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / category.report | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / product.search_from_name | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / product.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / product.variations | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / product.traffic_terms | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / keyword.list | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / keyword.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / keyword.extends | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| walmart / keyword.search_results | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / category.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / category.report | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / category.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / product.search_from_name | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / product.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / keyword.list | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / keyword.search_results | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| shopee / shop.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / category.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / category.report | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / product.search_from_name | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| temu / product.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / category.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / category.report | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / category.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / product.search_from_name | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / product.trend | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / shop.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| tiktokshop / shop.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| 1688 / category.tree | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| 1688 / product.search | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| 1688 / product.detail | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| 1688 / product.variations | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| 1688 / product.similar_sourcing | 標準 | 1 | ×1 | 1 | ¥0.02 | 30 |
| reddit / posts.search | 標準 | — | — | 価格確認中 | — | — |
| reddit / comments.search | 標準 | — | — | 価格確認中 | — | — |
| reddit / comments.thread | 標準 | — | — | 価格確認中 | — | — |
価格未確認のエンドポイントは一時的に利用できません。代替ルートの見積もりには失敗した主ルートのコスト予算を含みます。実際の台帳をご確認ください。
1回あたりの消費クレジット = 1回のクレジット × 実行回数。1クレジット = ¥0.02です。各エンドポイントの料金区分は /pricing.json(プラットフォーム別料金を含む)をご覧ください。