---
title: "Recalls"
description: "Check open safety recalls by VIN or by year, make, and model, resolve manufacturer campaign codes, and scan thousands of VINs in one batch."
canonical_url: "https://docs.carsxe.com/docs/products/recalls"
markdown_url: "https://docs.carsxe.com/docs/products/recalls.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
agent:
  task: "Look up vehicle safety recalls with CarsXE by VIN, by year, make, and model, by manufacturer campaign code, or in bulk."
  outcome: "A Recalls request returns the documented successful response for the supplied input: open recalls for a VIN or a year, make, and model, the campaign behind a manufacturer code, or a batch whose results can be polled and retrieved."
  prerequisites:
    - "A valid CarsXE API key with access to the endpoint you call."
    - "The inputs that endpoint needs: a VIN; a year, make, and model; a make and manufacturer campaign code; or a list of up to 10,000 VINs."
  verification:
    - "Run one documented Recalls request and confirm the response is successful and contains the fields described on this page."
    - "Request make=volkswagen&code=37M2 from /v1/recalls-campaigns and confirm data.nhtsa_campaign_number is 19V615000."
  failureModes:
    - symptom: "A Recalls request is rejected or does not return the expected data."
      resolution: "Check the API key, plan access, supported input format, and the returned status code against the error guide before retrying."
    - symptom: "A Recall Campaign request returns 404 with \"No campaign found for this make and campaign code\"."
      resolution: "Check the make spelling and send the code as printed. A miss is not billed; use Recalls by VIN when the vehicle's VIN is known."
    - symptom: "A Recall Campaign request returns 400."
      resolution: "Send both make and code as non-empty query parameters. make is limited to 120 characters and code to 64."
    - symptom: "Recalls Batch results or download return 409."
      resolution: "The batch is still processing. Poll the status endpoint or wait for the webhook, then retry once the status is completed or partial."
---

# Recalls
URL: /docs/products/recalls
LLM index: /llms.txt
Description: Check open safety recalls by VIN or by year, make, and model, resolve manufacturer campaign codes, and scan thousands of VINs in one batch.
Related: /docs/products, /docs/get-started

<!-- farming-labs:agent-contract:start -->
## Agent Contract

Task: Look up vehicle safety recalls with CarsXE by VIN, by year, make, and model, by manufacturer campaign code, or in bulk.
Outcome: A Recalls request returns the documented successful response for the supplied input: open recalls for a VIN or a year, make, and model, the campaign behind a manufacturer code, or a batch whose results can be polled and retrieved.

### Prerequisites

- A valid CarsXE API key with access to the endpoint you call.
- The inputs that endpoint needs: a VIN; a year, make, and model; a make and manufacturer campaign code; or a list of up to 10,000 VINs.

### Verification

- Run one documented Recalls request and confirm the response is successful and contains the fields described on this page.
- Request make=volkswagen&code=37M2 from /v1/recalls-campaigns and confirm data.nhtsa_campaign_number is 19V615000.

### Failure Modes

- A Recalls request is rejected or does not return the expected data. — Recovery: Check the API key, plan access, supported input format, and the returned status code against the error guide before retrying.
- A Recall Campaign request returns 404 with "No campaign found for this make and campaign code". — Recovery: Check the make spelling and send the code as printed. A miss is not billed; use Recalls by VIN when the vehicle's VIN is known.
- A Recall Campaign request returns 400. — Recovery: Send both make and code as non-empty query parameters. make is limited to 120 characters and code to 64.
- Recalls Batch results or download return 409. — Recovery: The batch is still processing. Poll the status endpoint or wait for the webhook, then retry once the status is completed or partial.
<!-- farming-labs:agent-contract:end -->

Task: Look up vehicle safety recalls with CarsXE by VIN, by year, make, and model, by manufacturer campaign code, or in bulk.
Related: /docs/products/recalls, /docs/products/year-make-model, /docs/guides/workflows, /docs/guides/rate-limits

Recalls covers four endpoints that answer the same question from different starting points. Use Recalls by VIN when you have one vehicle's VIN. Use Recalls by YMM when you only know the year, make, and model. Use Recall Campaign when a document carries a manufacturer campaign code. Use Recalls Batch when you need to check thousands of VINs in one job. All four take your API key as the `key` query parameter.

