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

# Account

> Get your account information and remaining credits

## Response

<ResponseField name="valid" type="boolean">
  Whether the API key is valid
</ResponseField>

<ResponseField name="credits" type="number">
  Remaining credit balance on the account
</ResponseField>

***

<RequestExample>
  ```bash cURL theme={null}
  curl -H "api_key: YOUR_API_KEY" https://api.dataforb2b.ai/account
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.dataforb2b.ai/account",
      headers={"api_key": "YOUR_API_KEY"}
  )

  data = response.json()
  print(f"Valid: {data['valid']}")
  print(f"Credits: {data['credits']}")
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.dataforb2b.ai/account', {
    headers: { 'api_key': 'YOUR_API_KEY' }
  });

  const data = await response.json();
  console.log('Valid:', data.valid);
  console.log('Credits:', data.credits);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "valid": true,
    "credits": 47200.75
  }
  ```
</ResponseExample>
