For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get usage

GET /v1/usage: daily rentals, activations and energy over a date range.

Use this endpoint to reconcile daily totals with your own records.

At a glance

Item
Detail

Method and path

GET /v1/usage

Authentication

Signed request. See Authentication and signing

Retry-safe

Yes. The request only reads data

Rate limit

Per API key. See Conventions and limits

Query parameters

Name
Type
Required
Default
Description

from

string

Yes

None

Start date, YYYY-MM-DD

to

string

Yes

None

End date, YYYY-MM-DD

Sample request

Sample values are illustrative.

get-usage.sh
TIMESTAMP=$(date +%s)
REQUEST_PATH="/v1/usage?from=2026-10-01&to=2026-10-31"
BODY=""
SIGNATURE=$(printf '%s\n%s\n%s\n%s' "GET" "$REQUEST_PATH" "$TIMESTAMP" "$BODY" | openssl dgst -sha256 -hmac "$API_SECRET" | sed 's/^.* //')
curl -X GET "$BASE_URL$REQUEST_PATH" \
  -H "X-API-Key: $API_KEY" \
  -H "X-Timestamp: $TIMESTAMP" \
  -H "X-Signature: $SIGNATURE"

The path includes the query string, and the signature covers it. The request is signed inline and needs BASE_URL, API_KEY and API_SECRET in your environment.

get-usage.mjs
import { signedRequest } from "./tron_energy.mjs";

const { status, data } = await signedRequest("GET", "/v1/usage?from=2026-10-01&to=2026-10-31");
console.log(status, data);

signedRequest is the helper from Authentication and signing, saved as tron_energy.mjs.

get_usage.py
from tron_energy import signed_request

status, data = signed_request("GET", "/v1/usage?from=2026-10-01&to=2026-10-31")
print(status, data)

signed_request is the helper from Authentication and signing, saved as tron_energy.py.

Responses

Response fields

Field
Type
Description

from

string

Start of the range

to

string

End of the range

days

array

One entry per day with rentals

days[].date

string

Day in UTC

days[].rentals

integer

Rentals that became active

days[].rentals_queued

integer

Rentals that waited in the queue

days[].rentals_failed

integer

Rentals that ended failed

days[].rentals_expired

integer

Rentals that ended expired

days[].activations

integer

Addresses activated

days[].energy_delegated

integer

Total energy delegated

days[].energy_used

integer

Total energy consumed

Errors

The full list is in Errors.

HTTP
Code
When
Action
Retry?

400

INVALID_REQUEST

from or to is missing or has the wrong type

Fix the request

No

401

UNAUTHORIZED

Invalid API key, signature or timestamp

Check your credentials and server clock

After a fix

429

RATE_LIMITED

Too many requests

Retry after Retry-After

Yes, after Retry-After

503

SERVICE_UNAVAILABLE

Planned maintenance or an outage

Retry after Retry-After

Yes, after Retry-After

Last updated