> ## 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.

# Kontoinfo

> Kontoidentität der aktuellen Credential und kumulierte Datenausgaben seit Registrierung lesen.

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

Authentifizierung: API-Schlüssel erforderlich (`Authorization: Bearer <API Key>`).

Identität und kumulierter Datenspend des Kontos hinter der aktuellen Credential. Dieser Endpoint hat keine Zeitdimension. Für Spend nach Periode und Dimension <a href="/docs/de/datahub/api/reference/account/get-billing">Abrechnungsaggregation</a> nutzen.

`total_spent` sind nur Datengebühren — der aus App-Preistabellen gegen Run-Output abgerechnete Betrag. Wallet-Saldo, Top-ups und Rechnungen liegen außerhalb der Data-Hub-API; siehe Octoparse-Account-Center. Jeder API-Schlüssel desselben Kontos sieht denselben Lifetime-Total.

## Anfrage

### Beispielanfrage

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

## Antwort

### 200 Erfolg

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

Payload ist in `data` gewrappt. Felder:

<ResponseField name="user_id" type="string" required>
  Stabile Konto-ID.
</ResponseField>

<ResponseField name="username" type="string">
  Aktueller Benutzername, zugleich das erste Segment der Apps, die Sie als `<username>/<app_name>` veröffentlichen. `null`, wenn nicht gesetzt.
</ResponseField>

<ResponseField name="total_spent" type="number" required>
  Kumulierte Datenausgaben.
</ResponseField>

<ResponseField name="currency" type="string">
  Währung.
</ResponseField>

### Fehler

| HTTP | `code`         | `category`  | Beschreibung                             |
| ---- | -------------- | ----------- | ---------------------------------------- |
| 401  | `unauthorized` | `forbidden` | Fehlender oder ungültiger API-Schlüssel. |

Fehlerantworten nutzen `{"error": {code, category, message, retryable}}`. Siehe <a href="/docs/de/datahub/api/reference/introduction#errors">Fehler</a>.

## Client-Bibliotheken

<CodeGroup>
  ```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);
  ```
</CodeGroup>
