Fuel tank API

Fuel your business

Retrieve the fuel tank level from cars across brands with a single API.

Amount remaining

Know the amount of fuel remaining in a vehicle’s tank.

Percent remaining

Read the percentage of fuel remaining in the tank.

Range

Access the estimated distance the vehicle can travel with its current fuel tank level.

Node

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
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 fuel tank level
const fuel = await vehicle.fuel();
console.log(fuel);
// Example response from Smartcar
{
  "amountRemaining": 53.2,
  "percentRemaining": 0.3,
  "range": 40.5
}

Product features

Access to live fuel tank level

Access to live fuel tank level

Compatible with 14 brands

Compatible with 14 brands

API SDKs in Node.js, Python, and Java

API SDKs in Node.js, Python, and Java

No aftermarket hardware

No aftermarket hardware

How to use it

Peer-to-peer car sharing

Verify the fuel tank level of your customers’ vehicles immediately at the start and end of each car rental.

Peer-to-peer car sharing

Verify the fuel tank level of your customers’ vehicles immediately at the start and end of each car rental.

Ready to get started?

Get Started

Ready to get started?

Get Started