EV Charging API

Remotely manage EV charging

Check the charging status and charge electric vehicles with simple API requests.

Charging status

Check whether an EV’s charging cable is plugged in and charging.

Start or stop charge

Remotely start or stop charging a battery electric (BEV) or plug-in hybrid vehicle (PHEV).

Get & set charge limit

Preserve battery health by managing charge limits for electric vehicles.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
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"
}
See the API docs

Product features

Compatible with 36 car brands

Compatible with 36 car brands

Friendly user consent flow

Friendly user consent flow

Works on 2015 and newer vehicles

Works on 2015 and newer vehicles

Trusted & secure

Trusted & secure

Retrieve live data and trigger live actions

Retrieve live data and trigger live actions

SDKs for Go, Java, Node.js, Python, and Ruby

SDKs for Go, Java, Node.js, Python, and Ruby

Learn more about Smartcar’s APIs

Related industries

EV charging networks

Provide estimated charging times, automatic charging schedules, and EV trip planning in your app.

Learn more about EV charging

Energy & utility providers

Manage your customers’ residential EV charging to best balance electric grid load.

Learn more about energy and utilities

What we’re building

Latency and frequency of data availability may vary between makes and models.