Skip to main content
GET
/
environments
/
{envId}
/
usage
Get environment usage
curl --request GET \
  --url https://api.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>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gputrader.io/llms.txt

Use this file to discover all available pages before exploring further.

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

Successfully retrieved environment usage

days
object[]

Daily usage data

percentChange
object
total
object
timezone
string

Timezone used for the data