
Your users ask for “the recall campaign number” so they can check parts availability, generate service RO requests, or show safety context next to listings. By the end of this guide, you’ll be able to query official NHTSA recall campaigns for a VIN and extract the campaign IDs your workflow needs, reliably and at scale.
What this endpoint returns (and what it does not)
The Recall Campaign Number endpoint returns official NHTSA recall campaigns for US-market vehicles, matched by year, make, and model. It includes the campaign identifier (for example, 19V182000), the affected component, the date NHTSA received the recall, and short descriptive fields (summary, consequence, remedy).
- Return type: a response envelope with status, source, and data. On errors, status is "error" with error.code and error.message.
- Coverage: recalls are US-market only. A valid non-US VIN will return a 422 coverage_us_only error for this endpoint.
- Match logic: by year + make + model (NHTSA). A recall’s presence does not indicate whether an individual vehicle was repaired.
- Not included: title/accident/ownership history (this is not a vehicle history report), and no per-VIN repair completion status.
For VIN decoding (year, make, model, trim, engine, transmission, assembly plant) Vehicle API aggregates NHTSA vPIC and works worldwide, but the recall coverage itself is US-only. Dutch plate lookups are available via RDW open data and never include a VIN.
Method, path, and authentication
Base URL: https://vehicles-api.com/api/v1
- HTTP method: GET
- Path: /vin/recalls
- Query parameter: vin (string)
- Authentication: send your key with the X-API-Key header. Authorization: Bearer YOUR_API_KEY is also accepted.
Example request URL: https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352
Official cURL example
curl "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Official JSON example
{
"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 will use
- status: "success" or "error". Check this first.
- source: "nhtsa" for recall data sourced from NHTSA.
- data.vin: the VIN you queried. Use for correlation or cache keys.
- data.year, data.make, data.model: normalized attributes the recall match is based on.
- data.coverage: "us" when recall data is available for this VIN’s market context.
- data.count: integer count of recalls returned in data.recalls. Use to pre-size UI lists or to emit summary badges.
- data.recalls[]: array of recall entries. Keys of interest:
- campaign: the Recall Campaign Number (e.g., 19V182000). This is the primary identifier you will store and display.
- component: the affected component string from NHTSA.
- received: date NHTSA received the campaign. ISO 8601 date in YYYY-MM-DD.
- summary, consequence, remedy: short text blocks for user-facing descriptions or dealer work notes.
Null fields: not all recalls contain every descriptive field for all makes/years. Be prepared for null or omitted keys within recalls[]. Always check key existence before rendering.
JavaScript and Python examples
JavaScript (fetch): extract campaign IDs and component names
async function getRecallCampaigns(vin, apiKey) {
const url = `https://vehicles-api.com/api/v1/vin/recalls?vin=${encodeURIComponent(vin)}`;
const res = await fetch(url, {
headers: { 'X-API-Key': apiKey }
});
// Basic envelope check
if (!res.ok) {
// The API returns JSON with status=error on application-level failures.
// Handle HTTP errors (e.g., 4xx/5xx) here as well.
const err = await res.json().catch(() => ({}));
throw new Error(err?.error?.message || `HTTP ${res.status}`);
}
const body = await res.json();
if (body.status !== 'success') {
// Application-level error; expect error.code and error.message
const code = body?.error?.code || 'unknown_error';
const msg = body?.error?.message || 'Request failed';
throw new Error(`${code}: ${msg}`);
}
// Extract the campaign numbers and components
const recalls = Array.isArray(body.data?.recalls) ? body.data.recalls : [];
return recalls.map(r => ({
campaign: r.campaign,
component: r.component,
received: r.received
}));
}
// Example usage:
getRecallCampaigns('1HGCM82633A004352', 'YOUR_API_KEY')
.then(list => {
// list = [ { campaign: '19V182000', component: 'AIR BAGS:...', received: '2019-03-06' }, ... ]
console.log('Campaigns:', list.map(x => x.campaign));
})
.catch(err => {
console.error('Recall lookup failed:', err.message);
});
Python (requests): filter by campaign and format for display
import requests
def fetch_recall_campaigns(vin: str, api_key: str):
url = "https://vehicles-api.com/api/v1/vin/recalls"
resp = requests.get(url, params={"vin": vin}, headers={"X-API-Key": api_key})
# Handle transport-level errors
resp.raise_for_status()
payload = resp.json()
if payload.get("status") != "success":
err = payload.get("error", {})
raise RuntimeError(f"{err.get('code', 'error')}: {err.get('message', 'request failed')}")
data = payload.get("data", {})
recalls = data.get("recalls", []) or []
# Return tuples of (campaign, component, received)
result = []
for r in recalls:
result.append((
r.get("campaign"),
r.get("component"),
r.get("received")
))
return result
if __name__ == "__main__":
campaigns = fetch_recall_campaigns("1HGCM82633A004352", "YOUR_API_KEY")
for campaign, component, received in campaigns:
print(f"{campaign} | {component} | received {received}")
Request and response envelope
Every response uses a consistent envelope. Your code should:
- Check status. If it is not "success", inspect error.code and error.message for diagnostics and user messaging.
- Use source to understand provenance ("nhtsa" here), which helps when you aggregate fields from multiple sources.
- Expect data to hold the meaningful payload. Within data, arrays like recalls may be empty if no campaigns match.
On coverage constraints, this endpoint will return an error with status "error". For example, a valid non-US VIN here returns 422 coverage_us_only. Always propagate the message to logs and handle the code in retry/branch logic as needed.
Parameters and matching rules
- vin (required): 17-character VIN string. Use the decoded attributes from Vehicle API’s VIN decoder to understand market context if you need to branch behavior.
- Matching: recall results are based on make + model + year alignment via NHTSA. They are not per-VIN repair statuses.
Because this endpoint keys on US-market recall data, if your fleet contains vehicles primarily sold outside the US, handle the 422 coverage_us_only case gracefully and consider offering a fallback UI state.
Rate limits, quotas, and performance
- Per-minute rate limits:
- Starter: 60 requests/minute
- Professional: 120 requests/minute
- Business: 240 requests/minute
- Monthly quota: each plan includes a monthly request quota. When designing batch jobs, monitor remaining quota and back off before you hit monthly ceilings.
- Retries: use exponential backoff on transient network errors. Do not retry on coverage_us_only or other logical errors.
- Caching: recall campaigns change as NHTSA publishes updates. Cache by (year, make, model) or by VIN for short TTLs (for example, 6–24 hours) to improve latency and reduce request load while keeping data fresh. For VIN decoding results you join with recalls, cache those long-lived attributes separately since they rarely change.
The Starter plan is $19/month and every plan includes a 7‑day free trial. You can upgrade or adjust usage patterns once you understand your typical request volume and cache hit rate.
Error handling and edge cases
- Authentication: if the API key is invalid or missing, you will receive an error envelope. Ensure the X-API-Key header is present. Authorization: Bearer is also supported if you prefer that header.
- Coverage: for a valid non-US VIN on this recalls endpoint, expect 422 coverage_us_only with status "error". Branch your UI to indicate US-only recall coverage.
- Empty recall list: a successful response may legitimately have count = 0 with an empty recalls array. Handle this as “no recalls found.”
- Partial fields: component, summary, consequence, or remedy may be null or omitted for some older campaigns. Default your renderers and storage schema accordingly.
- Timestamps: received is a date string in YYYY-MM-DD (UTC context is not needed since it is a date, not a timestamp). Store as a date type where possible.
Working with Recall Campaign Numbers
The recalls[].campaign field is the canonical identifier many downstream systems expect, and it is stable for querying OEM bulletins, looking up parts, or joining to internal service guides.
- Display: show the campaign number prominently and link internally to a details view populated by summary, consequence, and remedy.
- Storage: index campaign numbers in your database to deduplicate across periodic refreshes.
- Join keys: if you aggregate data from other NHTSA feeds, join on campaign where applicable. Always keep a record of the source ("nhtsa") alongside campaign.
Designing your integration
One-off lookups in dealer tools
When a VIN is scanned at intake, you can call /vin/recalls once, store campaign numbers, and render them with action buttons for your workflow (e.g., “Create RO for 19V182000”). Debounce to avoid duplicate calls per VIN within a session.
Marketplaces and listing pages
Precompute recall summaries during ingestion or indexing. Cache by VIN for a short TTL; render count and show the newest campaign’s received date. Lazy-load the full recall list on user interaction.
Fleets and insurers
Batch process your active VIN list with rate-limit aware schedulers. Maintain a last-seen campaign set per VIN so you can notify only on new campaigns. Backfill historical fleets at low concurrency to stay within per-minute plan limits.
MCP server option for agents and tools
If you are building AI agents or MCP clients, the same recall data is available over the Model Context Protocol server at MCP. This is useful when your agent framework prefers tool calls over direct HTTP from business logic. The REST and MCP surfaces return the same core fields, including recalls[].campaign.
Joining with VIN decoding and other Vehicle API data
While the recall match is by year/make/model, you will often decode the VIN first to validate the input and enrich your UI. Vehicle API’s VIN decoding works worldwide and includes trim, engine, transmission, and assembly plant. Pair that decoded snapshot with US recall campaigns when coverage is available. Remember:
- VIN decoding: worldwide; fullest attribute coverage for US-market vehicles.
- Recalls, owner complaints, NCAP ratings: US-market only; matched by year/make/model.
- Dutch plates (RDW): never include a VIN. Use them independently for Dutch-market features.
Testing strategy and observability
- Use a known control VIN for development, such as 1HGCM82633A004352 (2003 Honda Accord) from examples. Do not hardcode campaign counts in tests; NHTSA updates change live totals.
- Schema checks: validate presence of status, source, and data before inspecting data.recalls.
- Alerting: monitor error.code frequencies. A spike in coverage_us_only may indicate a shift in your input VIN mix or a routing bug.
- Latency: add client-side timing to measure P95 and evaluate cache TTLs vs. freshness needs.
Security and production hardening
- Secrets: keep YOUR_API_KEY in server-side configs or secrets managers. Do not expose keys in client-side code for public apps.
- Backoff: implement retry with jitter for transient network problems. Avoid retrying business-logic errors (status=error with coverage_us_only).
- Idempotency: GET requests are side-effect free. You can safely retry on timeouts.
- Validation: sanitize VIN input to 17 characters and uppercase before sending to reduce mismatches.
Common pitfalls and how to avoid them
- Assuming per-VIN repair status: this endpoint does not state whether a specific vehicle was repaired. Communicate this clearly in your UI.
- Assuming global coverage: handle 422 coverage_us_only. Provide a neutral message for non-US VINs.
- Rigid schemas: recalls[].summary and other text fields may be missing; make renderers resilient to null/undefined.
- Ignoring the envelope: always check status and handle the error object before reading data.
Where to go next
Read the full API reference and additional examples in the Documentation. If your application is agent-driven, review the MCP server for tool-enabled access. To start building against production data, create an account and begin your 7‑day free trial via Register.
FAQ
Does this endpoint confirm whether a specific VIN has been repaired?
No. It returns official NHTSA recall campaigns matched to year/make/model. It does not report per-vehicle repair completion.
What happens with a valid non-US VIN?
For this recalls endpoint, a valid non-US VIN returns an error with status "error" and code 422 coverage_us_only. Handle this case gracefully in your UI.
Are the campaign numbers stable over time?
Yes, the recalls[].campaign value is the canonical Recall Campaign Number used for reference. New campaigns may be added by NHTSA; do not hardcode the count.
Can I cache results?
Yes. Cache decoded VIN attributes separately (long TTL) and cache recall responses by VIN or by year/make/model for a short TTL to balance freshness with performance. Recall content updates as authorities publish new data.
What are the rate limits and how do I avoid 429s?
Per-minute limits are: Starter 60/min, Professional 120/min, Business 240/min. Use client-side throttling and caching. Monitor monthly quota usage in your account and plan batch jobs accordingly.
Build safer, more transparent vehicle experiences with authoritative data. Start your 7‑day free trial now at Register and integrate recalls[].campaign into your service pipeline today.