Vehicle Safety Profile
GEThttps://api-vehicle-recalls.dataandapis.com/v1/complaints/stats
Vehicle Safety Profile es un endpoint de Vehicle Recalls API. Todas las retiradas de la NHTSA desde 1967 y 2,24 millones de quejas de propietarios por marca, modelo y año.
Envía tu clave en la cabecera X-Api-Key. Cada llamada cuesta 1 token; una clave gratuita incluye 500 tokens al mes.
Petición
Parámetros de consulta
| Parámetro | Ejemplo | |
|---|---|---|
| make | CHEVROLET | Obligatorio |
| model | BOLT EV | Opcional |
| year | 2019 | Opcional |
Petición de ejemplo
curl
curl "https://api-vehicle-recalls.dataandapis.com/v1/complaints/stats?make=CHEVROLET&model=BOLT%20EV&year=2019" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-vehicle-recalls.dataandapis.com/v1/complaints/stats?make=CHEVROLET&model=BOLT%20EV&year=2019", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-vehicle-recalls.dataandapis.com/v1/complaints/stats?make=CHEVROLET&model=BOLT%20EV&year=2019",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Respuesta de ejemplo
Respuesta de ejemplo{
"ok": true,
"make": "CHEVROLET",
"model": "BOLT EV",
"year": 2019,
"totals": {
"complaints": 241,
"crashes": 2,
"fires": 15,
"injured": 5,
"deaths": 0
},
"top_components": [
{
"component": "ELECTRICAL SYSTEM",
"complaints": 80
},
{
"component": "STEERING",
"complaints": 45
},
{
"component": "FUEL/PROPULSION SYSTEM",
"complaints": 44
},
{
"component": "UNKNOWN OR OTHER",
"complaints": 20
…
Ver la respuesta completa
Respuesta de ejemplo
{
"ok": true,
"make": "CHEVROLET",
"model": "BOLT EV",
"year": 2019,
"totals": {
"complaints": 241,
"crashes": 2,
"fires": 15,
"injured": 5,
"deaths": 0
},
"top_components": [
{
"component": "ELECTRICAL SYSTEM",
"complaints": 80
},
{
"component": "STEERING",
"complaints": 45
},
{
"component": "FUEL/PROPULSION SYSTEM",
"complaints": 44
},
{
"component": "UNKNOWN OR OTHER",
"complaints": 20
…{
"ok": true,
"make": "CHEVROLET",
"model": "BOLT EV",
"year": 2019,
"totals": {
"complaints": 241,
"crashes": 2,
"fires": 15,
"injured": 5,
"deaths": 0
},
"top_components": [
{
"component": "ELECTRICAL SYSTEM",
"complaints": 80
},
{
"component": "STEERING",
"complaints": 45
},
{
"component": "FUEL/PROPULSION SYSTEM",
"complaints": 44
},
{
"component": "UNKNOWN OR OTHER",
"complaints": 20
},
{
"component": "POWER TRAIN",
"complaints": 13
},
{
"component": "VISIBILITY/WIPER",
"complaints": 4
},
{
"component": "SERVICE BRAKES",
"complaints": 4
},
{
"component": "FORWARD COLLISION AVOIDANCE: WARNINGS",
"complaints": 4
},
{
"component": "SEAT BELTS",
"complaints": 3
},
{
"component": "LANE DEPARTURE: BLIND SPOT DETECTION",
"complaints": 3
}
]
}
