WhichTrim Compare API

The Compare API from WhichTrim — 1 operation(s) for compare.

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 1

GET /compare Score two or three vehicles against each other with your own category weights #

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-compare-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-compare-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WhichTrim Vehicle Data Compare 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: Compare
paths:
  /compare:
    get:
      tags:
      - Compare
      summary: Score two or three vehicles against each other with your own category weights
      description: The same engine that powers whichtrim.com/compare. Seven categories (price, fuel & range, safety, space & cargo, performance, tech & comfort, warranty) scored 0-100 from EPA, NHTSA and manufacturer press-kit data; a metric missing for any contender is dropped for all; overall = weighted mean. Returns the verdict, every category and metric value behind it, the categories that decide it, and the weight change that would flip it. Trim-level where press-kit data exists (append :), model-level otherwise.
      operationId: compare
      parameters:
      - name: a
        in: query
        required: true
        schema:
          type: string
        example: 2026_kia_sportage:lx_fwd
      - name: b
        in: query
        required: true
        schema:
          type: string
        example: 2024_mazda_cx_90:3_3_turbo_select_awd
      - name: c
        in: query
        required: false
        schema:
          type: string
      - name: weights
        in: query
        required: false
        description: 0-5 per category in order budget-fuel-safety-space-performance-tech-warranty, or budget:5,safety:4
        schema:
          type: string
        example: 4-3-4-2-2-3-2
      - name: detail
        in: query
        required: false
        description: '1 adds detail: specs by family (best/worst flags), equipment matrix by system (differences flagged), safety record (NCAP, Safety Signal, recalls with remedy status, complaints) and ownership (price range, fuel cost, warranty). A contender without :trim uses its base trim where a press kit is on file (contenders[].trim_auto).'
        schema:
          type: string
          enum:
          - '1'
      - name: narrative
        in: query
        required: false
        description: '1 adds narrative: the plain-English take WhichTrim publishes for this pair (summary, pick_a_if, pick_b_if, basis) — written from the default-weight verdict on the base trims and cached, so it exists for the pre-computed head-to-heads only; null for other pairs.'
        schema:
          type: string
          enum:
          - '1'
      responses:
        '200':
          description: Verdict with scores
          metrics: null
          reasons and flips: null
        '400':
          description: Fewer than two vehicles
        '404':
          description: Unknown vehicle id
components:
  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.