ユーザーごとのコストの取得
GET/v1/organizations/analytics/user_cost_report
[レガシー] 指定した日付範囲におけるユーザーごとのUSD建てのコストを取得します。
ユーザーごとのコストを支出額の順位で返します。group_by[] または bucket_width を指定すると、1人のユーザーが複数の行に分かれます。どのユーザーが最も多くのコストを占めているかを確認するために使用します。ユーザーアカウントに帰属するコストのみが含まれるため、Code Reviewの使用量やSlackチャンネルでのClaude Tagの使用量など、ユーザーアカウントに帰属しないコストは除外されます。Claude Tagの1対1のダイレクトメッセージは、Claudeアカウントを接続したメンバーについてのみ、製品 claude-tag として含まれます。Claude Enterpriseプランの組織で利用できます。read:analytics スコープを持つAPIキーが必要です。
このエンドポイントは、レガシーのClaude Enterpriseの使用量レポートとコストレポートの1つです。新しい統合では、代わりにUsage and Cost Analytics APIのGET /v1/organizations/analytics/costを使用してください。既存の統合を移行するには、Claude Enterpriseの使用量レポートとコストレポートからの移行を参照してください。
Query parameters
Headers
Returns
ユーザーごとのコストの取得
curl https://api.anthropic.com/v1/organizations/analytics/user_cost_report \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"Response 200
{
"data": [
{
"actor": {
"deleted": true,
"email_address": "jane@example.com",
"name": "Jane Smith",
"type": "user_actor",
"user_id": "user_01AbCdEfGhIjKlMnOpQrSt"
},
"amount": "41280.000000",
"claude_tag_category": "dm",
"claude_tag_user_id": "U0123ABCDEF",
"context_window": "0-200k",
"cost_type": "code_execution",
"currency": "USD",
"ending_at": "2019-12-27T18:11:19.117Z",
"inference_geo": "global",
"list_amount": "51600.000000",
"model": "claude-opus-5-5",
"product": "chat",
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"requests": 128,
"slack_channel_id": "C0123ABCDEF",
"speed": "fast",
"starting_at": "2019-12-27T18:11:19.117Z",
"token_type": "cache_creation.ephemeral_1h_input_tokens"
}
],
"data_refreshed_at": "2019-12-27T18:11:19.117Z",
"has_more": true,
"next_page": "next_page",
"organization_id": "org_013FP9SaFPBg7Kw7fetjn6cF"
}Returns Examples
Response 200
{
"data": [
{
"actor": {
"deleted": true,
"email_address": "jane@example.com",
"name": "Jane Smith",
"type": "user_actor",
"user_id": "user_01AbCdEfGhIjKlMnOpQrSt"
},
"amount": "41280.000000",
"claude_tag_category": "dm",
"claude_tag_user_id": "U0123ABCDEF",
"context_window": "0-200k",
"cost_type": "code_execution",
"currency": "USD",
"ending_at": "2019-12-27T18:11:19.117Z",
"inference_geo": "global",
"list_amount": "51600.000000",
"model": "claude-opus-5-5",
"product": "chat",
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"requests": 128,
"slack_channel_id": "C0123ABCDEF",
"speed": "fast",
"starting_at": "2019-12-27T18:11:19.117Z",
"token_type": "cache_creation.ephemeral_1h_input_tokens"
}
],
"data_refreshed_at": "2019-12-27T18:11:19.117Z",
"has_more": true,
"next_page": "next_page",
"organization_id": "org_013FP9SaFPBg7Kw7fetjn6cF"
}