Get a range of historical signal data
Changed onReturns signal data (e.g. CO₂ MOER in lbs/MWh) for the specified region, signal_type, and time period. Values are published in near real-time, periodically (e.g. at 5-minute frequency), and each value is valid starting from its point_time for the duration described in data_point_period_seconds. The publishing delay (the difference between the point_time for the value and the time that value is available in the API) varies by grid region. In some regions the data will be available within one minute after a certain point_time, in other regions there may be a delay of up to a few hours. Each query is limited to 32 days of data. Individual data point values may be updated at any time after publishing (e.g. if better source data is obtained).
Request
- Base URLhttps://api.watttime.org
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
(inclusive) ISO8601-compliant timezone-aware date string indicating earliest desired data, used to select the first point_time included in the response
(inclusive) ISO8601-compliant timezone-aware date string indicating latest desired data, used to select the last point_time included in the response
Region abbreviation associated with location, from result of query to /v3/region-from-loc
Use to return different models from defaults.
Use to return whether or not the value associated with a point_time is generated with imputed data.
Filter results for data newer than the provided datetime.
Response
Successful Response
Example response
{
"data": [
{
"imputed_data_used": true,
"last_updated": "2023-10-01T00:00:00Z",
"point_time": "2022-07-15T00:00:00Z",
"value": 870
},
{
"imputed_data_used": true,
"last_updated": "2023-10-01T00:05:00Z",
"point_time": "2022-07-15T00:05:00Z",
"value": 860
}
],
"meta": {
"data_point_period_seconds": 300,
"model": {
"date": "2023-03-01",
"type": "binned_regression"
},
"region": "CAISO_NORTH",
"signal_type": "co2_moer",
"units": "lbs_co2_per_mwh",
"warnings": [
{
"message": "This is just an example",
"type": "EXAMPLE_WARNING"
}
]
}
}Changes
- warning
added the new
synthetic_vre_potentialenum value to the////response property for the response status - info
the endpoint scheme security
BearerAuthwas added to the API
- warning
- breaking
response property
data/items/imputed_data_usedlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
data/items/last_updatedlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
the
/response's property type changed fromobjectto no type for status - breaking
removed the required property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
queryrequest parametermodellist-of-types was widened by adding typesnull - info
queryrequest parameterupdated_sincelist-of-types was widened by adding typesnull - info
for the
queryrequest parametermodel, the type was generalized fromstringto no type, and format fromdateto no format - info
for the
queryrequest parameterupdated_since, the type was generalized fromstringto no type, and format fromdate-timeto no format - info
added
subschema #2to the/response propertyanyOflist for the response status
- breaking