Host

usage()

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.

GETfreequota is the account's
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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

quotaBytes is the account's object storage

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

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

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

When the storage is full

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