api.hosts

list()

api.hosts.list() → Promise<Host[]>

Every host of the account, each one ready to deploy, roll back or remove.

GET /api/hostingfreeHost objects
Using Python?

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

for (const host of await api.hosts.list()) {
  console.log(host.kind, host.slug, host.status, host.url, host.certificate);
}
for host in api.hosts.list():
    print(host.kind, host.slug, host.status, host.url, host.certificate)

status and certificate, read together

statuscertificateThe address
emptyanyNothing deployed.
liveactiveAnswers.
livependingRefuses the connection, for now.
live with a pending certificate is not an outage

It is a wait of a minute or two on a fresh address level. Showing it as broken sends somebody debugging a deploy that worked.

requests30d

How many requests were counted. A site runs no code per request, so there is nothing to count there — the number matters for the kinds that do.

usedBytes is against the account's storage

Not a hosting allowance. What a host keeps online shares the object storage with files and mailboxes.