WhichTrim Vehicles API

The Vehicles API from WhichTrim — 4 operation(s) for vehicles.

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 4

GET /vehicles List model-years with headline figures #
GET /vehicles/{id} Full record for one model-year #
GET /vehicles/{make}/{model}/{year} Full record by make / model / year #
GET /vin/{vin} Decode a VIN and join it to the dataset #

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-vehicles-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-vehicles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WhichTrim Vehicle Data Vehicles 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: Vehicles
paths:
  /vehicles:
    get:
      tags:
      - Vehicles
      summary: List model-years with headline figures
      operationId: listVehicles
      parameters:
      - name: make
        in: query
        schema:
          type: string
        example: kia
      - name: model
        in: query
        schema:
          type: string
        example: sportage
      - name: year
        in: query
        schema:
          type: integer
        example: 2026
      - name: grade
        in: query
        schema:
          type: string
          enum:
          - A
          - B
          - C
          - D
          - F
      - name: min_score
        in: query
        schema:
          type: integer
          minimum: 0
          maximum: 100
      - name: advisory
        in: query
        schema:
          type: boolean
        description: true = only vehicles with an active park-outside / do-not-drive advisory
      - name: limit
        in: query
        schema:
          type: integer
          default: 100
          maximum: 500
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: Matching vehicles
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/Meta'
                  count:
                    type: integer
                  vehicles:
                    type: array
                    items:
                      $ref: '#/components/schemas/Vehicle'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooMany'
  /vehicles/{id}:
    get:
      tags:
      - Vehicles
      summary: Full record for one model-year
      description: EPA configurations, every recall with severity and advisory flags, complaint aggregates and excerpts, NCAP ratings, ODI investigations, press-kit trims/specs/features where published, and `bulletins` — the manufacturer communications filed with NHTSA for that model year (service bulletins, service campaigns, warranty extensions, over-the-air updates) with counts by kind and component plus the most recent document numbers, dates and summaries. A bulletin is a repair procedure the manufacturer sent its dealers, not a defect finding.
      operationId: getVehicleById
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: 2026_kia_sportage
      responses:
        '200':
          description: Full record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VehicleFull'
        '404':
          $ref: '#/components/responses/NotFound'
  /vehicles/{make}/{model}/{year}:
    get:
      tags:
      - Vehicles
      summary: Full record by make / model / year
      operationId: getVehicle
      parameters:
      - name: make
        in: path
        required: true
        schema:
          type: string
        example: toyota
      - name: model
        in: path
        required: true
        schema:
          type: string
        example: rav4
      - name: year
        in: path
        required: true
        schema:
          type: integer
        example: 2026
      responses:
        '200':
          description: Full record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VehicleFull'
        '404':
          $ref: '#/components/responses/NotFound'
  /vin/{vin}:
    get:
      tags:
      - Vehicles
      summary: Decode a VIN and join it to the dataset
      description: 'Decodes a 17-character VIN against NHTSA''s public vPIC database and returns it joined to this dataset: the matching model-year record with its Safety Signal grade, every recall campaign, complaint aggregates, crash ratings and published trims. `matched.exact_year` is false when only a neighbouring model year is held. `decode.equipment` maps the driver-assist equipment the manufacturer filed for that configuration — forward collision warning, automatic emergency braking, lane keeping, blind-spot monitoring, adaptive cruise and the rest — to `standard` or `optional`; a system the manufacturer did not file is absent rather than false.'
      operationId: decodeVin
      parameters:
      - name: vin
        in: path
        required: true
        schema:
          type: string
          minLength: 17
          maxLength: 17
        example: 5XYP3DHC8NG123456
      responses:
        '200':
          description: Decode plus the matched vehicle record (vehicle is null when the model year is not held)
        '400':
          description: Not a 17-character VIN
        '502':
          description: NHTSA vPIC did not answer
