
You need a reliable way to fetch the NHTSA rollover star rating from a VIN so your app can surface clear safety context right where purchase or underwriting decisions happen. By the end of this guide, you’ll request the Rollover Rating API, parse the JSON envelope, handle US-market coverage constraints, cache decoded responses, and ship a production-quality integration.
What the endpoint returns and when to use it
The Rollover Rating API exposes the NHTSA NCAP rollover star rating for US-market vehicles, keyed by VIN. Ratings are matched by make + model + year and returned alongside frontal and side star ratings. Some aggregate fields (like overall) can be null when not published by NHTSA. Use this endpoint when you need a fast, VIN-driven read on rollover risk for dealer listings, fleet safety views, policy pricing flows, or AI agents summarizing safety characteristics.
Key points on coverage and matching:
- VIN decoding works worldwide, but NCAP ratings (including rollover) are US-market only.
- For a valid non-US VIN, this endpoint returns HTTP 422 with code coverage_us_only.
- Ratings are matched by make + model + year, so match can be partial when an exact variant is not available.
- This is not a vehicle history report; no title, accident, or ownership history is returned.
Start your 7-day trial and get your API key
All plans start with a 7-day free trial. Sign up, then copy your key from the dashboard:
- Go to Register and start the trial (Starter begins at $19/mo after the trial).
- Open the dashboard and copy your key.
- Use it in the X-API-Key header (Authorization: Bearer YOUR_API_KEY also works).
Base URL for REST is https://vehicles-api.com/api/v1. For tools and agents, the MCP server is available at MCP.
Make your first rollover request with curl
Send the official sample request below. The control VIN 1HGCM82633A004352 is a 2003 Honda Accord; use it to validate your integration. Replace YOUR_API_KEY with your key from the dashboard.
cURL
curl "https://vehicles-api.com/api/v1/vin/safety-ratings?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Read the response envelope and the rollover field
Every response wraps data in a stable envelope with status, source, and data. On errors, you’ll get status set to error, with error.code and error.message. Here is the official JSON example for the control VIN:
Official JSON example
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"coverage": "us",
"match": "partial",
"vehicle_description": "2003 Honda Accord 2-DR.",
"overall": null,
"front": {
"overall": null,
"driver": 5,
"passenger": 5
},
"side": {
"overall": null,
"driver": 5,
"passenger": 5
},
"rollover": 4,
"nhtsa_vehicle_id": 4736
}
}
Fields you will commonly use:
- status: "success" on success, otherwise "error".
- source: "nhtsa" indicates the NCAP source.
- data.vin: Echo of the requested VIN.
- data.coverage: "us" for US-market coverage.
- data.match: "partial" when the rating is matched by make + model + year, not a specific sub-trim.
- data.vehicle_description: Short human-readable descriptor from NHTSA.
- data.overall: Can be null when NHTSA did not publish an overall star rating.
- data.front: frontal ratings. overall can be null; driver and passenger hold star values when available.
- data.side: side-impact ratings. overall can be null; driver and passenger hold star values when available.
- data.rollover: the rollover star rating to display. This is the focal field for this endpoint.
- data.nhtsa_vehicle_id: NHTSA’s internal vehicle identifier for cross-referencing.
Nulls are expected for some categories when NHTSA has not published a specific value. Your integration should treat null as "not published" rather than "zero".
Programmatic integration example (Python)
This Python example calls the same endpoint, checks for errors, reads the rollover star rating, and defends against null fields. It also surfaces the partial match state so your UI can add a note if you choose.
Python
import os
import requests
API_BASE = "https://vehicles-api.com/api/v1"
API_KEY = os.getenv("VEHICLES_API_KEY", "YOUR_API_KEY")
def get_rollover_rating(vin: str):
url = f"{API_BASE}/vin/safety-ratings"
headers = {
"X-API-Key": API_KEY,
# Alternatively: "Authorization": f"Bearer {API_KEY}"
}
params = {"vin": vin}
resp = requests.get(url, headers=headers, params=params, timeout=10)
# Parse the standard envelope
data = resp.json()
# Handle HTTP errors that still return JSON envelope
if data.get("status") != "success":
err = data.get("error", {}) or {}
code = err.get("code", "unknown_error")
message = err.get("message", "Unknown error")
raise RuntimeError(f"Vehicle API error ({code}): {message}")
payload = data["data"]
# Defensive reads for nullable fields
rollover = payload.get("rollover")
match_level = payload.get("match")
coverage = payload.get("coverage")
description = payload.get("vehicle_description")
# Decide how to display in UI or logs
return {
"vin": payload.get("vin"),
"coverage": coverage, # expect "us" here on success
"match": match_level, # "exact" or "partial" (partial is common)
"vehicle_description": description,
"rollover_stars": rollover, # may be an integer (e.g., 4)
"front_driver": (payload.get("front") or {}).get("driver"),
"front_passenger": (payload.get("front") or {}).get("passenger"),
"side_driver": (payload.get("side") or {}).get("driver"),
"side_passenger": (payload.get("side") or {}).get("passenger"),
"overall": payload.get("overall") # can be null
}
if __name__ == "__main__":
result = get_rollover_rating("1HGCM82633A004352")
print(result)
Error handling and US-market coverage
The rollover endpoint covers US-market vehicles only. When you submit a valid non-US VIN, expect a 422 with coverage_us_only. Your application should catch this condition and either omit the safety section, show “US-only rating unavailable,” or route the user to other vehicle attributes that do not depend on US coverage.
JSON error example: non-US VIN
{
"status": "error",
"error": {
"code": "coverage_us_only",
"message": "Safety ratings are available for US-market vehicles only for this endpoint."
}
}
Additional notes:
- Rate limits and monthly quota apply; if your integration may burst, add client-side caching and exponential backoff. Check the Documentation for current limits.
- Always rely on the envelope for error information rather than only the HTTP status code.
- Never treat null as zero. For display, null should map to “not published.”
Caching, quotas, and resilience in production
NCAP ratings are relatively static for a given make + model + year, and the VIN-to-rating mapping uses that trio. To reduce calls and stay well within plan quotas:
- Cache a successful response by VIN for at least several hours or days. Respect your own recrawl policies based on how often you expect NHTSA to add or revise data for older models.
- Normalize repeat requests by uppercasing the VIN, trimming whitespace, and de-duping.
- If status is error with coverage_us_only, cache a short-lived negative result to avoid repeated 422s.
- Build idempotent fetch paths in your backend to protect client UX from transient HTTP/network failures.
Since this endpoint returns matched values by make + model + year, partial matches are expected for some trims or body styles. Many UIs choose to display a short notice like “Rating matched to 2003 Honda Accord (2-DR).” when match is partial.
Work with the response schema in detail
The response envelope is consistent across endpoints:
- Success: status = success, source = nhtsa, data = object with rating fields.
- Error: status = error, error = object with code and message; no data field on errors.
Fields to map for UI and analytics:
- data.rollover: integer star value to display prominently in the UI.
- data.front.driver, data.front.passenger; data.side.driver, data.side.passenger: optional supporting context.
- data.overall and data.front.overall, data.side.overall: can be null; show “not published” rather than a numeric value.
- data.vehicle_description: useful label for user-facing tooltips in listings or inspections.
- data.nhtsa_vehicle_id: if you maintain a crosswalk to other safety datasets keyed by NHTSA’s vehicle id.
International handling:
- VIN decoding is global across Vehicle API, but NCAP safety data in this endpoint is US-only.
- Dutch plates are available via RDW open data within Vehicle API but never include a VIN; this endpoint specifically requires a VIN param.
Additional response examples you can test against
This compact example mirrors the official docs and is useful for contract tests that assert the presence of rollover and nullability of overall fields.
JSON example (compact formatting)
{"status":"success","source":"nhtsa","data":{"vin":"1HGCM82633A004352","coverage":"us","match":"partial","vehicle_description":"2003 Honda Accord 2-DR.","overall":null,"front":{"overall":null,"driver":5,"passenger":5},"side":{"overall":null,"driver":5,"passenger":5},"rollover":4,"nhtsa_vehicle_id":4736}}
For completeness, here is the same official success payload again in pretty form. Keeping a copy of this in your testdata allows you to validate parsers that must handle both nested objects and null fields.
JSON example (pretty formatting)
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"coverage": "us",
"match": "partial",
"vehicle_description": "2003 Honda Accord 2-DR.",
"overall": null,
"front": {
"overall": null,
"driver": 5,
"passenger": 5
},
"side": {
"overall": null,
"driver": 5,
"passenger": 5
},
"rollover": 4,
"nhtsa_vehicle_id": 4736
}
}
MCP option for agents and internal tools
If you’re building AI agents or internal tools that integrate via Model Context Protocol, point them at the Vehicle API MCP server: MCP. The same Rollover Rating data is available through MCP, backed by the same source and response semantics as the REST endpoint, so you can standardize safety lookups across both channels.
Operational practices and UX patterns
Developers typically adopt these patterns for a robust UX:
- Decouple decoding from ratings: decode and cache VIN metadata once; call this ratings endpoint only if the decoded year and market justify it.
- Show the rollover rating even when overall is null; it’s often the most actionable NCAP attribute for users.
- If match = partial, display the vehicle_description in a tooltip or small caption to clarify the rating basis.
- Log source = nhtsa for auditing, and persist nhtsa_vehicle_id if you plan downstream joins.
When scaling up, monitor error.code frequencies. coverage_us_only will be common if your inventory includes non-US vehicles; short-circuit those requests early by market when you can.
Troubleshooting quick checks
- Got null for overall but a valid rollover? That’s expected when NHTSA did not publish overall; continue to show rollover.
- Received 422 with coverage_us_only? The VIN is valid, but US-only ratings are not available for that vehicle.
- Seeing intermittent timeouts? Add retry with backoff and cache by VIN after first success to reduce repeat calls.
- Data changed? Ratings and coverage are determined by make + model + year. Refresh cache periodically to reflect any source updates.
Reference: Official samples (copy/paste)
Official curl
curl "https://vehicles-api.com/api/v1/vin/safety-ratings?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Official JSON
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"coverage": "us",
"match": "partial",
"vehicle_description": "2003 Honda Accord 2-DR.",
"overall": null,
"front": {
"overall": null,
"driver": 5,
"passenger": 5
},
"side": {
"overall": null,
"driver": 5,
"passenger": 5
},
"rollover": 4,
"nhtsa_vehicle_id": 4736
}
}
FAQ
Does the rollover endpoint work for non-US vehicles?
No. NCAP safety data (including rollover) is US-market only. A valid non-US VIN returns HTTP 422 with code coverage_us_only.
Why is overall null when rollover is present?
NHTSA sometimes publishes category ratings (front/side/rollover) but not an overall star rating. Null means “not published,” not zero.
How is the rating matched to my VIN?
The rating is matched by make + model + year. The match field indicates whether the mapping is partial. Use vehicle_description to clarify in your UI.
What about Dutch plates or US plates?
Dutch plates are available via RDW open data inside Vehicle API but never include a VIN. This endpoint requires a VIN. US plate lookup is not promoted here.
What are the rate limits and monthly quota?
All plans include a monthly quota and rate limits. Numbers vary by plan. Cache by VIN and check the Documentation for current limits.
Ready to add rollover ratings to your app? Start your 7-day free trial and get your key now: Register. Explore the REST and MCP surfaces at vehicles-api.com and the MCP guide to integrate with your agents.