WhichTrim Trouble codes API

The Trouble codes API from WhichTrim — 2 operation(s) for trouble codes.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /dtc Diagnostic trouble codes joined to the vehicles whose federal record names them #
GET /dtc/{code} One trouble code and the model years whose record names it #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/whichtrim-com:whichtrim-com-trouble-codes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

whichtrim-com-trouble-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WhichTrim Vehicle Data Trouble codes API
  version: 1.1.0
  summary: Specs, recalls, complaints, crash ratings and Safety Signal grades for every U.S. vehicle model-year.
  description: 'One record per nameplate-year for every car, truck and SUV sold in the U.S. (model years 2016–2027), joined from

    public-domain federal sources and manufacturers'' official press kits:


    * **EPA** fueleconomy.gov certification records — every configuration, MPG/MPGe, range, charge time, motor, class

    * **NHTSA** recall campaigns with severity, `park_outside` / `do_not_drive` flags and remedy text

    * **NHTSA** owner-complaint aggregates (counts, crash/fire/injury tallies, top components, recent excerpts)

    * **NHTSA** defect investigations and NCAP 5-Star crash ratings

    * **Manufacturer press kits** — trims, MSRP, specifications and standard/optional equipment where published

    * a **Safety Signal grade (A–F) and score** per model-year derived from the recall record


    Identifiers: `__` (e.g. `2026_kia_sportage`). Trim ids are prefixed with the vehicle id.

    Attribution ("Data: WhichTrim, from EPA and NHTSA public records") is required on the Free plan.'
  contact:
    name: WhichTrim
    url: https://whichtrim.com/developers/
    email: data@whichtrim.com
  termsOfService: https://whichtrim.com/terms/
servers:
- url: https://api.whichtrim.com/v1
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Trouble codes
paths:
  /dtc:
    get:
      tags:
      - Trouble codes
      summary: Diagnostic trouble codes joined to the vehicles whose federal record names them
      description: Mined from the summaries of NHTSA manufacturer communications and from owner complaint narratives. A match is only counted where the surrounding text is discussing a diagnostic result, so hyphenated part numbers and document references are not returned as codes. `defined_by` is `standard` (generic OBD-II, and a `meaning` is returned), `manufacturer` (second character 1 or 3 — the automaker owns the meaning and no definition is returned for it) or `undefined`. Counts are mentions in the federal files, never failure rates.
      operationId: listDtc
      parameters:
      - name: vehicle
        in: query
        schema:
          type: string
          example: 2015_honda_accord
        description: Only codes on file for this model year
      - name: system
        in: query
        schema:
          type: string
          enum:
          - P
          - B
          - C
          - U
        description: Powertrain, Body, Chassis or Network
      - name: limit
        in: query
        schema:
          type: integer
          default: 100
          maximum: 500
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: Codes with the model years
          bulletins and owner reports behind each: null
  /dtc/{code}:
    get:
      tags:
      - Trouble codes
      summary: One trouble code and the model years whose record names it
      operationId: getDtc
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
        example: P0420
      responses:
        '200':
          description: Code
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
        docs:
          type: string
          format: uri
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Create keys at https://whichtrim.com/dashboard/. RapidAPI users send X-RapidAPI-Key instead.