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

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

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

Compatible with 15 brands

Compatible with 15 brands

Access to live data

Access to live data

Batch requests

Batch requests

No aftermarket hardware

No aftermarket hardware

How to use it

Fleet management

Peer-to-peer car sharing

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

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

Fleet management

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

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