Before you can start making API requests to Smartcar, your customers will need to link their cars to your app. Our Smartcar Connect flow makes this easy, secure, and instant.
One API for 19 car brands
No hardware
Privacy first
Trusted and secure
Easy integration

Our friendly documentation and SDKs make the Smartcar API easy to integrate with whichever tech stack you use.
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"
}