Guide

How to track Toyota Camry fuel level and refuels via API

· 3 min read

To track fuel level and refuels on a Toyota Camry, share the vehicle with your app, get a Vehicle JWT, then read signalsLatest and query refuel segments through the DIMO Telemetry API. On a Camry (2007 and newer), the DIMO LTE R1 reports fuel level in liters as powertrainFuelSystemAbsoluteLevel and supports refuel events. Vehicle owners consent to and control sharing, so builders get data with clear provenance.

See the Toyota Camry vehicle page for every signal it reports. For any other vehicle, see how to detect refuels.

Steps​

  1. Check the hardware. On a Camry, the DIMO LTE R1 reports fuel level and refuel events. The AutoPi does not report fuel level or refuel events on the Camry, so this guide uses the DIMO LTE R1.
  2. Create a Developer License in the Developer Console. You need its Client ID, Redirect URI and API Key.
  3. Get the Camry shared with your app through DIMO Connect. You need a vehicle shared with you to fetch a Vehicle JWT.
  4. Get a Developer JWT, then exchange it for a Vehicle JWT through the Token Exchange API. Send the vehicle token ID and ask for privilege 1 (all-time, non-location data) and privilege 4 (all-time location). The segments query needs both.
  5. Send the Vehicle JWT in the Authorization header of Telemetry API requests, as Authorization: Bearer <Vehicle JWT>. To read the current fuel level, query signalsLatest for powertrainFuelSystemAbsoluteLevel and request value and timestamp.
  6. To find refuels, query segments with the refuel detection mechanism. Each segment has a start, an end, a duration and an ongoing flag. For refuel segments, the default signal set includes the level signal at the start and end. The query range is limited to 31 days.
  7. Page through results with limit and after. The default limit is 100 and the maximum is 200.

Code​

This query lists a week of refuel segments with the fuel level in liters at the start and end of each one. Replace 12345 with your vehicle's token ID.

# Header: { "Authorization": "Bearer <yourVehicleJwt>" }
query GetRefuels {
segments(
tokenId: 12345
from: "2026-11-01T00:00:00Z"
to: "2026-11-08T00:00:00Z"
mechanism: refuel
signalRequests: [
{ name: "powertrainFuelSystemAbsoluteLevel", agg: FIRST }
{ name: "powertrainFuelSystemAbsoluteLevel", agg: LAST }
]
limit: 50
) {
start {
timestamp
value { latitude longitude }
}
end {
timestamp
value { latitude longitude }
}
duration
isOngoing
startedBeforeRange
signals { name agg value }
}
}

Next, get a Developer License in the Developer Console and follow the authentication guide to obtain your first Vehicle JWT.

FAQ​

Which Camry connection reports fuel level?​

The DIMO LTE R1 reports fuel level on the Camry, in liters as powertrainFuelSystemAbsoluteLevel. It also reports refuel events. The AutoPi reports neither on the Camry.

How does DIMO decide that a refuel happened?​

The refuel detection mechanism looks for places where the fuel level rises significantly. The minIncreasePercent setting in the segment config controls the minimum percent increase within a window, and its default is 15.

Can I look back more than 31 days?​

A single segments query has a maximum date range of 31 days. Run several queries over consecutive ranges to cover a longer period.

Methodology: based on the DIMO documentation for Authentication, Building Your First App, and the Telemetry API Vehicle Signals and Vehicle Segments references, plus the signals and events listed on the Toyota Camry vehicle page.

More guides · Browse vehicles