components:
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooMany:
      description: Plan quota or rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Missing / invalid key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Recall:
      type: object
      properties:
        campaign:
          type: string
          example: 26V431000
        component:
          type: string
        mfr:
          type: string
        reported:
          type: string
          format: date
        owner_notified:
          type: string
          format: date
        units:
          type:
          - integer
          - 'null'
        summary:
          type: string
        consequence:
          type: string
        remedy:
          type: string
        park_outside:
          type: boolean
        do_not_drive:
          type: boolean
        severity:
          type: string
          enum:
          - critical
          - high
          - moderate
          - minor
        variants:
          type: array
          items:
            type: string
          description: Powertrains the campaign is limited to; empty = all
    Spec:
      type: object
      properties:
        trim_id:
          type: string
        spec_id:
          type: string
          example: engine_horsepower_hp
        canonical_name:
          type: string
        spec_family:
          type: string
        unit:
          type:
          - string
          - 'null'
        value_numeric:
          type:
          - number
          - 'null'
        value_text:
          type:
          - string
          - 'null'
        source_url:
          type: string
          format: uri
        confidence:
          type: number
    Config:
      type: object
      description: One EPA-certified configuration
      properties:
        id:
          type: integer
          description: fueleconomy.gov record id
        model:
          type: string
          example: Sportage Hybrid FWD
        pt:
          type: string
          enum:
          - bev
          - phev
          - hev
          - gas
          - diesel
          - cng
          - fcev
        drive:
          type: string
        trany:
          type: string
        cyl:
          type:
          - integer
          - 'null'
        displ:
          type:
          - number
          - 'null'
        turbo:
          type: boolean
        city:
          type:
          - integer
          - 'null'
        hwy:
          type:
          - integer
          - 'null'
        comb:
          type:
          - integer
          - 'null'
          description: MPG, or MPGe for electric
        kwh100:
          type:
          - number
          - 'null'
        range:
          type:
          - integer
          - 'null'
          description: EPA range (BEV)
        erange:
          type:
          - number
          - 'null'
          description: Electric range (PHEV)
        charge240:
          type:
          - number
          - 'null'
          description: Hours at 240 V
        motor:
          type: string
        vclass:
          type: string
        co2:
          type:
          - integer
          - 'null'
        fuel_cost:
          type:
          - integer
          - 'null'
          description: EPA annual fuel cost estimate (USD)
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
        docs:
          type: string
          format: uri
    Vehicle:
      type: object
      properties:
        id:
          type: string
          example: 2026_kia_sportage
        make:
          type: string
          example: Kia
        model:
          type: string
          example: Sportage
        year:
          type: integer
          example: 2026
        segment:
          type: string
          example: Compact SUV
        powertrains:
          type: array
          items:
            type: string
          example:
          - Plug-in hybrid
          - Hybrid
          - Gas
        grade:
          type: string
          enum:
          - A
          - B
          - C
          - D
          - F
        score:
          type: integer
          minimum: 35
          maximum: 100
        recall_count:
          type: integer
        critical_count:
          type: integer
        active_advisory:
          type: boolean
        complaints:
          type: integer
          description: Unique NHTSA complaints on file for the model year
        ncap_overall:
          type:
          - integer
          - 'null'
          minimum: 1
          maximum: 5
        best_mpg:
          type:
          - integer
          - 'null'
        best_range_mi:
          type:
          - integer
          - 'null'
        msrp_from:
          type:
          - number
          - 'null'
          description: Lowest trim MSRP from the manufacturer press kit, when published
        page:
          type: string
          format: uri
    Meta:
      type: object
      properties:
        generated_at:
          type: string
          format: date-time
        vehicles:
          type: integer
        makes:
          type: integer
        recalls:
          type: integer
        years:
          type: array
          items:
            type: integer
        source:
          type: string
        grade_method:
          type: string
    Trim:
      type: object
      properties:
        trim_id:
          type: string
          example: 2026_kia_sportage_sx_prestige_awd
        trim_name:
          type: string
          example: SX Prestige
        drivetrain:
          type: string
          example: AWD
        powertrain:
          type: string
          example: ice
        msrp_base:
          type:
          - number
          - 'null'
        sort_order:
          type: integer
    Complaints:
      type:
      - object
      - 'null'
      properties:
        count:
          type: integer
        crash:
          type: integer
        fire:
          type: integer
        injured:
          type: integer
        deaths:
          type: integer
        comps:
          type: array
          items:
            type: array
            items: {}
          description: '[component, count] pairs, most-cited first'
        by_year:
          type: object
          additionalProperties:
            type: integer
        excerpts:
          type: array
          items:
            type: array
            items:
              type: string
          description: '[date, component, text] — up to three recent owner reports'
    VehicleFull:
      allOf:
      - $ref: '#/components/schemas/Vehicle'
      - type: object
        properties:
          configs:
            type: array
            items:
              $ref: '#/components/schemas/Config'
          recalls:
            type: array
            items:
              $ref: '#/components/schemas/Recall'
          complaints:
            $ref: '#/components/schemas/Complaints'
          investigations:
            type: array
            items:
              type: object
          ncap:
            type: array
            items:
              $ref: '#/components/schemas/Ncap'
          trims:
            type: array
            items:
              $ref: '#/components/schemas/Trim'
          specs:
            type: array
            items:
              $ref: '#/components/schemas/Spec'
          features:
            type: array
            items:
              $ref: '#/components/schemas/Feature'
          generated_at:
            type: string
            format: date-time
    Feature:
      type: object
      properties:
        trim_id:
          type: string
        feature_id:
          type: string
        canonical_name:
          type: string
        feature_system:
          type: string
        availability:
          type: string
          enum:
          - standard
          - optional
          - not_available
    Ncap:
      type: object
      properties:
        desc:
          type: string
          example: SUV AWD
        overall:
          type:
          - integer
          - 'null'
        frontal:
          type:
          - integer
          - 'null'
        side:
          type:
          - integer
          - 'null'
        rollover:
          type:
          - integer
          - 'null'
        rollover_risk:
          type:
          - number
          - 'null'
        seats:
          type:
          - integer
          - 'null'
  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.