GET
/
environments
/
{envId}
/
usage
curl --request GET \
  --url https://restapi.gputrader.io/v1/environments/{envId}/usage \
  --header 'X-API-Key: <api-key>'
{
  "days": [
    {}
  ],
  "percentChange": {
    "count": 123,
    "hours": 123,
    "earned": 123
  },
  "total": {
    "count": 123,
    "hours": 123,
    "earned": 123
  },
  "timezone": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

envId
string
required

Environment ID

Query Parameters

from
string

Start date for usage data

to
string

End date for usage data

Response

200
application/json
Successfully retrieved environment usage
days
object[]

Daily usage data

percentChange
object
total
object
timezone
string

Timezone used for the data