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

# Account

> Your plan, its daily allowance and what is left of it today

Returns the account the API key belongs to: plan, plan expiry, and how many lookups are left today.

## Headers

**X-API-KEY** `string` *required*

Your API key.

## Usage

Does not count as a lookup.

Needs the `account:read` scope (keys with all scopes have it).

## Example request

```bash cURL theme={null}
curl "https://www.osintcat.net/api/user" \
     -H "X-API-KEY: YOUR_API_KEY"
```

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

url = "https://www.osintcat.net/api/user"
headers = {"X-API-KEY": "YOUR_API_KEY"}

response = requests.get(url, headers=headers, timeout=60)
print(response.status_code, response.json())
```

```javascript JS & TS theme={null}
const response = await fetch("https://www.osintcat.net/api/user", {
  headers: { "X-API-KEY": "YOUR_API_KEY" },
});
console.log(response.status, await response.json());
```

```php PHP theme={null}
<?php
$curl = curl_init("https://www.osintcat.net/api/user");
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["X-API-KEY: YOUR_API_KEY"],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
curl_close($curl);
echo $status . " " . $response;
```

```go Go theme={null}
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://www.osintcat.net/api/user", nil)
    req.Header.Set("X-API-KEY", "YOUR_API_KEY")
    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(resp.StatusCode, string(body))
}
```

## SDK example

The same request with the [official SDKs](https://docs.osintcat.net/sdks.md). Each one reads your key from `OSINTCAT_API_KEY`.

```typescript JS & TS theme={null}
import { OsintCatClient } from "osintcat";

const client = new OsintCatClient(); // reads OSINTCAT_API_KEY

const result = await client.account.get();
console.log(result);
```

```python Python theme={null}
from osintcat import OsintCat

client = OsintCat()  # reads OSINTCAT_API_KEY

result = client.account.get()
print(result)
```

```go Go theme={null}
package main

import (
	"context"
	"fmt"

	osintcatclient "github.com/OsintCatHQ/osintcat-go/client"
)

func main() {
	client := osintcatclient.NewClient() // reads OSINTCAT_API_KEY
	result, err := client.Account.Get(context.Background())
	if err != nil {
		panic(err)
	}
	fmt.Printf("%+v\n", result)
}
```

```php PHP theme={null}
<?php
require __DIR__ . '/vendor/autoload.php';

use OsintCat\OsintCatClient;

$client = new OsintCatClient(); // reads OSINTCAT_API_KEY

$result = $client->account->get();
echo json_encode($result, JSON_PRETTY_PRINT), PHP_EOL;
```

## Response

**account\_info** `object`

The account.

**properties**

**username** `string`

Username.

**email** `string`

E-mail address of the account.

**plan** `string`

Current plan, e.g. `Researcher`, `Investigator`, `Max`.

**plan\_expires** `string`

When the plan ends (ISO 8601), `Lifetime`, or `N/A`.

**usage** `object`

Today's allowance.

**properties**

**request\_limit\_daily** `number`

Lookups per day on this plan (Max: unlimited, shown as a very large number).

**requests\_remaining\_today** `number`

Lookups left today. Resets at 00:00 UTC.

**api\_access** `boolean`

Whether the plan includes API access.

```json 200 theme={null}
{
  "account_info": {
    "username": "analyst",
    "email": "analyst@example.com",
    "plan": "Investigator",
    "plan_expires": "2026-11-05T09:12:44"
  },
  "usage": {
    "request_limit_daily": 750,
    "requests_remaining_today": 742,
    "api_access": true
  }
}
```

## Errors

| Status | Error | When |
| - | - | - |
| 401 | `API key required` | No `X-API-KEY` header. |
| 403 | `Invalid API key` | The key does not exist or was revoked. |
| 403 | `insufficient_scope` | The key lacks the `account:read` scope. |

See [Errors](https://docs.osintcat.net/api-reference/introduction.md#errors) for the responses every endpoint can return.


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