nielsen

Notes · Cars

Live Ford data on a home page with the FordConnect API

Last updated December 2026

We wanted one page at home that shows each car's miles, fuel, oil life and tire pressure, without opening an app for each one. Ford has an official read-only API for this, called FordConnect. A small Python script on a Raspberry Pi now asks Ford every four hours what our two Fords last reported. Here's how it's built and what tripped us up.

Tested in November 2026 with a 2022 F-350 and a 2019 Mustang, both US cars on a US Ford account, the FordConnect Query API, and Python 3.12 in Docker on a Raspberry Pi. These are our setup notes, not official Ford advice. We aren't affiliated with Ford or endorsed by it. Ford can change the API, so check its docs before you build.

What the page shows

Each car gets a card with its odometer, what's due next (oil, brake fluid, registration) and any booked shop dates. Click a card and you see what the car itself reports: fuel, oil life, the pressure in each tire, the 12 V battery, and whether it's locked. A low tire or a weak battery also sends a message to a phone.

An example cars page with one card each for a Ford Mustang and a Ford F-350, showing odometer, what is due, dates and open items, with a low tire flagged on the Mustang
An example with two cars and made-up data. The red flag is a tire the car reports as low.

Two sources feed the page. A file we keep by hand holds the service history and due dates. Ford's API fills in the live numbers.

What you need

Ford ties each sign-in to one vehicle. When you log in, Ford asks which car to share, and the token you get back works for that car only. Two Fords means doing this twice.

  1. Start a tiny web server on your computer that listens on port 8080 for /callback.
  2. Open Ford's login address in a browser, with your client ID, the redirect address and a random state value.
  3. Sign in and pick one car.
  4. Ford sends the browser back to your local server with a code. Trade the code for an access token and a refresh token.
  5. Call /garage to find out which car you just linked, and save the tokens in a file named after it.

All of the addresses sit under https://api.vehicle.ford.com:

PathWhat it's for
/fcon-public/v1/auth/initThe login page
/fcon-query/v1/garageWhich car this token is for
/fcon-query/v1/telemetryEverything the car last reported
/fcon-query/v1/vehicle-health/alertsWarnings the car has raised
/fcon-query/v1/vehicle-imageA link to a picture of the exact car

Our link script does all five steps and then copies the token file to the Pi. We run it by hand, once per car.

Ask every four hours

The collector is one Python script in a Docker container. Every four hours, for each linked car, it does this:

  1. If the access token is about to run out, it trades the refresh token for a new one. Ford sends back a new refresh token too, so the script saves it each time.
  2. It reads /telemetry and /vehicle-health/alerts.
  3. It converts the units and writes one JSON file for the web page, plus a few numbers for the alert rules.

A read looks like this:

curl -s -H "Authorization: Bearer $TOKEN" \
  https://api.vehicle.ford.com/fcon-query/v1/telemetry

Four hours is plenty, because the numbers only change when the car drives. The script reads what Ford already has on file. It doesn't send the car any commands.

What Ford sends back

Every reading comes with the time the car reported it, which tells you how fresh the number is.

ReadingHow it arrivesWhat we show
OdometerKilometersMiles
FuelPercent, plus range in kilometersPercent and miles
Oil lifePercentPercent
TireskPa per wheel, the door-sticker value, and the car's own OK or low flagpsi, with low tires marked
12 V batteryVolts and charge percentVolts
Locks and doorsLocked or not, and any door or hood left openA flag on the card
PositionLatitude, longitude and headingA pin on a map

There's more in the reply: ignition state, gear, coolant and outside temperature, window gaps, alarm state. We list those on the car's page under their own names.

An example page for one truck: Ford's picture of it, a dashboard with odometer, fuel, oil life, four tire pressures, battery volts and lock state, then a table of every other reading
The same example, one car's page. The numbers are made up, and the layout is what we see at home.

The map

Under the cards, a map shows a pin at each car's last reported position. It's about thirty lines of JavaScript.

An example street map with two labeled pins, one for a Ford F-350 and one for a Ford Mustang
The example map page with two made-up positions in Dearborn, Michigan.

Alerts to a phone

The collector writes its numbers where Prometheus can read them, and four rules send a Telegram message:

If you don't run Prometheus, the script could send the message itself with one call to Telegram's bot API.

What Ford doesn't know

Ford knows the oil life the car worked out. It doesn't know our own rule, which is an oil change every 5,000 miles or 12 months. It doesn't know what the shop did last spring or when the registration is due either. All of that lives in one JSON file we edit by hand, with one entry per car and a source for every number, such as a repair order.

The page matches the two by VIN. It uses Ford's odometer only when it's newer than ours and not lower, so one bad reading can't move the miles backward.

Things that bit us

What we chose on purpose

The yearly redo

Ford's consent lasts one year. After that the refresh is turned down, the page shows "relink" next to the car, and someone has to run the link script again. We linked ours in November 2026, so we haven't been through a renewal yet. We'll update this page when we have.

A thank-you to Ford

We're glad Ford gives owners this access, and we haven't paid anything for it. An official, read-only way to see our own cars' data is what made this easy to build.

The code

The two scripts we run are on GitHub at cxnielsen/fordconnect-home-dashboard, with our host names and paths taken out. One links a car and the other is the collector. Both are plain Python with no extra packages.

The repo also has a sample of the JSON file the collector writes, so you can see the output before you link a car. A one-file map page and an example Docker setup are in there too. The scripts are examples of what works for us. They come with no support, and Ford didn't make or approve them.

Sources