> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# アカウント情報

> 現資格のアカウントと累計データ支出。

**`GET`** `https://api-datahub.octoparse.com/v1/account`

認証：APIキー必須（`Authorization: Bearer <API Key>`）。

現在の資格情報の背後にあるアカウントの識別情報と累計データ支出。時間軸なし。期間・次元別は [請求集計](https://www.octoparse.com/docs/jp/datahub/api/reference/account/get-billing.md).

`total_spent` はデータ料金のみ — App 料金表に基づき実行出力へ請求された額。ウォレット残高、チャージ、請求書は Data Hub API 外。Octoparse アカウントセンターで確認。同一アカウントの API キーは同じ累計を見る。

## リクエスト

### リクエスト例

```bash theme={null}
curl   -H "Authorization: Bearer $OCTOPARSE_API_KEY"   "https://api-datahub.octoparse.com/v1/account"
```

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "user_id": "user-carol",
    "username": "carol",
    "total_spent": 0.06,
    "currency": "USD"
  }
}
```

ペイロードは `data` に包まれます。フィールド:

**user\_id** `string` *required*

安定アカウント id。

**username** `string`

現在のユーザー名。公開 App の第 1 セグメント `<username>/<app_name>` にもなる。未設定は `null`。

**total\_spent** `number` *required*

累計データ支出。

**currency** `string`

通貨。

### エラー

| HTTP | `code` | `category` | 説明 |
| - | - | - | - |
| 401 | `unauthorized` | `forbidden` | API キー欠落または無効。 |

エラー応答は `{"error": {code, category, message, retryable}}` です。[エラー](https://www.octoparse.com/docs/jp/datahub/api/reference/introduction.md#errors) を参照。

## クライアントライブラリ

```python Python theme={null}
info = client.account()
print(info["username"], info["total_spent"], info["currency"])
```

```js JavaScript theme={null}
const info = await client.account();
console.log(info.username, info.total_spent, info.currency);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.