# list()

Canonical URL: https://developers.iagenify.com/sdk/ref/hosts/list/
Language: en

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

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

Status: GET /api/hosting · free · Host objects

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

## status and certificate, read together {#status}

| status | certificate | The address |
| --- | --- | --- |
| `empty` | any | Nothing deployed. |
| `live` | `active` | Answers. |
| `live` | `pending` | **Refuses 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 {#requests}

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 {#bytes}

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

- [get()](/sdk/ref/hosts/get): One of them.
- [Host](/sdk/ref/host): What a host carries, and what you can do to it.

```python
for host in api.hosts.list():
    print(host.kind, host.slug, host.status, host.url, host.certificate)
```
