EV Charging API
Check the charging status and charge electric vehicles with simple API requests.
Check whether an EV’s charging cable is plugged in and charging.
Remotely start or stop charging a battery electric (BEV) or plug-in hybrid vehicle (PHEV).
const smartcar = require('smartcar');
// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicles("<access-token>");
// Construct a new vehicle instance using the first vehicle's id
const vehicle = new smartcar.Vehicle(vehicles[0], "<access-token>");
// Fetch the vehicle's charging status
const charge = await vehicle.charge();
// Start the vehicle's charging session
await vehicle.startCharge();
// Example http response from Smartcar (charging status)
{
"isPluggedIn": true,
"state":"FULLY_CHARGED"
}
// Example http response from Smartcar (start charge)
{
"status": "success"
}
Provide estimated charging times, automatic charging schedules, and EV trip planning in your app.
Learn more about EV chargingManage your customers’ residential EV charging to best balance electric grid load.
Learn more about energy and utilities