Electric vehicle battery

EV charging reinvented

Retrieve the battery level and charging status from electric vehicles. Start and stop charging with simple API calls.

Battery level

Retrieve the state of charge (SOC) and the remaining range from a battery electric vehicle (BEV) or a plug-in hybrid vehicle (PHEV).

Charging status

Know whether an electric vehicle's charging cable is plugged in and whether it is charging.

Start and stop charge (early access)

Remotely start or stop charging an electric vehicle.

Node

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
const smartcar = require('smartcar');

// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicleIds("<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 battery level
const battery = await vehicle.battery();
console.log(battery);

// Fetch the vehicle's charging status
const charge = await vehicle.charge();
console.log(charge);

// Start the vehicle's charging session
await vehicle.startCharge();
// Example response from Smartcar (battery level)
{
  "percentRemaining": 0.3,
  "range": 40.5,
}

// Example response from Smartcar (charging status)
{
  "isPluggedIn": true,
  "state":"FULLY_CHARGED"
}

// Example response from Smartcar (start charge)
{
  "status": "success"
}

Product features

API SDKs in Go, Java, Node.js, Python, and Ruby

API SDKs in Go, Java, Node.js, Python, and Ruby

Compatible with 19 brands

Compatible with 19 brands

Access to live data

Access to live data

Batch requests

Batch requests

No aftermarket hardware

No aftermarket hardware

How to use it

EV charging

Fleet management

Monitor SOC and charging progress of your customer’s electric vehicle. Let them plan trips and create smart charging schedules.

Integrate efficient fuel and EV battery management into your fleet management product.

EV charging

Monitor SOC and charging progress of your customer’s electric vehicle. Let them plan trips and create smart charging schedules.

Fleet management

Integrate efficient fuel and EV battery management into your fleet management product.

What we're building

Subscribe to our newsletter

Ready to get started?

Get Started

Ready to get started?

Get Started