APIs / Cars / NHTSA

1 credit per call4 endpoints

NHTSA API

NHTSA API to decode VINs and get vehicle recalls, owner complaints and 5-Star NCAP safety ratings by make, model and year as JSON. 1 credit per call.

NHTSA
GET/v1/nhtsa/vin-decode?vin=1HGCM82633A004352
{
  "success": true,
  "data": {
    "vin": "1HGCM82633A004352",
    "decoded_clean": true,
    "error_code": "0",
    "error_text": "0 - VIN decoded clean. Check Digit (9th position) is correct",
    "make": "HONDA",
    "manufacturer": "AMERICAN HONDA MOTOR CO., INC.",
    "model": "Accord",
    "model_year": 2003,
    "trim": "EX-V6",
    "body_class": "Coupe",
    "vehicle_type": "PASSENGER CAR",
    "doors": 2,
    "engine": {
      "cylinders": 6,
      "displacement_l": 3,
      "horsepower": 240,
      "configuration": "V-Shaped",
      "model": "J30A4",
      "fuel_type": "Gasoline"
    },
    "transmission": {
      "style": "Automatic",
      "speeds": 5
    },
    "gvwr": "Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)",
    "plant": {
      "city": "MARYSVILLE",
      "state": "OHIO",
      "country": "UNITED STATES (USA)"
    },
    "safety": {
      "airbags_front": "1st Row (Driver and Passenger)",
      "airbags_side": "1st Row (Driver and Passenger)",
      "airbags_curtain": "1st and 2nd Rows"
    },
    "manufacturer_id": 988,
    "make_id": 474,
    "model_id": 1861
  },
  "meta": {
    "request_id": "req_54089e5fe0884078ac579d9949d6bc10",
    "credits_charged": 1,
    "credits_remaining": 198
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/nhtsa/vin-decode?vin=1HGCM82633A004352" \
  -H "X-API-Key: $API_KEY"

NHTSA · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/nhtsa/complaints
makemodelmodel_year+2 optional
odi_numbermanufacturerdate_filedincident_datecomponentssummary+6 more
1 credit
GET/v1/nhtsa/recalls
makemodelmodel_year
campaign_numberreport_received_datemanufacturermakemodelmodel_year+10 more
1 credit
GET/v1/nhtsa/safety-ratings
makemodelmodel_year
vehicle_iddescriptionmakemodelmodel_yearoverall_rating+7 more
1 credit
GET/v1/nhtsa/vin-decode
vin+1 optional
vindecoded_cleanerror_codeerror_textmakemanufacturer+14 more
1 credit

Overview

About the NHTSA API

What you can get

The NHTSA API returns U.S. National Highway Traffic Safety Administration vehicle data as JSON through 4 endpoints.

  • VIN decode: vin-decode takes a 17-character vin (no I, O or Q), with an optional model_year that helps decode VINs from before 1980.
  • Recalls: recalls takes a make, model and model_year.
  • Complaints: complaints takes a make, model and model_year, with page and per_page (1 to 100). Complaints come newest first.
  • Safety ratings: safety-ratings takes a make, model and model_year, and returns up to 10 variants.

The recorded vin-decode for 1HGCM82633A004352 returned a 2003 Honda Accord EX-V6 coupe with decoded_clean true, an engine block (6 cylinders, 3 litres, 240 horsepower, fuel_type Gasoline), a 5-speed automatic transmission, the assembly plant (Marysville, Ohio) and the safety airbag fields, plus vPIC's error_code and error_text. The recorded safety-ratings call for a 2022 Toyota Camry returned 2 variants, each with overall_rating 5, frontal, side and rollover stars, a rollover risk of 0.099, safety_technology, complaints_count and recalls_count.

How a call works

Ask about a vehicle: GET /v1/nhtsa/recalls?make=honda&model=accord&model_year=2003 with your key in the X-API-Key header returned 24 recall campaigns in the recording, each with campaign_number, report_received_date, component, summary, consequence, remedy, the park_it, park_outside and over_the_air_update flags and a url. A vehicle NHTSA doesn't know returns an empty list. Answers come from a cache for up to 6 hours. Every successful call costs 1 credit; failed calls cost nothing.

CarsJSONRESTMCP

More cars APIs

Use cases

Decode a VIN from a listing into make, model, trim, engine and plant

Use the NHTSA API to decode a VIN from a listing into make, model, trim, engine and plant

Show open recall campaigns on a used-car listing page

Use the NHTSA API to show open recall campaigns on a used-car listing page

Flag models with many crash, fire or injury complaints

Use the NHTSA API to flag models with many crash, fire or injury complaints

Compare 5-Star frontal, side and rollover ratings across variants

Use the NHTSA API to compare 5-Star frontal, side and rollover ratings across variants

FAQ

Questions

Is this the official NHTSA API?

No. Perceptlayer is an independent service and is not affiliated with NHTSA. NHTSA's vPIC and recalls APIs are free and need no key, and they hold callers to an automated rate control. This API calls them on your behalf and adds one key for every source on Perceptlayer, one response shape with dates as YYYY-MM-DD and empty fields as null, local paging of complaints, a cache of up to 6 hours, and no charge for failed calls.

Where does the data come from?

From the U.S. National Highway Traffic Safety Administration (NHTSA): vPIC for VIN decoding, and its recalls, complaints and NCAP ratings data for the rest.

What does a complaint include?

Its `odi_number`, `date_filed`, `incident_date`, `components`, `summary`, the `crash` and `fire` flags, `injuries`, `deaths` and the `vin_prefix`. The recorded call for a 2003 Honda Accord found 2,013 complaints, paged 10 at a time.

How much does the NHTSA API cost?

Each successful call costs one credit, and each page of complaints is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

Should I build a NHTSA scraper instead?

You can, but a NHTSA scraper is code you maintain: page changes break it, requests get blocked, and NHTSA's terms govern how you collect data. The NHTSA API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the NHTSA API with 100 free credits

No credit card. Failed calls are never billed.