The official API for ev.energy, version 2.
- List status logs for a vehicle
ev.energy v2 API (2.0)
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicle_makes/{vehicle_make_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicle_makes/{vehicle_make_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicle_makes/{vehicle_make_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developers.ev.energy/_mock/ev.energy-api-v2/vehicle_makes/vmak01HRFHBCM7VBSWRPVYFBQMH2BR \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Return a single vehicle make.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
Unique identifier for the given Vehicle Make.
A url for an image of the make's logo.
A pre-constructed link to initiate onboarding for a vehicle of this make. If it is null, then it cannot be onboarded with make alone. You should filter the list of vehicle models by this make and then have the user select their model.
Note: if you are using client credentials authentication, the user ID will not be automatically included unless you set the EvEnergy-User header on your request.
{ "id": "vmak01HRFHBCM7VBSWRPVYFBQMH2BR", "url": "https://api.ev.energy/v2/vehicle_makes/vmak01HRFHBCM7VBSWRPVYFBQMH2BR", "name": "Volvo", "icon": "https://cdn.example.com/volvo.png", "onboarding_url": "https://api.ev.energy/v2/vehicle_onboarding/?make_id=vmak01HN2P75GBNFRJPCZJXEFVXH5E&user_id=user01HN2NJ9NMRZBXT1H6FT9N7735", "models": "https://api.ev.energy/vehicle_models?make_id=vmak01HN2P75GBNFRJPCZJXEFVXH5E" }
Request
List the historical status logs for a specific Vehicle. Used to find out the state of the Vehicle at each point it reported in to ev.energy.
Return results from the page after this ID.
Return results from the page before this ID.
Specify the number of results to return per page.
Filters for logs sampled at or after this datetime.
Filters for logs sampled at or before this datetime.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/status_logs
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/status_logs
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/status_logs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/status_logs?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&sampled_at__gte=2024-04-17T09%3A39%3A45.984584Z&sampled_at__lte=2024-04-17T09%3A39%3A45.984584Z&expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'List all the status logs for a specific Vehicle, sorted newest first.
Provides links to the previous and next pages of data, if they exist.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
The date and time this status information was received and stored.
The date and time when this data was recorded. Likely to be earlier than logged_at, but how much earlier depends on the integration and other factors.
How full the vehicle's battery is, as a percentage. Will be null if we are unable to get this information from the vehicle's telematics.
Is the vehicle currently receiving charge? Will be null if we are unable to get this information from the vehicle's telematics.
Is the vehicle currently connected to an EVSE? Will be null if we are unable to get this information from the vehicle's telematics.
The current rate of charge being received, in watts. Will be null if we are unable to get this information from the Vehicle integration.
[ { "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/status_logs/2024-01-01T11:11:11.1111Z/", "logged_at": "2019-08-24T14:15:22Z", "sampled_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "state_of_charge_percentage": 70, "is_charging": false, "is_plugged_in": false, "charge_rate_watts": 0 } ]
Request
A single status log for a particular vehicle is uniquely identified by the timestamp it was logged at.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/{vehicle_id}/status_logs/{sampled_at}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/vehicles/{vehicle_id}/status_logs/{sampled_at}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/vehicles/{vehicle_id}/status_logs/{sampled_at}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/status_logs/2024-04-17T09:39:45.984584Z?expand=vehicle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns the Vehicle status logged at a specific time.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
The date and time this status information was received and stored.
The date and time when this data was recorded. Likely to be earlier than logged_at, but how much earlier depends on the integration and other factors.
How full the vehicle's battery is, as a percentage. Will be null if we are unable to get this information from the vehicle's telematics.
Is the vehicle currently receiving charge? Will be null if we are unable to get this information from the vehicle's telematics.
Is the vehicle currently connected to an EVSE? Will be null if we are unable to get this information from the vehicle's telematics.
{ "url": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H/status_logs/2024-01-01T11:11:11.1111Z/", "logged_at": "2019-08-24T14:15:22Z", "sampled_at": "2019-08-24T14:15:22Z", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "state_of_charge_percentage": 70, "is_charging": false, "is_plugged_in": false, "charge_rate_watts": 0 }