How to Use the Recalls by Make and Model API

By Vehicle API
How to Use the Recalls by Make and Model API

You need to show open safety recalls for a vehicle line without a VIN—just make, model and year—so buyers, service writers, and agents can make better decisions. By the end of this guide, you will query the Recalls by Make and Model endpoint, read the official JSON, and integrate the results into your app with robust error handling and caching.

What this endpoint does and when to use it

The Recalls by Make and Model endpoint returns official U.S. safety recall campaigns from NHTSA matched by make, model, and year. Use it when you do not have a VIN (for example, before listing ingestion, across bulk inventory, or when normalizing marketplace feeds). No VIN is required—just a U.S.-market model name as NHTSA lists it, plus the model year.

Illustration: How to Use the Recalls by Make and Model API
  • VIN decoding: worldwide coverage via NHTSA vPIC; most complete for U.S.-market vehicles.
  • Recalls, owner complaints, and NCAP crash ratings: U.S.-market only, matched by make + model + year.
  • Dutch plates: RDW open data; plate lookups never include a VIN.
  • This is not a vehicle history report. It does not include title, accident, or ownership history.

Before you start: account, key, and base URL

All examples use the Vehicle API base URL and API key header:

  • Base URL: https://vehicles-api.com/api/v1
  • Auth header: X-API-Key: YOUR_API_KEY (Authorization: Bearer YOUR_API_KEY also works)

Sign up for the 7-day free trial (Starter is $19/mo) and copy your key from the dashboard. Use your key in all requests. You can register here: Register. For additional endpoint details, see the Documentation. If you are building an AI agent or tool that prefers tools over HTTP, Vehicle API is also available as an MCP server at MCP.

Endpoint and parameters

Endpoint: GET https://vehicles-api.com/api/v1/recalls

Required query parameters:

  • make: U.S.-market make label as NHTSA lists it. Example: BMW
  • model: U.S.-market model label as NHTSA lists it. Example: 320i
  • year: Integer model year. Example: 2002

No VIN is needed for this lookup. A model with zero active campaigns will return status 200 with an empty recalls list.

Step 1 — Send the curl request

Copy the following request and replace YOUR_API_KEY with your dashboard key. This is the official sample:

cURL

curl "https://vehicles-api.com/api/v1/recalls?make=BMW&model=320i&year=2002" -H "X-API-Key: YOUR_API_KEY"

Step 2 — Read the official JSON response

Every response is wrapped in an envelope with status, source, and data. On errors, the envelope contains status: "error" with error.code and error.message.

Official JSON

{
    "status": "success",
    "source": "nhtsa",
    "data": {
        "year": 2002,
        "make": "BMW",
        "model": "320i",
        "coverage": "us",
        "count": 1,
        "recalls": [
            {
                "campaign": "20V018000",
                "component": "AIR BAGS:FRONTAL:PASSENGER SIDE:INFLATOR MODULE",
                "received": "2020-01-15",
                "summary": "BMW is recalling certain 2000-2006 3 Series vehicles equipped with Takata PSAN passenger frontal air bag inflators.",
                "consequence": "An inflator explosion may result in sharp metal fragments striking the driver or other occupants.",
                "remedy": "Dealers will replace the passenger front air bag, free of charge."
            }
        ]
    }
}

Fields you will commonly use

  • status: "success" on success. On errors, expect status: "error" with an error object.
  • source: "nhtsa" for U.S. safety data.
  • data.year, data.make, data.model: Echo of your request, normalized to NHTSA labels.
  • data.coverage: "us" indicates U.S.-market coverage.
  • data.count: Integer number of campaigns returned.
  • data.recalls: Array of recall objects, each with:
    • campaign: NHTSA campaign ID string (e.g., 20V018000).
    • component: Affected component group.
    • received: YYYY-MM-DD date NHTSA recorded the action.
    • summary: Short description of the issue and affected vehicles.
    • consequence: Risk or hazard caused by the defect.
    • remedy: Manufacturer’s prescribed fix.

Note: If NHTSA has no campaigns for the make/model/year, you will get status: "success" with data.count = 0 and an empty data.recalls array. Some fields may be null when the source does not supply them.

Step 3 — Integrate with JavaScript

The following JavaScript example calls the same endpoint, checks the envelope, and extracts the fields for display or storage. It uses the X-API-Key header and expects the exact structure shown in the official example.

JavaScript (Node.js or modern browsers)

async function fetchRecallsByModelYear() {
const url = 'https://vehicles-api.com/api/v1/recalls?make=BMW&model=320i&year=2002';

const res = await fetch(url, {
headers: {
'X-API-Key': 'YOUR_API_KEY'
// Alternatively: 'Authorization': 'Bearer YOUR_API_KEY'
}
});

// Network-level check
if (!res.ok) {
throw new Error(`HTTP error: ${res.status}`);
}

/** Envelope:
* {
* status: "success" | "error",
* source: "nhtsa" | ...,
* data?: {...},
* error?: { code: string, message: string }
* }
*/
const body = await res.json();

if (body.status !== 'success') {
const code = body.error?.code || 'unknown_error';
const message = body.error?.message || 'Unspecified error';
throw new Error(`${code}: ${message}`);
}

const {
year,
make,
model,
coverage,
count,
recalls
} = body.data;

console.log(`Coverage: ${coverage} | ${make} ${model} ${year} has ${count} campaign(s).`);

for (const r of recalls) {
console.log([
`Campaign: ${r.campaign}`,
`Component: ${r.component}`,
`Received: ${r.received}`,
`Summary: ${r.summary}`,
`Consequence: ${r.consequence}`,
`Remedy: ${r.remedy}`
].join('\n'));
console.log('---');
}

// Return a normalized object for your app
return {
key: `${make}:${model}:${year}`.toLowerCase(),
coverage,
total: count,
campaigns: recalls.map(r => ({
id: r.campaign,
component: r.component,
receivedDate: r.received,
summary: r.summary,
consequence: r.consequence,
remedy: r.remedy
}))
};
}

