Skip to content

Vehicle Diagnostics API

Look up any generic OBD-II trouble code — P0420, P0171, U0100 — and get its title, description, symptoms, common causes ranked by likelihood, repair difficulty, cost and hours estimates, MIL and emissions flags, related codes, and the mode 01/09 live-data PIDs.

API key required OpenAPI API conventions

Every generic (SAE/ISO) OBD-II diagnostic trouble code a scan tool can read out of a vehicle built since 1996: 9,533 codes across the P0, P2, P3, B0, C0, U0 and U3 families. Each one carries a plain-English title, a paragraph explaining what the control module actually measured and why it stored the code, the components involved, its common causes ranked high/medium/low, the symptoms a driver notices, a repair difficulty and a DIY verdict, cost and labour-hour estimates, and the malfunction-indicator-lamp, emissions, drive-cycle and limp-mode flags. The 132 mode 01 and mode 09 parameter IDs behind live data — engine RPM, coolant temperature, fuel trim, the VIN — are published alongside.

The source is the OBDex project (github.com/foerbsnavi/OBDex), whose data files are released under CC0 1.0 Universal: public domain, no attribution condition, no non-commercial or share-alike restriction. SAE J2012 and ISO 15031-6 are themselves copyrighted standards and nothing here reproduces either of them. What is published is the public code identifier plus OBDex's own independently written title, description and cause list — not standard text.

Only the English text is kept. OBDex ships every title, description, symptom and cause label in German as well, with a per-code list of source URLs, reference tags and review dates; all of that is dropped, which is most of the bytes. Codes live in one table keyed on the code itself, so /codes/P0420 is a primary-key lookup. Causes are one row per code and cause, ordered by an enumeration declared high, medium, low, so they arrive already ranked without a sort parameter. Symptoms, affected components and related codes are short joined strings on the code row: measured against child tables, inline came out at roughly half the bytes and returns in the same response.

Three questions, one request each. The causes of a code, most likely first: /v1/diagnostics/causes?code=P0420 returns "Catalyst aged or poisoned (oil consumption, silicone, coolant)" at likelihood high before the four medium entries. Every emissions-relevant fault an owner can fix themselves: /v1/diagnostics/codes?emissions_relevant=1&diy_possible=1&difficulty=easy. Every code whose explanation mentions a part: /v1/diagnostics/codes?q=catalyst searches code, title, description, components and related codes in one pass. Costs and hours filter as numbers — cost_max_eur__lte=200&hours_max__lte=1 is the cheap, quick list — and sort=-cause_count puts the codes with the most documented causes first.

Row counts: 9,533 codes, 28,334 ranked causes and 132 parameter IDs, in under 7MB on disk including every index. OBDex regenerates the enriched families as codes are reviewed; this snapshot is reloaded wholesale from the upstream files, so a code retired upstream disappears here too. Responses are cached for an hour.

Calls need a Bodek API key, free to create at https://api.bodek.us/keys.

Every call needs a key. Sign in to create one. Bodek API is included with the plans that cover it.

Endpoints

GET /v1/diagnostics/codes Trouble codes
GET /v1/diagnostics/codes/{id} A single record
GET /v1/diagnostics/causes Common causes
GET /v1/diagnostics/causes/{id} A single record
GET /v1/diagnostics/pids Parameter IDs
GET /v1/diagnostics/pids/{id} A single record

Try it

https://api.bodek.us/v1/diagnostics/codes?limit=5

        
      

This panel sends no key, so it answers 401 — it is here to show you the shape of a request and the error envelope. Use curl with your own key to see data.

Trouble codes

One row per generic OBD-II trouble code, with its title, description, repair estimate and flags. Addressed by the code itself: /codes/P0420.

