Time Series API¶
The Time Series API allows you to fetch the time series data records of a charger or the connector of a charger. You can query with measurand
and optionally provide phase
values to query the time series data. If the duration for which to fetch the data records are not specified using the from
and to
parameters, only the previous day records are retrieved in the query results.
API Usage¶
See Token Management API for more information on how to create and use the access token.
Time Series of Charger¶
Prepare Request Body¶
To prepare a request body, perform the following steps.
- Set charger ID to the request path parameter
chargerId
. See Time Series API Reference.
Example Request¶
Note
Use the server URL applicable to your region. See API Reference for available server URLs applicable to your region.
export ACCESS_TOKEN = <YOUR_ACCESS_TOKEN>
export CHARGER_ID = <YOUR_CHARGER_ID>
export MEASURAND = <YOUR_MEASURAND>
export PHASE = <YOUR_PHASE>
curl --location --request GET 'https://api.eu.depot.emobility.io/v1/timeSeries/chargers/$CHARGER_ID?measurand=$MEASURAND&phase=$PHASE' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $ACCESS_TOKEN'
Response Body¶
Successful response returns 200 HTTP status code with response body as TimeSeriesDataList
schema. For more information, see Time Series API Reference.
Example Response¶
{
"items": [
{
"timeStamp": "2022-08-18T05:23:04.334Z",
"value": "true"
}
]
}
Measurand and Phase Mapping for Charger¶
Measurand | Phase |
---|---|
ActivePowerExport | NA |
ActivePowerImport | NA |
PowerOffered | NA |
ActiveEnergyExport | NA |
ActiveEnergyImport | NA |
CurrentExport | L1, L2, L3 |
CurrentImport | L1, L2, L3 |
CurrentOffered | L1, L2, L3 |
Voltage | L1, L2, L3, L1-N, L2-N, L3-N |
AlarmCode | NA |
Temperature | NA |
Time Series of Connector¶
Prepare Request Body¶
To prepare a request body, perform the following steps.
- Set charger ID to the request path parameter
chargerId
. - Set connector ID to the request path parameter
connectorId
. See Time Series API Reference.
Example Request¶
Note
Use the server URL applicable to your region. See API Reference for available server URLs applicable to your region.
export ACCESS_TOKEN = <YOUR_ACCESS_TOKEN>
export CHARGER_ID = <YOUR_CHARGER_ID>
export CONNECTOR_ID = <YOUR_CONNECTOR_ID>
export MEASURAND = <YOUR_MEASURAND>
curl --location --request GET 'https://api.eu.depot.emobility.io/v1/timeSeries/chargers/$CHARGER_ID/connectors/$CONNECTOR_ID?measurand=$MEASURAND' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $ACCESS_TOKEN'
Response Body¶
Successful response returns 200 HTTP status code with response body as TimeSeriesDataList
schema. For more information, see Time Series API Reference.
Example Response¶
{
"items": [
{
"timeStamp": "2022-08-18T05:23:04.334Z",
"value": "true"
}
]
}
Measurand and Phase Mapping for Connector¶
Measurand | Phase |
---|---|
ActivePowerExport | NA |
ActivePowerImport | NA |
PowerOffered | NA |
ActiveEnergyExport | NA |
ActiveEnergyImport | NA |
CurrentExport | L1, L2, L3 |
CurrentImport | L1, L2, L3 |
CurrentOffered | L1, L2, L3 |
Voltage | L1-N, L2-N, L3-N, L1-L2, L2-L3, L3-L1 |
SoC | NA |
AlarmCode | NA |
Temperature | NA |
PowerFactor | NA |