// Example usage
fetchRecallsByModelYear()
.then(data => {
// Cache or persist as needed
})
.catch(err => {
console.error(err);
});

Designing your integration

Request construction and normalization

Make sure your make and model match NHTSA’s U.S.-market labels. If you work with international datasets, normalize to the U.S. labels before calling this endpoint. The API will echo back the normalized labels in data.make and data.model so you can store that canonical form.

Handling the response envelope

  • Success: HTTP 200 with {"status":"success","source":"...","data":{...}}.
  • Error: Non-2xx HTTP status is possible, with body {"status":"error","error":{"code":"...","message":"..."}}. Inspect both HTTP status and the error object.
  • Nullability: Some fields may be null if the source does not provide them. Handle missing component, consequence, or remedy gracefully.

Caching strategy

  • Key your cache by make + model + year (e.g., bmw:320i:2002) since that is how the endpoint matches data.
  • Because recall publications are updated over time, refresh at a cadence appropriate for your workflow. When in doubt, revalidate before user-facing actions like checkout or quote binding.
  • Store the full response envelope so you can display the original source and coverage fields alongside campaigns.

Zero-campaign responses

When there are no matching recall campaigns, the API returns a success envelope with data.count = 0 and data.recalls = []. Treat this as a valid response rather than an error.

Error handling patterns

  • Client input errors: For malformed or missing parameters (e.g., year not provided), expect status: "error" with error.code and error.message describing the issue.
  • Auth errors: If the API key is missing or invalid, your request will not succeed; update your key from the dashboard and retry.
  • Rate limiting and quota: Calls are subject to rate limiting and your monthly quota. If you approach limits, the dashboard will show usage. Backoff and retry responsibly, and cache reads where appropriate.

Working alongside other Vehicle API endpoints

Many apps combine multiple Vehicle API capabilities:

  • VIN decoding for specs (year, make, model, trim, engine, transmission, assembly plant). Coverage is worldwide, with fullest detail for U.S.-market vehicles.
  • Recalls, owner complaints, and NCAP crash ratings matched by U.S. make + model + year.
  • Dutch plates via RDW open data. Plate lookups never include a VIN.

If you already decoded a VIN, you can map its decoded make, model, and year into this recalls endpoint to retrieve U.S.-market safety data. Remember: this API is not a vehicle history report; it does not include title, accident, or ownership history.

Security, performance, and operations

  • Authentication: Send X-API-Key: YOUR_API_KEY. Authorization: Bearer YOUR_API_KEY also works if your HTTP client standardizes on that header.
  • Transport: Use HTTPS only.
  • Idempotency: GET requests are read-only; safe to repeat for retries.
  • Time zones: Dates like received are returned as YYYY-MM-DD (no time component). Treat as local publication dates from the source.
  • Monitoring: Log status, error.code, error.message, and the request triple (make, model, year) for fast diagnostics.
  • Resilience: Implement exponential backoff on transient errors, and serve cached data when appropriate.

Putting it all together: minimal flow for production

  1. Register for the 7-day free trial and copy your API key from the dashboard: Register.
  2. Normalize make and model strings to NHTSA’s U.S. labels where possible.
  3. Call GET /api/v1/recalls with make, model, and year. Include X-API-Key.
  4. On success, read data.coverage, data.count, and iterate data.recalls for campaign details (campaign, component, received, summary, consequence, remedy).
  5. On error, read error.code and error.message. Apply retries for transient errors and fix any input or auth issues.
  6. Cache responses keyed by make:model:year, and refresh at a cadence suitable for your workflow.

For a programmatic agent integration, consider using the MCP server: MCP. You can always reference endpoint specifics in the Documentation on vehicles-api.com.

Troubleshooting checklist

  • Empty results unexpectedly: Validate the NHTSA model label and year; ensure it matches a U.S.-market configuration.
  • Auth failures: Confirm the X-API-Key header is present and correct; keys are case-sensitive.
  • Intermittent failures: Add retries with jitter and serve cached results when possible.
  • Stale campaigns: If you cache, confirm your refresh schedule aligns with your product requirements.

FAQ

Does this endpoint require a VIN?
No. Recalls are returned by make, model, and year as listed by NHTSA for U.S.-market vehicles.

What markets are covered?
Recalls, owner complaints, and NCAP crash ratings are U.S.-market only. VIN decoding works worldwide, with the most complete detail for U.S.-market vehicles. Dutch plates are sourced from RDW and never include a VIN.

What does a zero-campaign response look like?
You’ll get status: "success" with data.count = 0 and data.recalls = []. Handle this as a valid no-issue case.

How are errors formatted?
Errors return an envelope with status: "error" and an error object containing error.code and error.message. Inspect both the HTTP status and the body for details.

Are there rate limits or monthly quotas?
Yes, requests are subject to plan quotas and rate limits. Monitor usage in your dashboard and cache results to reduce unnecessary calls.

Start integrating recalls by make and model with a 7-day free trial. Sign up, copy your key, and ship your first request today: Register. For reference details and additional endpoints, see the Documentation at vehicles-api.com.