| Endpoint | Request | You send | Use it when |
|---|---|---|---|
| [Recalls by VIN](#recalls-by-vin) | `GET /v1/recalls` | `vin` | You need the open recalls and remedy status for one vehicle |
| [Recalls by YMM](#recalls-by-ymm) | `GET /v1/recalls-ymm` | `year`, `make`, `model` | You have no VIN, or need every campaign for a model line |
| [Recall Campaign](#recall-campaign) | `GET /v1/recalls-campaigns` | `make`, `code` | A repair order, owner letter, or condition report lists a manufacturer campaign code |
| [Recalls Batch](#recalls-batch) | `POST /v1/recalls-batch/submit` | Up to 10,000 VINs | You need to scan a fleet, a lot, or an auction run list |

For complete multi-endpoint sequences, see [API Workflows and Real-Life Use Cases](/docs/guides/workflows).

## Who uses this API

Service departments, dealerships, fleet operators, warranty providers, auctions, OEM portals, listing sites, and dealer software vendors call these endpoints before delivery, service, sale, or coverage decisions. They check a single VIN, look up a model line without a VIN, resolve the campaign codes printed on repair orders and owner letters, or scan thousands of VINs in one batch.

## Use cases

### B2B

- **Dealerships — pre-delivery inspection:** Flag open recalls and available remedies before a vehicle leaves the lot ([Recalls by VIN](#recalls-by-vin)).
- **Service — bay alerts and repair order intake:** Look up campaigns, affected components, and fix instructions when a VIN is checked in ([Recalls by VIN](#recalls-by-vin)). Resolve the campaign codes on an incoming repair order before the vehicle reaches the bay ([Recall Campaign](#recall-campaign)).
- **Fleets — compliance and nightly scans:** Submit up to 10,000 VINs and retrieve open-recall status when the batch completes ([Recalls Batch](#recalls-batch)). Show open campaigns for a year, make, and model when VINs are not yet assigned or captured ([Recalls by YMM](#recalls-by-ymm)).
- **Auctions and wholesale:** Check a run list of VINs before a sale without issuing one request per vehicle ([Recalls Batch](#recalls-batch)). Turn the open-campaign codes on a condition report into readable recall descriptions for buyers ([Recall Campaign](#recall-campaign)).
- **Dealer groups — lot-wide compliance:** Poll or webhook a batch so every store’s inventory is checked on a schedule ([Recalls Batch](#recalls-batch)).
- **Warranty and claims:** Confirm open recalls across assigned vehicles before scheduling work or extending coverage ([Recalls by VIN](#recalls-by-vin)). Confirm a submitted campaign code exists for the make and see whether it is a safety recall or a service bulletin ([Recall Campaign](#recall-campaign)).
- **Listings — catalog enrichment:** Attach known recalls to a YMM listing before a specific VIN is entered ([Recalls by YMM](#recalls-by-ymm)).
- **OEM and service portals:** Power a model-level recall lookup for technicians and support teams ([Recalls by YMM](#recalls-by-ymm)).
- **Dealer software — service history enrichment:** Attach the NHTSA campaign number and description to historical service lines that only carry the manufacturer's code ([Recall Campaign](#recall-campaign)).

### B2C

- **Owner VIN recall checker:** Let a vehicle owner paste a VIN and see whether any open safety recalls apply ([Recalls by VIN](#recalls-by-vin)).
- **Consumer service apps:** Show recall count and remedy status next to a saved vehicle ([Recalls by VIN](#recalls-by-vin)).
- **Shop-by-model recall pages:** Let a shopper check recalls for a year, make, and model before they have a VIN ([Recalls by YMM](#recalls-by-ymm)).
- **Vehicle buying research:** Show campaign summaries on a comparison or buying-guide page, and let someone considering a used or new vehicle check known model-level recalls before requesting a VIN-specific check ([Recalls by YMM](#recalls-by-ymm)).
- **Owner letter explainers:** Let a vehicle owner type the code from a recall letter and see what the campaign fixes and which models it covers ([Recall Campaign](#recall-campaign)).
- **Used-vehicle research:** Explain the campaign codes shown in a vehicle's service records on a buying-guide or listing page ([Recall Campaign](#recall-campaign)).

Recalls Batch has no B2C use cases. A consumer recall checker is a single-VIN lookup; use [Recalls by VIN](#recalls-by-vin).

## Recalls by VIN

Look up all open vehicle safety recalls for a vehicle by VIN. The response tells you how many recalls exist, whether a remedy is available, and the full detail of each campaign — component, risk, and fix instructions.

### Parameters

| Parameter | Required | Description |
|---|---|---|
| `vin` | Yes | The 17-character vehicle identification number |
| `key` | Yes | Your CarsXE API key |

### Example

<CodeGroup title="Check for recalls" tag="GET" label="/v1/recalls">

```bash
curl -G https://api.carsxe.com/v1/recalls \
  -d key=YOUR_API_KEY \
  -d vin=1C4JJXR64PW696340
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");
const vin = "1C4JJXR64PW696340";

try {
  const recalls = await carsxe.recalls({ vin });
  console.log(recalls);
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

carsxe = CarsXE("YOUR_API_KEY")
vin = "1C4JJXR64PW696340"

try:
    recalls = asyncio.run(carsxe.recalls({"vin": vin}))
    print(recalls)
except Exception as e:
    print(f"Error: {e}")
```

```php
<?php
require_once __DIR__ . '/vendor/autoload.php';
use CarsxeDeveloper\Carsxe\Carsxe;

$carsxe = new Carsxe("YOUR_API_KEY");
$vin = "1C4JJXR64PW696340";

try {
    $recalls = $carsxe->recalls(["vin" => $vin]);
    print_r($recalls);
} catch (Exception $error) {
    echo "Error: " . $error->getMessage();
}
```

```ruby
require "carsxe"

carsxe = Carsxe::CarsXE.new(api_key: "YOUR_API_KEY")
vin = "1C4JJXR64PW696340"

begin
  recalls = carsxe.recalls("vin" => vin)
  puts recalls
rescue StandardError => error
  puts "Error: #{error.message}"
end
```

```go
package main

import (
	"fmt"
	"github.com/carsxe/carsxe-go-package"
)

func main() {
	client := carsxe.New("YOUR_API_KEY")
	vin := "1C4JJXR64PW696340"
	recalls := client.Recalls(map[string]string{"vin": vin})
	fmt.Println(recalls)
}
```

```java
import io.github.carsxe.CarsXE;
import java.util.Map;
import java.util.HashMap;

public class Main {
    public static void main(String[] args) {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");
        Map<String, String> params = new HashMap<>();
        params.put("vin", "1C4JJXR64PW696340");

        try {
            Map<String, Object> recalls = carsxe.recalls(params);
            System.out.println(recalls);
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
```

```swift
import carsxe

let carsxe = CarsXE(apiKey: "YOUR_API_KEY")
let vin = "1C4JJXR64PW696340"

do {
    let recalls = try carsxe.recalls(["vin": vin])
    print(recalls)
} catch {
    print("Error: \(error)")
}
```

```csharp
using carsxe;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");
        string vin = "1C4JJXR64PW696340";

        try
        {
            var recalls = await carsxe.Recalls(new Dictionary<string, string> { { "vin", vin } });
            Console.WriteLine(recalls);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
```

```bash {{ title: "Response" }}
{
  "success": true,
  "input": { "vin": "1C4JJXR64PW696340" },
  "data": {
    "uuid": "d1269d6b-54a2-4bf3-8119-1c8fdb4f0563",
    "vin": "1C4JJXR64PW696340",
    "manufacturer": "FCA US LLC",
    "model_year": "2023",
    "make": "JEEP",
    "model": "Wrangler",
    "has_recalls": true,
    "recall_count": 1,
    "recalls": [
      {
        "nhtsa_id": "24V720",
        "manufacturer_id": "95B",
        "recall_campaign_type": "NHTSA",
        "recall_name": "2020-2024 JL & 2022-2024 WL PHEV High Voltage Battery",
        "recall_date": "2024-09-27",
        "expiration_date": null,
        "component": "",
        "recall_description": "2020-2024 JL & 2022-2024 WL PHEV High Voltage Battery",
        "risk_description": "In rare circumstances, a battery pack may contain cells with separator damage...",
        "remedy_available": null,
        "recall_remedy": "FCA US will conduct a voluntary safety recall on all affected vehicles...",
        "parts_available": null,
        "labor_hours_min": null,
        "labor_hours_max": null,
        "stop_sale": null,
        "dont_drive": null,
        "recall_status": "Incomplete",
        "not_available_reason": null
      }
    ]
  },
  "timestamp": "2026-06-19T00:00:00.000Z"
}
```

</CodeGroup>

### Response

#### Top-level shape

<RecallsTopLevelShape />

Click `data` or `recalls` to expand them and see sample values. For the full interactive reference, try it live in the [API Reference](/api-reference/recalls/vehicle-recalls).

#### data

All vehicle-level fields and the recall list are nested under `data`.

<details>
<summary>**Vehicle identity** — make, model, year decoded from the VIN</summary>

<Properties>
  <Property name="uuid" type="string">
    Unique identifier for this recall report record. Example: `"d1269d6b-54a2-4bf3-8119-1c8fdb4f0563"`.
  </Property>
  <Property name="vin" type="string">
    The VIN used to look up this record. Example: `"1C4JJXR64PW696340"`.
  </Property>
  <Property name="manufacturer" type="string">
    The legal manufacturer name as registered for recall reporting. May differ from the brand name consumers know. Example: `"FCA US LLC"`, `"TOYOTA MOTOR MFG DE BAJA CALIFORNIA S DE RL DE CV"`.
  </Property>
  <Property name="make" type="string">
    The vehicle brand. Example: `"JEEP"`, `"TOYOTA"`, `"FORD"`.
  </Property>
  <Property name="model" type="string">
    The model name. Example: `"Wrangler"`, `"Tacoma"`, `"F-150"`.
  </Property>
  <Property name="model_year" type="string">
    The 4-digit model year. Example: `"2023"`.
  </Property>
  <Property name="vehicle_type" type="string">
    Vehicle category when returned by the data source. Example: `"PASSENGER CAR"`, `"TRUCK"`.
  </Property>
</Properties>

</details>

<details>
<summary>**Recall summary** — whether recalls exist and how many</summary>

<Properties>
  <Property name="report_date" type="string">
    ISO 8601 UTC timestamp for when this recall report was generated. Example: `"2024-09-27T14:05:09.548Z"`.
  </Property>
  <Property name="has_recalls" type="boolean">
    `true` if at least one open recall was found for the VIN, `false` otherwise. Check this field before iterating `recalls`.
  </Property>
  <Property name="recall_count" type="number">
    Total number of recalls in the `recalls` array. Example: `1`, `3`.
  </Property>
</Properties>

</details>

#### recalls[]

Each item in the `recalls` array represents one open recall campaign. All fields are optional — a `null` value means the data source did not provide that information for this campaign.

<details>
<summary>**Identification** — campaign ID, campaign type, and dates</summary>

<Properties>
  <Property name="nhtsa_id" type="string">
    The campaign identifier. Example: `"24V720"`. May be empty for voluntary service campaigns not filed as official safety campaigns.
  </Property>
  <Property name="manufacturer_id" type="string">
    The manufacturer's internal recall campaign number. Example: `"95B"`, `"25TC07-28342"`. To resolve a manufacturer code on its own, without a VIN, use [Recall Campaign](#recall-campaign).
  </Property>
  <Property name="recall_campaign_type" type="string">
    The type of recall campaign. Example: `"NHTSA"` for federally mandated campaigns, `"VOLUNTARY/SERVICE"` for manufacturer-initiated campaigns.
  </Property>
  <Property name="recall_name" type="string">
    A short descriptive name for the recall campaign as filed. Example: `"2020-2024 JL & 2022-2024 WL PHEV High Voltage Battery"`.
  </Property>
  <Property name="recall_date" type="string">
    ISO 8601 date the recall was issued. Example: `"2024-09-27"`.
  </Property>
  <Property name="expiration_date" type="string | null">
    ISO 8601 date the recall expires, if applicable. `null` if the recall has no set expiration.
  </Property>
</Properties>

</details>

<details>
<summary>**Description** — what component is affected and what the risk is</summary>

<Properties>
  <Property name="component" type="string">
    The vehicle component or system covered by the recall. Example: `"FUEL SYSTEM, GASOLINE"`, `"AIR BAGS"`. May be empty for some voluntary campaigns.
  </Property>
  <Property name="recall_description" type="string">
    Full description of the defect or condition being recalled. This is the official text from the recall filing.
  </Property>
  <Property name="risk_description" type="string">
    Description of the safety risk posed by the defect — what could go wrong and what the consequences are. May be empty for non-safety campaigns.
  </Property>
</Properties>

</details>

<details>
<summary>**Remedy** — fix availability, parts, labor, and urgency flags</summary>

<Properties>
  <Property name="remedy_available" type="boolean | null">
    `true` if a fix is currently available at dealerships. `null` means the data source has not confirmed remedy availability.
  </Property>
  <Property name="recall_remedy" type="string | null">
    Description of the repair or corrective action. Example: `"FCA US will conduct a voluntary safety recall. Remedy is a software flash followed by a HV battery replacement if needed."`.
  </Property>
  <Property name="parts_available" type="boolean | null">
    `true` if repair parts are in stock at dealerships. `null` if unknown.
  </Property>
  <Property name="labor_hours_min" type="number | null">
    Minimum estimated labor hours for the repair. `null` if not provided.
  </Property>
  <Property name="labor_hours_max" type="number | null">
    Maximum estimated labor hours for the repair. `null` if not provided.
  </Property>
  <Property name="stop_sale" type="boolean | null">
    `true` if dealers are prohibited from selling affected vehicles until the recall is remedied. `null` if the data source did not specify.
  </Property>
  <Property name="dont_drive" type="boolean | null">
    `true` if owners are advised not to drive the vehicle until repaired. `null` if the data source did not specify.
  </Property>
  <Property name="recall_status" type="string">
    Current status of the recall campaign. Example: `"Incomplete"` (remedy not yet performed), `"INCOMPLETE"`, `"Complete"`.
  </Property>
  <Property name="not_available_reason" type="string | null">
    When a remedy is not yet available, the reason provided by the data source (for example parts not released or campaign still being prepared). `null` when unknown or not applicable.
  </Property>
</Properties>

</details>

## Recalls by YMM

Retrieve open safety recalls for any vehicle by year, make, and model. No VIN required — ideal for checking an entire model line, powering fleet dashboards, or enriching vehicle listings when individual VINs aren't available.

### Parameters

| Parameter | Required | Description |
|---|---|---|
| `year` | Yes | The 4-digit model year (e.g. `2019`) |
| `make` | Yes | The vehicle manufacturer name (e.g. `Toyota`). Case-insensitive. |
| `model` | Yes | The vehicle model name (e.g. `Camry`). Case-insensitive. |
| `key` | Yes | Your CarsXE API key |

### Example

<CodeGroup title="Check recalls by YMM" tag="GET" label="/v1/recalls-ymm">

```bash
curl -G https://api.carsxe.com/v1/recalls-ymm \
  -d key=YOUR_API_KEY \
  -d year=2026 \
  -d make=toyota \
  -d model=corolla
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");

try {
  const recalls = await carsxe.recallsYmm({
    year: "2026",
    make: "toyota",
    model: "corolla",
  });
  console.log(recalls);
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

carsxe = CarsXE("YOUR_API_KEY")

try:
    recalls = asyncio.run(carsxe.recalls_ymm({
        "year": "2026",
        "make": "toyota",
        "model": "corolla",
    }))
    print(recalls)
except Exception as e:
    print(f"Error: {e}")
```

```php
<?php
require_once __DIR__ . '/vendor/autoload.php';
use CarsxeDeveloper\Carsxe\Carsxe;

$carsxe = new Carsxe("YOUR_API_KEY");

try {
    $recalls = $carsxe->recallsYmm([
        'year'  => '2026',
        'make'  => 'toyota',
        'model' => 'corolla',
    ]);
    print_r($recalls);
} catch (Exception $error) {
    echo "Error: " . $error->getMessage();
}
```

```ruby
require "carsxe"

carsxe = Carsxe::CarsXE.new(api_key: "YOUR_API_KEY")

begin
  recalls = carsxe.recalls_ymm(
    "year"  => "2026",
    "make"  => "toyota",
    "model" => "corolla"
  )
  puts recalls
rescue StandardError => error
  puts "Error: #{error.message}"
end
```

```go
package main

import (
	"fmt"
	"github.com/carsxe/carsxe-go-package"
)

func main() {
	client := carsxe.New("YOUR_API_KEY")
	recalls := client.RecallsYmm(map[string]string{
		"year":  "2026",
		"make":  "toyota",
		"model": "corolla",
	})
	fmt.Println(recalls)
}
```

```java
import io.github.carsxe.CarsXE;
import java.util.Map;
import java.util.HashMap;

public class Main {
    public static void main(String[] args) {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");
        Map<String, String> params = new HashMap<>();
        params.put("year", "2026");
        params.put("make", "toyota");
        params.put("model", "corolla");

        try {
            Map<String, Object> recalls = carsxe.recallsYmm(params);
            System.out.println(recalls);
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
```

```swift
import carsxe

let carsxe = CarsXE(apiKey: "YOUR_API_KEY")

do {
    let recalls = try carsxe.recallsYmm([
        "year": "2026",
        "make": "toyota",
        "model": "corolla",
    ])
    print(recalls)
} catch {
    print("Error: \(error)")
}
```

```csharp
using carsxe;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");

        try
        {
            var recalls = await carsxe.RecallsYmm(new Dictionary<string, string>
            {
                { "year",  "2026" },
                { "make",  "toyota" },
                { "model", "corolla" },
            });
            Console.WriteLine(recalls);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
```

```bash {{ title: "Response" }}
{
  "success": true,
  "input": {
    "year": "2026",
    "make": "TOYOTA",
    "model": "COROLLA"
  },
  "data": {
    "make": "TOYOTA",
    "model": "COROLLA",
    "model_year": "2026",
    "recall_count": 1,
    "has_recalls": true,
    "recalls": [
      {
        "nhtsa_campaign_number": "26V110000",
        "manufacturer": "Toyota Motor Engineering & Manufacturing",
        "park_it": false,
        "park_outside": false,
        "over_the_air_update": false,
        "report_received_date": "25/02/2026",
        "component": "EXTERIOR LIGHTING:HEADLIGHTS",
        "summary": "Toyota Motor Engineering & Manufacturing (Toyota) is recalling certain 2026 Corolla vehicles. The front headlights may have missing headlight aim markings.",
        "consequence": "Incorrectly aimed headlights can reduce driver visibility or create a glare for oncoming traffic, increasing the risk of a crash.",
        "remedy": "Dealers will replace both front headlight assemblies, free of charge. Owner notification letters were mailed April 20, 2026.",
        "notes": null
      }
    ]
  },
  "timestamp": "2026-06-29T12:00:45.786Z"
}
```

</CodeGroup>

### Response

#### Top-level shape

<RecallsYmmTopLevelShape />

Click `data` or `recalls` to expand them and see sample values. For the full interactive reference, try it live in the [API Reference](/api-reference/recalls/recalls-by-year-make-model).

#### data

All YMM-level fields and the recall list are nested under `data`.

<details>
<summary>**Vehicle identity** — year, make, and model from the request</summary>

<Properties>
  <Property name="make" type="string">
    The vehicle manufacturer name, normalised to uppercase. Example: `"TOYOTA"`, `"FORD"`.
  </Property>
  <Property name="model" type="string">
    The vehicle model name, normalised to uppercase. Example: `"COROLLA"`, `"F-150"`.
  </Property>
  <Property name="model_year" type="string">
    The 4-digit model year. Example: `"2026"`.
  </Property>
</Properties>

</details>

<details>
<summary>**Recall summary** — whether recalls exist and how many</summary>

<Properties>
  <Property name="has_recalls" type="boolean">
    `true` if at least one recall was found for this year, make, and model, `false` otherwise. Check this field before iterating `recalls`.
  </Property>
  <Property name="recall_count" type="number">
    Total number of recalls in the `recalls` array. Example: `1`, `3`.
  </Property>
</Properties>

</details>

#### recalls[]

Each item in the `recalls` array represents one recall campaign. All fields are optional — a `null` value means the data source did not provide that information for this campaign.

<details>
<summary>**Identification** — campaign ID, manufacturer, and report date</summary>

<Properties>
  <Property name="nhtsa_campaign_number" type="string">
    The NHTSA campaign number uniquely identifying this recall. Example: `"26V110000"`, `"19V312000"`.
  </Property>
  <Property name="manufacturer" type="string">
    The full legal name of the manufacturer issuing the recall. Example: `"Toyota Motor Engineering & Manufacturing"`.
  </Property>
  <Property name="report_received_date" type="string">
    The date NHTSA received the recall report, in `MM/DD/YYYY` format. Example: `"25/02/2026"`.
  </Property>
</Properties>

</details>

<details>
<summary>**Description** — what component is affected and what the risk is</summary>

<Properties>
  <Property name="component" type="string">
    The vehicle component or system affected by the recall. Example: `"EXTERIOR LIGHTING:HEADLIGHTS"`, `"ELECTRICAL SYSTEM"`.
  </Property>
  <Property name="summary" type="string">
    A detailed description of the defect or non-compliance that prompted the recall.
  </Property>
  <Property name="consequence" type="string">
    The safety risk to vehicle occupants or others if the defect is not corrected.
  </Property>
  <Property name="notes" type="string | null">
    Additional notes from the manufacturer or NHTSA, such as owner notification timelines. `null` if none.
  </Property>
</Properties>

</details>

<details>
<summary>**Remedy** — fix details and urgency flags</summary>

<Properties>
  <Property name="remedy" type="string">
    The corrective action the manufacturer will take, including whether it is free of charge.
  </Property>
  <Property name="park_it" type="boolean">
    `true` if NHTSA advises parking the vehicle until the remedy is completed.
  </Property>
  <Property name="park_outside" type="boolean">
    `true` if NHTSA advises parking the vehicle outside and away from structures until the remedy is completed.
  </Property>
  <Property name="over_the_air_update" type="boolean">
    `true` if the remedy can be delivered via an over-the-air software update.
  </Property>
</Properties>

</details>

## Recall Campaign

Manufacturers give every recall and service campaign their own code, such as Volkswagen `37M2`, and that code is what shows up on repair orders, owner letters, and auction condition reports. The same recall also carries an NHTSA campaign number. This endpoint takes a make and a manufacturer code and returns the campaign behind it: the NHTSA campaign number, whether it is a safety recall or a service bulletin, the defect and remedy description, the affected component, and the models and model years it covers.

Each request is an exact match against the CarsXE campaign dictionary, which covers safety recalls and manufacturer service bulletins. It does not need a VIN.

### Parameters

| Parameter | Required | Description |
|---|---|---|
| `make` | Yes | The vehicle manufacturer name (e.g. `volkswagen`, `land rover`). Case and extra whitespace are ignored. Up to 120 characters. |
| `code` | Yes | The manufacturer's campaign code (e.g. `37M2`). Up to 64 characters. See [How codes are matched](#how-codes-are-matched). |
| `key` | Yes | Your CarsXE API key |

<Note>
A request that finds no campaign returns `404` and is not billed. A successful request is billed as one [Vehicle Recalls](#recalls-by-vin) call and counts toward the same plan quota.
</Note>

### Example

<CodeGroup title="Look up a campaign code" tag="GET" label="/v1/recalls-campaigns">

```bash
curl -G https://api.carsxe.com/v1/recalls-campaigns \
  -d key=YOUR_API_KEY \
  -d make=volkswagen \
  -d code=37M2
```

```js
const apiKey = "YOUR_API_KEY";

async function getCampaign(make, code) {
  const query = new URLSearchParams({ key: apiKey, make, code });
  const response = await fetch(`https://api.carsxe.com/v1/recalls-campaigns?${query.toString()}`);
  if (response.status === 404) return null; // code not in the dictionary, not billed
  if (!response.ok) throw new Error(`Request failed: ${response.status}`);
  return response.json();
}

const campaign = await getCampaign("volkswagen", "37M2");
console.log(campaign?.data.nhtsa_campaign_number);
```

```python
import httpx

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.carsxe.com/v1/recalls-campaigns"

def get_campaign(make: str, code: str):
    response = httpx.get(BASE_URL, params={"key": API_KEY, "make": make, "code": code}, timeout=30.0)
    if response.status_code == 404:
        return None  # code not in the dictionary, not billed
    response.raise_for_status()
    return response.json()

campaign = get_campaign("volkswagen", "37M2")
print(campaign and campaign["data"]["nhtsa_campaign_number"])
```

```bash {{ title: "Response" }}
{
  "success": true,
  "input": {
    "make": "volkswagen",
    "code": "37M2"
  },
  "data": {
    "campaign_code": "37M2",
    "recall_class": "Safety / Compliance Recall",
    "description": "Volkswagen Group of America, Inc. (Volkswagen) is recalling certain 2015-2019 GTI, 2015-2016 and 2018-2019 Golf, 2012-2019 Beetle and Beetle Convertible, 2017-2019 Golf SportWagen and 2011-2018 Jetta vehicles equipped with an automatic transmission, manual handbrake and keyless entry. A build-up of silicate on the shift lever micro switch contacts may enable the key to be removed from the ignition when the transmission shift lever is not in \"Park.\" Volkswagen will notify owners, and dealers will install an additional switch and circuit board, free of charge.",
    "nhtsa_campaign_number": "19V615000",
    "component": "ELECTRICAL SYSTEM:IGNITION:ANTI-THEFT:CONTROL MODULE",
    "models": "BEETLE;BEETLE CONVERTIBLE;GOLF;GOLF SPORTWAGEN;GTI;JETTA",
    "model_years": "2011;2012;2013;2014;2015;2016;2017;2018;2019",
    "confidence": "high",
    "matched": true,
    "dictionary_version": 1
  },
  "timestamp": "2026-09-25T12:29:09.352Z"
}
```

</CodeGroup>

### How codes are matched

Matching is exact on the pair of make and code after both are normalized, so these requests all find the same campaign:

- **Make** is trimmed, repeated spaces are collapsed, and case is ignored. `Land  Rover` and `land rover` match.
- **Code** is trimmed, upper-cased, and every letter `O` is read as the digit `0`. `37o2`, `37O2`, and `3702` match.
- **Volkswagen warranty codes** match in any spelling. `VWP1403`, `VWP 14 03`, and `VWP-14-03` all resolve to `VWP-14-03`.

`input.code` echoes the code you sent, trimmed. `data.campaign_code` is the code as the dictionary stores it.

A make and code that are not in the dictionary return `404`. The endpoint never guesses a nearby code.

### Response

#### Top-level shape

<RecallsCampaignsTopLevelShape />

Click `input` or `data` to expand them and see sample values. For the full interactive reference, try it live in the [API Reference](/api-reference/recalls/recall-campaign).

#### data

<details>
<summary>**Identification**: the campaign, its NHTSA number, and its class</summary>

<Properties>
  <Property name="campaign_code" type="string">
    The manufacturer's campaign code as stored in the dictionary. Example: `"37M2"`, `"VWP-14-03"`.
  </Property>
  <Property name="nhtsa_campaign_number" type="string">
    The NHTSA campaign number, or several separated by `;` when the manufacturer used one code for more than one recall. Example: `"19V615000"`, `"01V015000;01V016000"`. Empty for a code known only from a service bulletin.
  </Property>
  <Property name="recall_class" type="string">
    `"Safety / Compliance Recall"` for a safety recall. For a service bulletin it is the bulletin type, such as a technical service bulletin or a customer satisfaction campaign. When a code appears in both, the safety recall wins.
  </Property>
</Properties>

</details>

<details>
<summary>**Description**: what the campaign fixes and what it applies to</summary>

<Properties>
  <Property name="description" type="string">
    For a safety recall, the defect and remedy text of the recall. For a bulletin, the bulletin summary.
  </Property>
  <Property name="component" type="string">
    The affected vehicle system. Example: `"ELECTRICAL SYSTEM:IGNITION:ANTI-THEFT:CONTROL MODULE"`. Empty for a code known only from a service bulletin.
  </Property>
  <Property name="models" type="string">
    Affected models, separated by `;`. Example: `"BEETLE;GOLF;GTI;JETTA"`.
  </Property>
  <Property name="model_years" type="string">
    Affected model years, separated by `;`. Example: `"2011;2012;2013"`.
  </Property>
</Properties>

</details>

<details>
<summary>**Match details**: how sure the match is and which build answered</summary>

<Properties>
  <Property name="confidence" type="string">
    `"high"` when the code is recorded as the campaign's own identifier. `"medium (prose reference)"` when it was found only in the text of a bulletin summary; confirm those against the description before acting on them.
  </Property>
  <Property name="matched" type="boolean">
    Always `true` on a `200`. A miss returns `404` instead.
  </Property>
  <Property name="dictionary_version" type="number">
    The dictionary build that answered. It increases each time a new build is published.
  </Property>
</Properties>

</details>

### Data freshness and coverage

CarsXE refreshes the campaign dictionary regularly and publishes each refresh as a new build. Watch `dictionary_version` if you cache results on your side.

The dictionary covers campaigns for vehicles sold in the United States. A code a manufacturer used only in another market will not be found.

A campaign covers a range of vehicles inside the listed models and years, not every vehicle built. To confirm whether a specific vehicle is affected and whether the remedy is still open, use the [VIN recalls lookup](#recalls-by-vin). To see every campaign for a model line, use [Recalls by YMM](#recalls-by-ymm).

## Recalls Batch

Submit up to 10,000 VINs in one request for bulk recall checking. Unlike [Recalls by VIN](#recalls-by-vin), this endpoint is built for high-volume workflows — fleet management, dealership inventory scans, and wholesale auction processing.

<Note>
  Recalls Batch is **asynchronous**: **submit** your VINs, **poll** for status (or use a **webhook**), then **retrieve** results when the job is `completed` or `partial`. Uncached VINs are queued for full processing; turnaround is typically **30–60 minutes** depending on batch size and load.
</Note>

### How it works

1. **Submit** — `POST` VINs (JSON array, inline CSV, or HTTPS URL to a CSV). You receive a `batchId` immediately (**202 Accepted**).
2. **Poll** — Call the status endpoint with `batchId` until `completed`, `partial`, or `failed` (or wait for your customer webhook).
3. **Retrieve** — `GET` results as JSON, or download CSV from `/v1/recalls-batch/download`.

**Caching:** Recently checked VINs may be served from cache. If every VIN in the batch is cached, the submit response can already show `status: "completed"` with full `processedVins` — no `uploading` / `processing` phase.

**Full processing path:** Uncached VINs move through `uploading`, then `processing`, while CarsXE prepares and runs the batch; results are written when processing finishes.

For interactive try-it-live, see the [API Reference](/api-reference/recalls/submit-a-bulk-recalls-batch).

### Parameters

Provide at least one of `vins`, `csv`, or `csvUrl`. You can combine them — all VINs are merged and deduplicated. The combined total must not exceed 10,000.

| Parameter | Required | Description |
|---|---|---|
| `vins` | No* | JSON array of 17-character VIN strings |
| `csv` | No* | Inline CSV text (one VIN per line, or a single `vin` column) |
| `csvUrl` | No* | HTTPS URL to a CSV file (max 5 MB). Supported hosts: Google Sheets, Google Cloud Storage, AWS S3, Dropbox, Azure Blob, DigitalOcean Spaces, and Box. Google Sheets and Dropbox sharing links are auto-converted to direct download |
| `webhookUrl` | No | HTTPS URL for a customer webhook when the batch finishes |
| `key` | Yes | Your CarsXE API key (query parameter; official SDKs may send `x-api-key` instead) |

\* At least one of `vins`, `csv`, or `csvUrl` is required.

### Step 1: Submit a batch

<CodeGroup title="Submit a batch" tag="POST" label="/v1/recalls-batch/submit">

```bash
curl -X POST "https://api.carsxe.com/v1/recalls-batch/submit?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "vins": [
      "1HGBH41JXMN109186",
      "5YJSA1E26HF000001",
      "1C4JJXR64PW696340"
    ],
    "webhookUrl": "https://your-server.com/webhook"
  }'
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");

try {
  const response = await carsxe.submitBulkRecallBatch({
    vins: [
      "1HGBH41JXMN109186",
      "5YJSA1E26HF000001",
      "1C4JJXR64PW696340",
    ],
    webhookUrl: "https://your-server.com/webhook",
  });
  console.log(response.data?.batchId);
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

async def main():
    async with CarsXE(api_key="YOUR_API_KEY") as carsxe:
        response = await carsxe.submit_bulk_recall_batch(
            vins=[
                "1HGBH41JXMN109186",
                "5YJSA1E26HF000001",
                "1C4JJXR64PW696340",
            ],
            webhook_url="https://your-server.com/webhook",
        )
        print(response.data.batch_id)

asyncio.run(main())
```

```php
<?php
require_once __DIR__ . '/vendor/autoload.php';
use CarsxeDeveloper\Carsxe\Carsxe;

$carsxe = new Carsxe("YOUR_API_KEY");

try {
    $response = $carsxe->submitBulkRecallBatch([
        'vins' => [
            '1HGBH41JXMN109186',
            '5YJSA1E26HF000001',
            '1C4JJXR64PW696340',
        ],
        'webhookUrl' => 'https://your-server.com/webhook',
    ]);
    print_r($response);
} catch (Exception $error) {
    echo "Error: " . $error->getMessage();
}
```

```ruby
require "carsxe"

carsxe = Carsxe::CarsXE.new(api_key: "YOUR_API_KEY")

begin
  response = carsxe.submit_bulk_recall_batch(
    "vins" => [
      "1HGBH41JXMN109186",
      "5YJSA1E26HF000001",
      "1C4JJXR64PW696340",
    ],
    "webhookUrl" => "https://your-server.com/webhook"
  )
  puts response
rescue StandardError => error
  puts "Error: #{error.message}"
end
```

```go
package main

import (
	"fmt"
	"github.com/carsxe/carsxe-go-package"
)

func main() {
	client := carsxe.New("YOUR_API_KEY")
	response := client.SubmitBulkRecallBatch(map[string]interface{}{
		"vins": []string{
			"1HGBH41JXMN109186",
			"5YJSA1E26HF000001",
			"1C4JJXR64PW696340",
		},
		"webhookUrl": "https://your-server.com/webhook",
	})
	fmt.Println(response)
}
```

```java
import io.github.carsxe.CarsXE;
import java.util.List;
import java.util.Map;

public class Main {
    public static void main(String[] args) {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");

        try {
            Map<String, Object> response = carsxe.submitBulkRecallBatch(Map.of(
                "vins", List.of(
                    "1HGBH41JXMN109186",
                    "5YJSA1E26HF000001",
                    "1C4JJXR64PW696340"
                ),
                "webhookUrl", "https://your-server.com/webhook"
            ));
            System.out.println(response);
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
```

```swift
import carsxe

let carsxe = CarsXE(apiKey: "YOUR_API_KEY")

do {
    let response = try carsxe.submitBulkRecallBatch([
        "vins": [
            "1HGBH41JXMN109186",
            "5YJSA1E26HF000001",
            "1C4JJXR64PW696340",
        ],
        "webhookUrl": "https://your-server.com/webhook",
    ])
    print(response)
} catch {
    print("Error: \(error)")
}
```

```csharp
using carsxe;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");

        try
        {
            var response = await carsxe.SubmitBulkRecallBatch(new Dictionary<string, object>
            {
                { "vins", new[] {
                    "1HGBH41JXMN109186",
                    "5YJSA1E26HF000001",
                    "1C4JJXR64PW696340",
                }},
                { "webhookUrl", "https://your-server.com/webhook" },
            });
            Console.WriteLine(response);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
```

```bash {{ title: "Response (202 Accepted)" }}
{
  "success": true,
  "data": {
    "batchId": "brb_mnablbn7_wvbaqv",
    "status": "uploading",
    "totalVins": 3,
    "processedVins": 0,
    "hitCount": 0,
    "hitRate": 0,
    "createdAt": "2026-03-24T10:00:00.000Z",
    "updatedAt": "2026-03-24T10:00:00.000Z"
  },
  "message": "Batch submitted and queued for processing. Poll the status endpoint or wait for webhook notification."
}
```

</CodeGroup>

#### Submit with a CSV URL

```bash
# Google Sheets sharing link (auto-converted to CSV export)
curl -X POST "https://api.carsxe.com/v1/recalls-batch/submit?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "csvUrl": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit"
  }'
```

#### Submit response fields

Successful submission returns **HTTP 202** with:

<Properties>
  <Property name="success" type="boolean">
    `true` when the batch was accepted.
  </Property>
  <Property name="data.batchId" type="string">
    Unique identifier for your batch. Use this for status, results, and download.
  </Property>
  <Property name="data.status" type="string">
    `uploading` (batch being prepared), `processing` (recall check in progress), or `completed` if all VINs were satisfied from cache.
  </Property>
  <Property name="data.totalVins" type="number">
    Number of unique VINs in the batch (after deduplication).
  </Property>
  <Property name="data.processedVins" type="number">
    VINs already reflected in this response (e.g. cache hits); increases again when the batch completes.
  </Property>
  <Property name="data.hitCount" type="number">
    Count of VINs with at least one **safety** recall (aligned with `hasRecalls` on results).
  </Property>
  <Property name="data.hitRate" type="number">
    Percentage `(hitCount / totalVins) × 100` when processing is done; may be `0` on the initial 202 until completion.
  </Property>
  <Property name="data.createdAt" type="string">
    ISO 8601 timestamp when the batch was created.
  </Property>
  <Property name="data.updatedAt" type="string">
    ISO 8601 timestamp of the last job update.
  </Property>
</Properties>

### Step 2: Check status

Poll until the batch reaches a terminal state. Recommended interval: every 30–60 seconds while `uploading` or `processing`.

| Status | Description |
|---|---|
| `pending` | Reserved for future use; batches from this API typically start as `uploading` or `completed` |
| `uploading` | Batch accepted; CarsXE is preparing it for processing |
| `processing` | Recall check in progress |
| `completed` | All VINs processed; results are ready |
| `partial` | Results ready, but some VINs remain unresolved (`processedVins < totalVins`). JSON results still include those VINs with `noPartnerData: true`. Treat as complete for retrieval. |
| `failed` | Processing failed; see `errorMessage` |

<CodeGroup title="Check batch status" tag="GET" label="/v1/recalls-batch/status">

```bash
curl -G "https://api.carsxe.com/v1/recalls-batch/status" \
  -d key=YOUR_API_KEY \
  -d batchId=brb_mnablbn7_wvbaqv
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");

try {
  const status = await carsxe.getBulkRecallBatchStatus("brb_mnablbn7_wvbaqv");
  console.log(status.data?.status);
  console.log(`${status.data?.processedVins}/${status.data?.totalVins}`);
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

async def main():
    async with CarsXE(api_key="YOUR_API_KEY") as carsxe:
        status = await carsxe.get_bulk_recall_batch_status("brb_mnablbn7_wvbaqv")
        print(status.data.status)
        print(f"{status.data.processed_vins}/{status.data.total_vins}")

asyncio.run(main())
```

```bash {{ title: "Response" }}
{
  "success": true,
  "data": {
    "batchId": "brb_mnablbn7_wvbaqv",
    "numericBatchId": 200426,
    "status": "completed",
    "totalVins": 3,
    "processedVins": 3,
    "hitCount": 2,
    "hitRate": 66.67,
    "createdAt": "2026-03-24T10:00:00.000Z",
    "updatedAt": "2026-03-24T10:16:43.000Z",
    "completedAt": "2026-03-24T10:16:43.000Z",
    "errorMessage": null
  }
}
```

</CodeGroup>

#### Status response fields

<Properties>
  <Property name="data.batchId" type="string">
    The batch identifier.
  </Property>
  <Property name="data.numericBatchId" type="number">
    Optional numeric correlation id assigned when results are finalized.
  </Property>
  <Property name="data.status" type="string">
    Current processing status (see table above).
  </Property>
  <Property name="data.totalVins" type="number">
    Total VINs submitted in this batch.
  </Property>
  <Property name="data.processedVins" type="number">
    Number of VINs with resolved results. Excludes rows marked `noPartnerData: true`; confirmed results with zero recalls still count as processed.
  </Property>
  <Property name="data.hitCount" type="number">
    VINs with at least one **safety** recall.
  </Property>
  <Property name="data.hitRate" type="number">
    Percentage of submitted VINs with a confirmed safety recall hit: `(hitCount / totalVins) × 100` (0–100, two decimal places).
  </Property>
  <Property name="data.completedAt" type="string">
    ISO 8601 timestamp when processing finished (omitted while in progress).
  </Property>
  <Property name="data.errorMessage" type="string">
    Error details if status is `failed`.
  </Property>
</Properties>

### Step 3: Retrieve results

Once status is `completed` or `partial`, fetch full recall rows as JSON or download CSV.

<CodeGroup title="Get results (JSON)" tag="GET" label="/v1/recalls-batch/results">

```bash
curl -G "https://api.carsxe.com/v1/recalls-batch/results" \
  -d key=YOUR_API_KEY \
  -d batchId=brb_mnablbn7_wvbaqv
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");

try {
  const results = await carsxe.getBulkRecallBatchResults("brb_mnablbn7_wvbaqv");

  for (const result of results.data?.results ?? []) {
    console.log(`${result.vin}: ${result.recallCount} rows`);
    if (result.hasRecalls) {
      for (const recall of result.recalls) {
        console.log(
          `  - ${recall.recallNhtsaNumber ?? recall.recallOemNumber}: ${recall.recallTitle}`,
        );
      }
    }
  }
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

async def main():
    async with CarsXE(api_key="YOUR_API_KEY") as carsxe:
        results = await carsxe.get_bulk_recall_batch_results("brb_mnablbn7_wvbaqv")

        for result in results.data["results"]:
            print(f"{result.vin}: {result.recall_count} rows")
            if result.has_recalls:
                for recall in result.recalls:
                    rid = recall.recall_nhtsa_number or recall.recall_oem_number
                    print(f"  - {rid}: {recall.recall_title}")

asyncio.run(main())
```

```bash {{ title: "Response (illustrative)" }}
{
  "success": true,
  "data": {
    "job": {
      "batchId": "brb_mnablbn7_wvbaqv",
      "numericBatchId": 200426,
      "status": "completed",
      "totalVins": 3,
      "processedVins": 3,
      "hitCount": 2,
      "hitRate": 66.67,
      "createdAt": "2026-03-24T10:00:00.000Z",
      "completedAt": "2026-03-24T10:16:43.000Z"
    },
    "results": [
      {
        "vin": "1HGBH41JXMN109186",
        "hasRecalls": true,
        "recallCount": 1,
        "recalls": [
          {
            "recallNhtsaNumber": "20V123000",
            "vehicleMake": "Honda",
            "recallTitle": "Passenger frontal air bag inflator",
            "recallDescription": "Takata front passenger air bag inflator may rupture.",
            "recallRiskDescription": "Rupture may cause injury from metal fragments.",
            "recallRemedyDescription": "Dealers will replace the inflator, free of charge.",
            "recallType": "Safety",
            "recallStatus": "Open",
            "recallIssueDate": "2020-03-15",
            "isRemedied": false
          }
        ]
      },
      {
        "vin": "5YJSA1E26HF000001",
        "hasRecalls": false,
        "recallCount": 0,
        "recalls": []
      }
    ]
  }
}
```

</CodeGroup>

#### Results shape

Each VIN has `vin`, `hasRecalls` (`true` if there is at least one **safety** recall), `recallCount`, and `recalls` — an array of **sparse** camelCase objects:

- Only **non-empty** string fields and booleans are included per recall.
- Dealer and batch metadata (`dealerName`, `dealerCode`, batch name/date fields) are **not** exposed in JSON.

Common keys when present: `recallNhtsaNumber`, `recallOemNumber`, `recallTitle`, `recallDescription`, `recallRiskDescription`, `recallRemedyDescription`, `recallType`, `recallState`, `recallStatus`, `recallIssueDate`, `severityCode`, `vehicleYear`, `vehicleMake`, `vehicleModel`, `isRemedied`.

#### CSV download

`GET /v1/recalls-batch/download` with the same `key` and `batchId`. Returns `text/csv` with a `Content-Disposition` filename. SDKs also expose a download URL helper (`getBulkRecallBatchDownloadUrl` / `get_bulk_recall_batch_download_url`).

```bash
curl -G "https://api.carsxe.com/v1/recalls-batch/download" \
  -d key=YOUR_API_KEY \
  -d batchId=brb_mnablbn7_wvbaqv \
  -o recalls_brb_mnablbn7_wvbaqv.csv
```

#### Agentic payment access

x402 callers can submit a batch without a CarsXE API key by sending only the JSON `vins` array. The payment requirement quotes the current `bulk_recall_batch` starter price multiplied by the number of unique, valid VINs. Inline CSV and `csvUrl` submissions still require API-key authentication.

After payment, the `202` response includes `data.batchToken`. Store it securely and send it on every follow-up request; polling, JSON results, and CSV download are included in the original batch payment.

```bash
curl -G "https://api.carsxe.com/v1/recalls-batch/results" \
  -d batchId=brb_mnablbn7_wvbaqv \
  -H "X-CarsXE-Batch-Token: <batch-token>"
```

The token is scoped to one batch, is not included in webhook payloads, and remains valid until the batch job is deleted.

### Webhook notifications

If you pass `webhookUrl` on submit, CarsXE sends an **HTTPS POST** with `Content-Type: application/json` when the batch reaches a terminal state (`completed` or `partial`). Redirects are not followed. Respond quickly — the request times out on CarsXE’s side after about **30 seconds**.

```json
{
  "event": "bulk_recall_batch_complete",
  "batchId": "brb_mnablbn7_wvbaqv",
  "status": "completed",
  "totalVins": 100,
  "processedVins": 100,
  "hitCount": 25,
  "hitRate": 25,
  "downloadUrl": "https://api.carsxe.com/v1/recalls-batch/download?key=…&batchId=…",
  "timestamp": "2026-03-24T10:16:43.000Z"
}
```

The `downloadUrl` includes your API key in the query string so you can fetch the CSV without assembling the URL. Your API key is **not** repeated as a separate JSON field.

### Complete example: submit, poll, and retrieve

<CodeGroup title="Full workflow">

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");

const submitResponse = await carsxe.submitBulkRecallBatch({
  vins: [
    "1HGBH41JXMN109186",
    "5YJSA1E26HF000001",
    "1C4JJXR64PW696340",
  ],
});
const batchId = submitResponse.data?.batchId;
if (!batchId) throw new Error("No batchId");
console.log(`Batch submitted: ${batchId}`);

let status;
do {
  await new Promise((r) => setTimeout(r, 30_000));
  status = await carsxe.getBulkRecallBatchStatus(batchId);
  console.log(`Status: ${status.data?.status}`);
} while (
  status.data?.status === "processing" ||
  status.data?.status === "uploading"
);

if (status.data?.status === "completed" || status.data?.status === "partial") {
  const results = await carsxe.getBulkRecallBatchResults(batchId);
  console.log(`Processed: ${results.data?.job.processedVins} VINs`);
  console.log(`Safety recall hits: ${results.data?.job.hitCount}`);

  for (const result of results.data?.results ?? []) {
    if (result.hasRecalls) {
      console.log(`${result.vin}: ${result.recallCount} recall row(s)`);
    }
  }
}
```

```python
import asyncio
from carsxe_api import CarsXE

async def main():
    async with CarsXE(api_key="YOUR_API_KEY") as carsxe:
        submit = await carsxe.submit_bulk_recall_batch(
            vins=[
                "1HGBH41JXMN109186",
                "5YJSA1E26HF000001",
                "1C4JJXR64PW696340",
            ],
        )
        batch_id = submit.data.batch_id
        print(f"Batch submitted: {batch_id}")

        while True:
            await asyncio.sleep(30)
            status = await carsxe.get_bulk_recall_batch_status(batch_id)
            print(f"Status: {status.data.status}")
            if status.data.status not in ("processing", "uploading"):
                break

        if status.data.status in ("completed", "partial"):
            results = await carsxe.get_bulk_recall_batch_results(batch_id)
            job = results.data["job"]
            print(f"Processed: {job.processed_vins} VINs")
            print(f"Safety recall hits: {job.hit_count}")

            for result in results.data["results"]:
                if result.has_recalls:
                    print(f"{result.vin}: {result.recall_count} recall row(s)")

asyncio.run(main())
```

</CodeGroup>

## Errors

See the [Errors guide](/docs/guides/errors) for general error handling guidance.

Recalls by VIN:

| Status | When it happens |
|---|---|
| `400` | Missing VIN, or VIN is not exactly 17 characters |
| `401` | Missing or invalid API key |
| `404` | No recall data found for this VIN |
| `429` | Usage limit exceeded |
| `500` | Internal server error |

Recalls by YMM:

| Status | When it happens |
|---|---|
| `400` | Missing or invalid `year`, `make`, or `model` |
| `401` | Missing or invalid API key |
| `404` | Feature not enabled on your plan |
| `429` | Usage limit exceeded |
| `500` | Internal server error |

Recall Campaign:

| Status | When it happens |
|---|---|
| `400` | `make` or `code` is missing, empty, or too long (`Missing or invalid make or campaign code`) |
| `401` | Missing or invalid API key |
| `404` | No campaign for this make and code (`No campaign found for this make and campaign code`). Not billed |
| `429` | Usage limit exceeded |
| `500` | Internal server error |

Recalls Batch:

| Status | When it happens |
|---|---|
| `400` | Missing VINs, too many VINs (>10,000), invalid VIN, invalid/disallowed/oversized `csvUrl`, or invalid `webhookUrl` |
| `401` | Missing or invalid API key, or inactive account |
| `404` | Batch not found or you don't have access |
| `405` | Submit called with a method other than POST |
| `409` | Batch still processing (results/download only) |
| `429` | Usage limit exceeded |
| `500` | Internal storage or batch handoff error — retry later |
| `502` | Server could not fetch the CSV from `csvUrl` |

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