FieldTypeDescriptionFilterSearchSort
code string The five-character trouble code, e.g. "P0420". This is the record identifier, so /codes/P0420 is a direct lookup.
category string The system the code belongs to: "powertrain", "chassis", "body" or "network". P-codes are powertrain, U-codes network.
title string Short name of the fault, e.g. "Catalyst System Efficiency Below Threshold Bank 1". Searched by q.
description string A paragraph on what the control module measured and why it stored the code — the P0420 entry explains how the module compares the oxygen sensors before and after the catalyst. Up to 1600 characters. Searched by q, so q=catalyst finds every code that mentions it.
difficulty string How hard the repair is: "easy", "medium", "hard" or "shop_only". Sorts in that order, not alphabetically.
diy_possible integer 1 when the source considers the repair feasible without a workshop, 0 when not, null when it does not say. Filter with diy_possible=1.
cost_min_eur integer Low end of the estimated parts-and-labour cost in euro, e.g. 80 for P0420.
cost_max_eur integer High end of the estimated cost in euro, e.g. 1800 for P0420. Use cost_max_eur__lte=200 for cheap repairs.
hours_min number Low end of the estimated labour time in hours, e.g. 0.5.
hours_max number High end of the estimated labour time in hours, e.g. 3.0. Use hours_max__lte=1 for quick jobs.
mil integer 1 when this code turns on the malfunction indicator lamp (the check-engine light), 0 when it does not, null when unstated.
emissions_relevant integer 1 when the fault affects emissions and will fail an OBD emissions test, e.g. P0420. Null when the source does not say.
drive_cycle_required integer 1 when a complete drive cycle is needed before the readiness monitor reports again after the repair, e.g. P0420.
limp_mode_possible integer 1 when the fault can put the vehicle into limp mode or reduced power, 0 when it cannot (P0420 is 0), null when the source does not say.
cause_count integer How many rows this code has in /causes, e.g. 5 for P0420. Sort with sort=-cause_count for the best-documented codes.
symptoms string What the driver notices, joined with " | ", e.g. "Check engine light on, otherwise often no change in driving | Emission test failed (higher HC, CO, NOx) | Rattling or loss of power if the catalyst has broken up" for P0420. Searched by q.
affected_components string Comma-joined component keys from the source, e.g. "catalytic_converter,downstream_oxygen_sensor,upstream_oxygen_sensor". Searched by q, so q=oxygen_sensor lists every code that names one.
related_codes string Comma-joined codes the source links to this one, e.g. "P0430,P0421,P0422,P0136,P2270,P0300" for P0420. Searched by q, so q=P0430 returns P0430 and everything linked to it.
curl "https://api.bodek.us/v1/diagnostics/codes?limit=5&category=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Common causes

One row per code and documented cause, with a high/medium/low likelihood. Default sort returns a code's causes most likely first.

FieldTypeDescriptionFilterSearchSort
id integer Row identifier, e.g. 11542. Stable within a snapshot; use code plus label to match across reloads.
code string The trouble code this cause belongs to, e.g. "P0420". Filter with code=P0420 to get that code's causes.
likelihood string How likely the source considers this cause: "high", "medium" or "low". Sorts high before medium before low, so the default sort is already a ranking.
label string The cause in one line, e.g. "Catalyst aged or poisoned (oil consumption, silicone, coolant)".
code_title string The title of the parent code, e.g. "Catalyst System Efficiency Below Threshold Bank 1" — so a cause row is readable on its own.
code_category string The parent code's system, e.g. "powertrain".
curl "https://api.bodek.us/v1/diagnostics/causes?limit=5&code=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Parameter IDs

The OBD-II mode 01 (live data) and mode 09 (vehicle information) parameter IDs, with byte count, unit, conversion formula and value range.

FieldTypeDescriptionFilterSearchSort
pid_key string Service mode and PID joined, e.g. "010C" for engine RPM. This is the record identifier, so /pids/010C is a direct lookup.
mode string The OBD-II service mode: "01" for live data, "09" for vehicle information. Filter with mode=09.
pid string The parameter ID within the mode, as two hex digits, e.g. "0C".
name string What the parameter reports, e.g. "Engine RPM" or "Vehicle Identification Number (VIN)".
bytes integer How many data bytes the response carries, e.g. 2 for engine RPM and 17 for the VIN.
unit string The unit of the decoded value, e.g. "rpm", "°C", "km/h", "%", or "ascii" for text parameters.
formula string How to turn the raw bytes into the value, with A as the first byte, e.g. "(256*A + B) / 4" for engine RPM.
range_min number Lowest value the formula can produce, e.g. -40 for coolant temperature.
range_max number Highest value the formula can produce, e.g. 16383.75 for engine RPM.
curl "https://api.bodek.us/v1/diagnostics/pids?limit=5&mode=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Common questions

How do I get access to the Vehicle Diagnostics API?

Bodek API is included with the Bodek plans that cover it. Sign in, create a key on the keys page, and send it as an Authorization: Bearer header. A key is scoped to the APIs you pick, carries its own rate limits and expiry, and can be revoked at any time.

What format does it return?

JSON over HTTPS, one GET per collection, with the same filtering, search, sort and paging conventions on every endpoint. An OpenAPI 3.1 description is published at https://api.bodek.us/v1/diagnostics/openapi.json.

How often does the data change?

It is maintained as production reference data, and responses carry an ETag so an unchanged request comes back as an empty 304. This API was last updated on 26 October 2026.

Limits

  • Up to 200 records per request (limit), 50 by default.
  • Rate limits are set per key, up to 600 requests a minute.
  • Responses are cached for up to 3600 seconds and carry an ETag.