
Your app needs to show the exact NHTSA recall campaign numbers for a vehicle, not vague text. By the end of this guide, you’ll query Vehicle API’s Recall Campaign Number endpoint, parse the recall list, and display recalls[].campaign values in your UI or workflow.
What this endpoint returns and when to use it
The Recall Campaign Number endpoint returns official NHTSA recall campaigns matched by make + model + year for a given VIN. It’s designed for dealer tools, marketplaces, fleet, insurance, and AI agents that need trustworthy recall data.
Key properties of this data:
- Coverage: US-market only. If you pass a valid non-US VIN, the endpoint returns HTTP 422 with error code coverage_us_only.
- Match logic: Recalls are matched by make + model + year derived from the VIN, not by an individual vehicle’s service status.
- Not a repair status: The data does not indicate whether a specific vehicle has already been repaired.
- Response envelope: Every response is an envelope with status, source, and data on success, or status error with error.code and error.message on failure.
Related coverage notes across Vehicle API:
- VIN decoding works worldwide (fullest for US-market vehicles) and includes year, make, model, trim, engine, transmission, and assembly plant from NHTSA vPIC.
- Recalls, owner complaints, and NCAP crash ratings are US-market only.
- Dutch plates come from RDW open data and never include a VIN.
- This is not a vehicle history report (no title, accident, or ownership history).
Learn more about Vehicle API at vehicles-api.com and the Documentation.
Start in minutes: sign up, get your key, and set headers
Every plan has a 7-day free trial, including the Starter plan at $19/month. Create an account, grab your API key from the dashboard, and make your first request.
- Sign up: Register
- Copy your key from the dashboard and store it securely (environment variable or secrets store).
- Base URL: https://vehicles-api.com/api/v1
- Auth header: X-API-Key: YOUR_API_KEY (Authorization: Bearer YOUR_API_KEY also works)
Make your first request
Use the official docs example below to request recall campaigns by VIN. The control VIN is 1HGCM82633A004352 (a 2003 Honda Accord). It’s a fixed example to help you verify integration; replace it with your user-supplied VINs in production.
cURL (copy and run)
curl "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Python example (requests)
import os
import requests
API_KEY = os.getenv("VEHICLES_API_KEY", "YOUR_API_KEY")
BASE_URL = "https://vehicles-api.com/api/v1"
def get_recalls_by_vin(vin: str):
url = f"{BASE_URL}/vin/recalls"
headers = {"X-API-Key": API_KEY}
params = {"vin": vin}
resp = requests.get(url, headers=headers, params=params, timeout=15)
# Parse the standard response envelope
data = resp.json()
if resp.ok and data.get("status") == "success":
recalls = data["data"].get("recalls", []) or []
# Extract the official campaign numbers and any useful metadata
campaigns = [r.get("campaign") for r in recalls if r.get("campaign")]
return {
"vin": data["data"].get("vin"),
"year": data["data"].get("year"),
"make": data["data"].get("make"),
"model": data["data"].get("model"),
"coverage": data["data"].get("coverage"),
"count": data["data"].get("count"),
"campaigns": campaigns,
"raw_recalls": recalls,
}
else:
# On error, Vehicle API returns status: error with error.code and error.message
err = data.get("error", {})
raise RuntimeError(f"Recall lookup failed: {err.get('code')} - {err.get('message')}")
if __name__ == "__main__":
result = get_recalls_by_vin("1HGCM82633A004352")
print("VIN", result["vin"])
print("Campaign numbers:", ", ".join(result["campaigns"]))
Read the response: official JSON
Vehicle API wraps all responses in a consistent envelope: status, source, and data. Below is the official example. Copy it into your tests or fixtures to wire your parser.
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"year": 2003,
"make": "HONDA",
"model": "Accord",
"coverage": "us",
"count": 24,
"recalls": [
{
"campaign": "19V182000",
"component": "AIR BAGS:FRONTAL:DRIVER SIDE:INFLATOR MODULE",
"received": "2019-03-06",
"summary": "Replacement driver air bag inflator may explode.",
"consequence": "Sharp metal fragments may strike occupants.",
"remedy": "Dealers will replace the inflator, free of charge."
}
]
}
}
Fields you’ll typically use:
- status: "success" or "error".
- source: "nhtsa" indicates the recall authority (US).
- data.vin: the VIN you looked up (here, the control VIN).
- data.year, data.make, data.model: the model-year context used for recall matching.
- data.coverage: "us" for US-market. A valid non-US VIN will yield an error with code coverage_us_only.
- data.count: number of recall campaigns matched for that VIN’s make+model+year.
- data.recalls[]: the array of recalls.
- recalls[].campaign: the official NHTSA recall campaign number (the primary identifier you will store and display).
- recalls[].component: affected component category.
- recalls[].received: date NHTSA recorded the campaign.
- recalls[].summary, recalls[].consequence, recalls[].remedy: short texts for display or notifications; handle nulls defensively in production.
What to store: campaign IDs and related metadata
For most applications, the recall campaign number is the key you’ll persist and index. We recommend storing:
- The campaign number (recalls[].campaign), which is stable and traceable.
- VIN, year, make, model, and coverage for context and analytics.
- Component and received for filtering and sorting (e.g., airbags first, newest first).
- Summary, consequence, and remedy for user-facing details. These fields may be null in some records; sanitize for your UI.
If you cross-link to a knowledge base or reminders, use the campaign number as the foreign key. Campaigns are issued and sometimes updated by NHTSA; refresh your cache periodically to ensure you capture new campaigns or edits.
Errors, rate limits, and quotas
Vehicle API returns a consistent error envelope on non-2xx responses: status: "error" with error.code and error.message. Handle these cases explicitly:
- 422 coverage_us_only: You passed a valid non-US VIN to the recall endpoint, which only covers the US market. Decide whether to hide recall UI for such VINs or route to a global flow.
- 401 Unauthorized: Missing or invalid API key. Ensure X-API-Key is set or use Authorization: Bearer YOUR_API_KEY.
- 429 Rate limit: Back off and retry with exponential delay. Batch queries and implement caching (see below) to avoid bursts.
Monthly quota and per-second rate limits depend on your plan. You can monitor usage and limits in your dashboard and in the Documentation. Keep your integration robust by:
- Detecting 429 and retrying later.
- Falling back to cached results when the API is temporarily unavailable.
- Logging error.code and error.message for support and alerting.
Caching and freshness strategy
Recall data changes as authorities add or modify campaigns, but not hour-by-hour. To reduce latency and avoid rate limits:
- Cache by VIN for recall lookups. Because recalls are matched by year + make + model from the VIN, the recall set for a given VIN typically matches other VINs of the same model-year.
- Recommended TTL: a daily or weekly refresh window is typical for production apps. Choose a frequency aligned with your UX needs.
- Invalidate early for critical workflows (e.g., at listing publish or policy bind time) to ensure you present the latest campaigns.
If you also decode VINs elsewhere in your app, cache the decoded VIN record indefinitely with occasional revalidation, since year/make/model rarely change. Refresh recall lists more frequently than VIN decodes.
Null fields and defensive parsing
Not every recall record has every text field populated. In your parser:
- Treat recalls as an empty list if data.recalls is missing or null.
- Check for null summary, consequence, or remedy and provide safe defaults in your UI (e.g., “Details not provided”).
- Never assume count equals len(recalls) if you’re operating on partial views; always iterate the recalls array you received.
Production notes: coverage matrix and expectations
- US-only recalls: This endpoint uses NHTSA data and only covers the US market. Non-US VINs return 422 coverage_us_only.
- Campaigns don’t indicate repair status: The API does not say whether this specific vehicle was already repaired.
- No vehicle history: The API does not include title, accident, or ownership history. Don’t market it as a vehicle history report.
- Dutch plates: RDW plate lookups are available elsewhere in Vehicle API and never include a VIN. Use VIN-based recall queries for US recall data.
If you need this same data in an AI agent or tool environment, you can connect via the MCP server: MCP.
Explore the platform at vehicles-api.com and design your integration with the Documentation.
Implementation checklist
- Sign up and secure your API key (environment variable, secret manager).
- Call GET /vin/recalls with the X-API-Key header.
- Parse the envelope: status, source, and data.
- Extract recalls[].campaign and related fields for display.
- Handle 422 coverage_us_only, 401, and 429 with clear UX and retries.
- Cache results by VIN with daily or weekly refresh.
- Surface null-safe summary/consequence/remedy text in your UI.
FAQ
Does the recall endpoint tell me if this specific car was repaired?
No. It lists official NHTSA recall campaigns matched by make + model + year, but it does not indicate repair completion for the individual vehicle.
What happens if I query a non-US VIN?
You’ll receive HTTP 422 with error.code coverage_us_only because this endpoint uses US NHTSA data. You can still use Vehicle API VIN decoding worldwide for specs, but recalls, complaints, and NCAP are US-only.
How often should I refresh cached recall data?
Daily or weekly works for most apps. Refresh immediately before critical actions (e.g., publishing a listing, binding insurance) to ensure up-to-date campaigns.
Do Dutch plate lookups return a VIN?
No. RDW Dutch plate data never includes a VIN. If you need recalls, query by VIN and note that recall coverage is US-only.
Where can I see rate limits and my remaining monthly quota?
Limits depend on your plan. Check your dashboard and the Documentation for details.
Ship your recall integration now. Start your 7-day free trial and get an API key in minutes: Register.