Fuel Tank API
With Smartcar, checking the fuel tank level of your customer’s car is a breeze.
Retrieve the remaining range and the amount and percentage of fuel remaining in a vehicle’s tank.
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 fuel tank level
const fuel = await vehicle.fuel();
// Example http response from Smartcar
{
"amountRemaining": 53.2,
"percentRemaining": 0.3,
"range": 40.5
}
Allow fleet managers to monitor fuel tank levels and driver efficiency across all vehicles in their fleet.
Learn more about fleet managementRemind customers to schedule their next fuel delivery whenever they run low on gas.
Learn more about on-demand servicesSmartcar is the easiest way to integrate mobility apps and services with cars.