Returns the servers owned by the API key's account, with their latest status and metric snapshot. A key restricted to one server returns only that server.
Pagination. page is 1-based; perpage defaults to 25 and is at most 1001. A perpage that is not an integer, is below 1 or above 1001 is silently replaced by 25 (no error). links is present only when meta.total is greater than the page size and contains nextpage, prevpage and lastpage URLs; these URLs carry only page and perpage, so sort, tags and process filters are dropped when you follow them. Re-add them yourself.
Do not paginate when filtering by tags, process or process-cpu. These parameters make the API return up to 999 servers on one page regardless of perpage. The filters are applied after the page is fetched, so meta.total is lowered by the number of servers removed from that page and is not the number of matches across all pages. For accounts with more than 999 servers, results are incomplete.
Empty results. When the account has no servers, or every server is filtered out, the servers key is absent: the body is {"meta": {"total": 0}}.
Costs. process and process-cpu read process snapshots for every returned server and are slow on large accounts.
Servers without process snapshots. With process, such a server gets an empty process array. With process-cpu alone, the code calls count() on a non-array for such a server, which raises a PHP error and most likely fails the whole request with HTTP 500. Combine process-cpu with process only if you accept that, and treat a 500 as "retry without process-cpu".
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||