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).
Preserve battery health by managing charge limits for electric vehicles.
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();
// Set the vehicle's charge limit
await vehicle.setChargeLimit(0.8);
// Example http response from Smartcar (charging status)
{
"isPluggedIn": true,
"state":"FULLY_CHARGED"
}
// Example http response from Smartcar (start charge)
{
"status": "success"
}
// Example http response from Smartcar (set charge limit)
{
"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 utilitiesSmartcar is the easiest way to integrate mobility apps and services with cars.