Skip to main content
GET
Get Spend

Authorizations

Authorization
string
header
required

API key from Settings > Developer > REST API

Query Parameters

since
string | null

Start of the range (ISO 8601).

Maximum string length: 40
until
string | null

End of the range (ISO 8601); default now.

Maximum string length: 40
name
string | null

Only machines whose name matches, with * and ? (asm-*).

Maximum string length: 128
tag
string | null

Only machines created with this tag.

Maximum string length: 41

Response

Successful Response

total_usd
number
required

The sum of cost_usd over every matching machine (never paged).

total_credits
number
required

The same total in credits.

machines
MachineSpendItem · object[]
required

Every machine that spent anything in the range, newest first.

count
integer
required

How many machines machines lists (all of them; this answer is never paged).

since
string | null
required

The range's start as applied (ISO 8601, UTC); null: from the first.

until
string | null
required

The range's end as applied (ISO 8601, UTC); null: up to now.