# usage()

Canonical URL: https://developers.iagenify.com/sdk/ref/host/usage/
Language: en

`host.usage() → Promise<Usage>`

What this host uses: its bytes, its requests, and the quota they count against — which is the account's object storage.

Status: GET · free · quota is the account's

```javascript
const usage = await host.usage();
// { usedBytes, quotaBytes, requests30d, … }
```

## quotaBytes is the account's object storage {#quota}

> **Not an allowance for this host**
>
> What a host keeps online shares the account's storage with files and mailboxes. The same number appears on every host of the account, and filling it elsewhere refuses a deploy here.

## requests30d depends on the kind {#requests}

A `site` runs no code per request — there is nothing to count, which is also what makes it the cheapest kind to keep online. For an `app` or a `function`, the number is what their execution is measured by.

## For the whole account {#whole-account}

[api.hosts.usage()](/sdk/ref/hosts/usage) gives the plan's count and the total; [cloud.usage()](/sdk/ref/cloud/usage) shows the storage from the other side, with `object.hostingBytes` saying how much of it is hosting.

## When the storage is full {#full}

A deploy is refused with `quota_exceeded`. What is already online keeps serving — reading is never refused, only writing.

- [cloud.usage()](/sdk/ref/cloud/usage): The storage behind it.
- [api.hosts.usage()](/sdk/ref/hosts/usage): The account's.

```python
usage = host.usage()
# {"usedBytes", "quotaBytes", "requests30d", …}
```
