GET
/
api
/
v0
/
users
/
{user_id}
/
machine-earnings
/
show earnings
curl --request GET \
  --url https://console.vast.ai/api/v0/users/{user_id}/machine-earnings/ \
  --header 'Authorization: Bearer <token>'
{
  "summary": {
    "total_gpu": 123,
    "total_stor": 123,
    "total_bwu": 123,
    "total_bwd": 123
  },
  "username": "<string>",
  "email": "<string>",
  "fullname": "<string>",
  "address1": "<string>",
  "address2": "<string>",
  "city": "<string>",
  "zip": "<string>",
  "country": "<string>",
  "taxinfo": "<string>",
  "current": {
    "balance": 123,
    "service_fee": 123,
    "total": 123,
    "credit": 123
  },
  "per_machine": [
    {
      "machine_id": 123,
      "gpu_earn": 123,
      "sto_earn": 123,
      "bwu_earn": 123,
      "bwd_earn": 123
    }
  ],
  "per_day": [
    {
      "day": 123,
      "gpu_earn": 123,
      "sto_earn": 123,
      "bwu_earn": 123,
      "bwd_earn": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer
required

The ID of the user.

Query Parameters

sday
integer

Start day for the earnings report.

eday
integer

End day for the earnings report.

machid
integer

Optional machine ID to filter earnings.

last_days
integer

Number of days to look back from today.

Response

Success response

summary
object
username
string
email
string
fullname
string
address1
string
address2
string
city
string
zip
string
country
string
taxinfo
string
current
object
per_machine
object[]
per_day
object[]