GET
Current GPU Price Indexes
One index per request. id is required; /metadata lists the ids your token holds, and an id you do not hold returns 404.
The default source is changing. Indices administered by General Index currently default to gx. Soon every index will default to compute-index. If you want General Index’s published values, set source=gx explicitly on your requests, and the change will not affect you. See Choosing a source.
The response holds a single row — the index’s most recent published point. Its shape depends on the index: a daily row carries a calendar date in timestamp, an intraday row a UTC instant. /metadata tells you which to expect as row_type.

Example

Authorizations

Authorization
string
header
required

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

Query Parameters

id
string
required

The index to read. The ids available to you are listed by /metadata; an id you do not hold is a 404, identical to one that does not exist.

Example:

"example-index"

source
string | null

Who computes the series you read: gx or compute-index. Omit it for the index's default. /metadata lists the values each index accepts; any other is a 400. A GX-administered index's history may begin later than ours, so an early window can be empty from gx and not from compute-index.

Example:

"compute-index"

extra_fields
string | null

Extra fields to include on each row, comma-separated. /metadata lists the ones each index offers you; any other is a 400. Each is added to the row as a field of its own, null on points from gx.

Example:

"unsmoothed_value"

sort_by
string | null

Sort field. One of: timestamp, value. Default: timestamp.

sort_order
string | null

Sort direction: asc or desc. Default: asc.

page_size
integer
default:100

Rows per page (max 1000).

Required range: 1 <= x <= 1000
page_token
string | null

Opaque token token from a previous response's meta.next. It carries the whole request — filters, ordering, window and position — so supply it alone; the only parameter that may accompany it is page_size. Do not construct or parse these; the format is not part of the contract.

Response

Successful Response

data
(DailyIndexRow · object | IntradayIndexRow · object)[]
required

The rows in this page, ordered as meta.sort reports.

One published day of a daily index.

Any extra fields you request with extra_fields are further top-level fields of the row, named as /metadata lists them, and present only when requested. Each is a number, or null on a point from gx.

meta
IndexesPageMeta · object
required

What every collection endpoint reports about the page itself.

There is no total count. has_more tells you whether to fetch another page.

source names who computed the rows in this page.