Recall Components
GEThttps://api-vehicle-recalls.dataandapis.com/v1/recalls/components
Recall Components is an endpoint of the Vehicle Recalls API. Every NHTSA recall since 1967 and 2.24 million owner complaints by make, model and year.
Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.
Request
This endpoint takes no parameters.
Example request
curl
curl "https://api-vehicle-recalls.dataandapis.com/v1/recalls/components" \
-H "X-Api-Key: YOUR_API_KEY"JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.vehicleRecalls.recallComponents();Node.js (fetch)
const res = await fetch("https://api-vehicle-recalls.dataandapis.com/v1/recalls/components", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python (dataandapis package)
# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.vehicle_recalls.recall_components()Python (requests)
import os, requests
r = requests.get(
"https://api-vehicle-recalls.dataandapis.com/v1/recalls/components",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Guide to the dataandapis npm package →Guide to the dataandapis Python package →
Example response
Example response{
"ok": true,
"count": 8,
"components": [
{
"component": "EQUIPMENT",
"campaigns": 3193
},
{
"component": "ELECTRICAL SYSTEM",
"campaigns": 2348
},
{
"component": "STEERING",
"campaigns": 1646
},
{
"component": "SERVICE BRAKES, HYDRAULIC",
"campaigns": 1577
},
{
"component": "SUSPENSION",
"campaigns": 1436
},
{
"component": "POWER TRAIN",
"campaigns": 1377
},
…
Show full response
Example response
{
"ok": true,
"count": 8,
"components": [
{
"component": "EQUIPMENT",
"campaigns": 3193
},
{
"component": "ELECTRICAL SYSTEM",
"campaigns": 2348
},
{
"component": "STEERING",
"campaigns": 1646
},
{
"component": "SERVICE BRAKES, HYDRAULIC",
"campaigns": 1577
},
{
"component": "SUSPENSION",
"campaigns": 1436
},
{
"component": "POWER TRAIN",
"campaigns": 1377
},
…{
"ok": true,
"count": 8,
"components": [
{
"component": "EQUIPMENT",
"campaigns": 3193
},
{
"component": "ELECTRICAL SYSTEM",
"campaigns": 2348
},
{
"component": "STEERING",
"campaigns": 1646
},
{
"component": "SERVICE BRAKES, HYDRAULIC",
"campaigns": 1577
},
{
"component": "SUSPENSION",
"campaigns": 1436
},
{
"component": "POWER TRAIN",
"campaigns": 1377
},
{
"component": "FUEL SYSTEM, GASOLINE",
"campaigns": 1362
},
{
"component": "STRUCTURE",
"campaigns": 1157
}
]
}