# Fleet VIN Cost & Recall Audit (`howmuchworks/fleet-vin-audit`) Actor

Turn a list of VINs into a fleet report: decoded vehicle, EPA fuel economy match, annual fuel or electricity cost at your prices, and NHTSA recall campaigns for each model and year, plus fleet totals.

- **URL**: https://apify.com/howmuchworks/fleet-vin-audit.md
- **Developed by:** [howmuchworks tools](https://apify.com/howmuchworks) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 vehicle auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Fleet Fuel Cost & Model-Level Recall Screener (VIN decode)

> **Recall scope, read first.** Recall results are **model/year-level NHTSA campaigns**: campaigns filed for a vehicle's make, model and model year. This is **not a VIN-specific open-recall or repair-status check**. It cannot tell you whether a given vehicle is included in a campaign or whether its repair was done, and "no campaigns found" is not a clearance. For a specific vehicle, use [nhtsa.gov/recalls](https://www.nhtsa.gov/recalls) or the manufacturer. NHTSA's VIN decoder (vPIC) is used only to decode VINs; the NHTSA safety API is not used for bulk VIN recall lookups.
>
> **Your data.** Full VINs are sent to NHTSA vPIC, a U.S. government service, for decoding. Name, plate and driver columns are ignored. Do not include personal data.

**Paste a list of VINs, get back a costed fleet report: what each vehicle is, its EPA fuel economy, what it costs to fuel or charge per year at your prices, and which NHTSA recall campaigns were filed for its model and year. Plus fleet totals.**

A plain VIN decoder tells you that a VIN is a 2020 Ford F-150. This Actor goes on to answer the questions a fleet owner actually has: *which EPA-rated configuration is it, what will it cost us in fuel this year, and are there recall campaigns we should check?* It joins three official U.S. government sources, shows its matching work, and says plainly when the data cannot settle a question. When it cannot settle one, the vehicle is returned free.

### Who it is for

- **Fleet managers and operations teams** budgeting fuel and electricity, comparing gasoline, hybrid and electric units, or screening a fleet for recall campaigns.
- **Leasing, rental and car-subscription companies** pricing running costs per unit.
- **Commercial remarketing, dealer and fleet-disposal teams** screening a batch of fleet VINs at model/year level.
- **Insurance, procurement and total-cost-of-ownership analysts** who need structured, sourced numbers.
- **AI agents** (via the Apify API or MCP) working for a business that need a vehicle's configuration, energy cost and model-level recall campaigns with citations and an explicit confidence signal.

It is built for commercial fleet operations and for the internal business use under which Apify's [Standard Actor Contract](https://docs.apify.com/legal/standard-actor-contract) licenses Actors. It is not a consumer vehicle-history or recall check; private buyers and owners should check a vehicle's VIN at [nhtsa.gov/recalls](https://www.nhtsa.gov/recalls).

### What you get

For **each input row**, one dataset record with:

- **Decoded vehicle** from NHTSA vPIC: year, make, model, trim, series, body, engine (cylinders, litres, turbo), fuel type, electrification level, transmission, drive type, weight class, plant country.
- **EPA fuel economy match** from fueleconomy.gov: the EPA configuration used (with its EPA id and a link to its fueleconomy.gov page), its rating with the unit (MPG, kWh per 100 miles, or MPGe and miles per kg for natural gas and hydrogen), and **every close candidate configuration with its score, the reasons for the score and its own annual cost**. When the VIN does not pin down one configuration (for example Model 3 Standard Range vs Standard Range Plus), the record is marked `ambiguous` and gives the cost range. Configurations whose powertrain contradicts the decoded one (a plug-in hybrid for a regular hybrid, a diesel for a gasoline truck) are rejected, never priced.
- **Annual energy cost** at your annual miles and the price of each vehicle's own fuel grade (regular, midgrade, premium, diesel, electricity): gallons and/or kWh per year, USD per year, USD per mile, and the price basis.
- **NHTSA recall campaigns** for the vehicle's make, model and model year (not VIN-specific): campaign number, type (vehicle, equipment, tire, child seat), date, component, summary, risk, remedy, and "do not drive" / "park outside" flags as NHTSA marks them. Other model names NHTSA files recalls under for the same make and year (such as PRIUS PRIME next to PRIUS) are listed.
- **Recall finding**: one dated sentence per vehicle (`recallFinding`, also `recalls.finding`). Campaigns found read "N campaigns found in NHTSA data checked on <date> for <year make model>"; zero reads "No campaigns found in NHTSA data checked on <date> for <year make model>. This is not a clearance of this vehicle." Inconclusive, incomplete and upstream-error lookups each say so and that no conclusion can be drawn. No status ever reads "clean" or "safe".
- **Status and billing**: `status` (`audited`, `partial`, `invalidVin`, `duplicate`, `notDecoded`, `error`, `skippedChargeLimit`), `charged` (true only when the platform confirmed the charge) and `chargeStatus`.

Plus **one fleet summary record** (also saved as `SUMMARY` in the key-value store): vehicles audited, partial and charged, invalid VINs with the reason, total annual miles, **total annual energy cost** (with a range when some matches are ambiguous), cost by powertrain, recall campaign counts by category, the prices used, and the **coverage** of each total (how many vehicles it includes). Partial rows count toward the totals for whatever they delivered.

### Input

| Field | What it is | Default |
|---|---|---|
| `vins` | One vehicle per line: `VIN`, or `VIN,annual miles,label` | - |
| `csvText` | A pasted CSV. With a header, columns are found by name: `vin`; an annual distance column whose name says miles or km (km is converted, 1 mile = 1.609344 km; odometer, MPG and cost columns are never used); a fleet label column (label, unit, asset, fleet, vehicle id, stock, ref, id, tag or depot). Without a header: VIN, miles, label. A CSV with broken quoting is rejected before anything is processed or charged | - |
| `csvUrl` | Public http(s) link to the same kind of CSV (for example a published Google Sheet CSV), up to 5 MB. Private, local and reserved network addresses are refused, on every redirect too | - |
| `useSampleFleet` | When `vins`, `csvText` and `csvUrl` are all empty, run five public sample VINs **free of charge**. Ignored as soon as you give any VIN or CSV | true |
| `defaultAnnualMiles` | Miles per year for rows without their own figure | 15,000 (the mileage EPA uses on its labels) |
| `fuelPricePerGallon` | Regular gasoline, USD per gallon | fueleconomy.gov's current national price |
| `electricityPricePerKwh` | Electricity, USD per kWh | fueleconomy.gov's current national price |
| `midgradeFuelPricePerGallon`, `premiumFuelPricePerGallon`, `dieselPricePerGallon` | Optional, for vehicles EPA lists on those fuels | fueleconomy.gov's current national price |
| `maxVehicles` | Rows beyond this are not processed or charged | 1,000 |
| `includeRecallText` | Include recall summary, risk and remedy text | true |

Every price you leave empty is taken from the national prices fueleconomy.gov currently uses for its own cost figures, fetched at run time only if a vehicle needs it, and each record says which price it used and where it came from. If a needed price is neither given nor available, that vehicle gets no cost and is not charged; one fuel grade's price is never used for another.

#### Input example (the run shown below)

```json
{
  "vins": [
    "1HGCM82633A004352,12000,Sales coupe",
    "5YJ3E1EA0KF190067,15000,Pool EV",
    "JTDKBRFU0J3057901,22000,Courier hybrid",
    "1FTNF1C40LKE16793,18000,Site pickup 2WD",
    "1FTEW1E55LFA20762,18000,Site pickup 4x4",
    "1HGCM82643A004352,12000,Typo row"
  ],
  "defaultAnnualMiles": 15000,
  "fuelPricePerGallon": 3.1,
  "electricityPricePerKwh": 0.17,
  "premiumFuelPricePerGallon": 3.95,
  "dieselPricePerGallon": 3.7
}
```

The five VINs are public sample VINs. The last row is the first one with a typo in the check digit, to show how invalid VINs are reported.

### Output: a real run (26 November 2026)

The run took about 6 seconds and 75 requests to the three sources (run locally with the Apify SDK's pay-per-event test mode, so the charges shown were simulated, not billed). Fleet overview (the dataset's table view):

| Row | Label | VIN | Vehicle | EPA match | EPA configuration used | Rating | Miles/yr | Energy cost/yr | Vehicle recall campaigns (model-level) | Charged |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Sales coupe | 1HGCM82633A004352 | 2003 Honda Accord EX-V6 | matched | 2003 Honda Accord, Auto 5-spd, 6 cyl, 3.0 L | 22 MPG | 12,000 | $1,690.91 | 13 (+11 equipment) | yes |
| 2 | Pool EV | 5YJ3E1EA0KF190067 | 2019 Tesla Model 3 | ambiguous | 2019 Tesla Model 3 Standard Range, Auto (A1) | 25.69 kWh/100 mi | 15,000 | $655.14 (range $647.40-$700.89) | 22 | yes |
| 3 | Courier hybrid | JTDKBRFU0J3057901 | 2018 Toyota Prius One/Two | ambiguous | 2018 Toyota Prius, Auto (variable gear ratios), 4 cyl, 1.8 L | 52 MPG | 22,000 | $1,311.54 (range $1,217.86-$1,311.54) | 1 | yes |
| 4 | Site pickup 2WD | 1FTNF1C40LKE16793 | 2020 Ford F-150 | matched (2 configurations, same rating) | 2020 Ford F150 Pickup 2WD, Auto (S10), 6 cyl, 3.5 L, Turbo | 19 MPG | 18,000 | $2,936.84 | 11 | yes |
| 5 | Site pickup 4x4 | 1FTEW1E55LFA20762 | 2020 Ford F-150 | matched | 2020 Ford F150 Pickup 4WD FFV, Auto (S10), 8 cyl, 5.0 L | 18 MPG | 18,000 | $3,100.00 | 11 | yes |
| 6 | Typo row | 1HGCM82643A004352 | invalid VIN: check digit should be 3 but is 4 | - | - | - | - | - | - | no (free) |

Why two rows are `ambiguous`: vPIC says only "Model 3, single motor, standard" for the Tesla, and EPA rates Standard Range, Standard Range Plus, Mid Range and Long Range differently; for the Prius, vPIC decodes the trim as "One/Two", which does not separate the regular Prius from the Prius Eco ("Two Eco") that EPA rates separately. In both cases the record lists every close candidate with its own cost, and the fleet total carries the range. Row 4 is `matched` although two EPA configurations fit (the F150 Pickup 2WD and the F150 Pickup 2WD Limited, EPA ids 42171 and 42172): both are rated 19 MPG, so the cost is the same whichever it is.

#### One vehicle record (row 3, exactly as returned)

```json
{
  "recordType": "vehicle",
  "row": 3,
  "label": "Courier hybrid",
  "vin": "JTDKBRFU0J3057901",
  "status": "audited",
  "charged": true,
  "chargeStatus": "charged",
  "year": 2018,
  "make": "TOYOTA",
  "model": "Prius",
  "trim": "One/Two",
  "powertrain": "HEV",
  "fuelEconomyMatch": "ambiguous",
  "epaVehicle": "2018 Toyota Prius, Auto (variable gear ratios), 4 cyl, 1.8 L",
  "efficiency": "52 MPG",
  "combinedMpg": 52,
  "kWhPer100Miles": null,
  "annualEnergyCostUsd": 1311.54,
  "recallLookup": "ok",
  "recallFinding": "1 campaign (1 vehicle) found in NHTSA data checked on 2026-11-26 for 2018 TOYOTA Prius. Whether this specific vehicle is included, and whether its repair was done, is not checked. This is a make/model/year campaign screen, not a VIN-specific open-recall or repair-status check: check this VIN at https://www.nhtsa.gov/recalls or with the manufacturer.",
  "vehicleRecallCampaigns": 1,
  "equipmentRecallCampaigns": 0,
  "otherRecallCampaigns": 0,
  "doNotDriveCampaigns": 0,
  "annualMiles": 22000,
  "annualMilesSource": "row",
  "vehicle": {
    "errorCodes": [
      "0"
    ],
    "decoderNotes": [],
    "year": 2018,
    "make": "TOYOTA",
    "model": "Prius",
    "trim": "One/Two",
    "series": "ZVW50L/ZVW51L",
    "bodyClass": "Hatchback/Liftback/Notchback",
    "vehicleType": "PASSENGER CAR",
    "gvwrClass": "Class 1B: 3,001 - 4,000 lb (1,360 - 1,814 kg)",
    "lightDuty": true,
    "driveType": "4x2",
    "engine": "1.8 L 4-cylinder (2ZR-FXE,1NM)",
    "engineCylinders": 4,
    "displacementL": 1.8,
    "turbo": null,
    "supercharged": null,
    "fuelTypePrimary": "Gasoline",
    "fuelTypeSecondary": "Electric",
    "electrificationLevel": "Strong HEV (Hybrid Electric Vehicle)",
    "otherEngineInfo": "PORT, Sequential MPI",
    "transmission": "continuously variable transmission (cvt)",
    "manufacturer": "TOYOTA MOTOR CORPORATION",
    "plantCountry": "JAPAN",
    "powertrain": "HEV"
  },
  "fuelEconomy": {
    "status": "ambiguous",
    "note": "2 EPA configurations fit the decoded data about equally well and rate differently. The best-scoring one is used. Pick the right one from the candidates to refine the figure.",
    "matchedOn": "Prius",
    "closeCandidates": 2,
    "rejectedConfigurations": 1,
    "selected": {
      "epaId": "39752",
      "epaVehicle": "2018 Toyota Prius",
      "configuration": "Auto (variable gear ratios), 4 cyl, 1.8 L",
      "drive": "Front-Wheel Drive",
      "fuelType": "Regular Gasoline",
      "efficiency": "52 MPG",
      "combinedMpg": 52,
      "combinedMpge": null,
      "milesPerKg": null,
      "kWhPer100Miles": null,
      "utilityFactor": null,
      "annualEnergyCostUsd": 1311.54,
      "matchScore": 10,
      "matchReasons": [
        "+3 powertrain HEV",
        "+2 4 cylinders",
        "+2 1.8 L",
        "+2 drive front",
        "+1 cvt transmission"
      ],
      "epaUrl": "https://www.fueleconomy.gov/feg/noframes/39752.shtml"
    },
    "candidates": [
      {
        "epaId": "39752",
        "epaVehicle": "2018 Toyota Prius",
        "configuration": "Auto (variable gear ratios), 4 cyl, 1.8 L",
        "drive": "Front-Wheel Drive",
        "fuelType": "Regular Gasoline",
        "efficiency": "52 MPG",
        "combinedMpg": 52,
        "combinedMpge": null,
        "milesPerKg": null,
        "kWhPer100Miles": null,
        "utilityFactor": null,
        "annualEnergyCostUsd": 1311.54,
        "matchScore": 10,
        "matchReasons": [
          "+3 powertrain HEV",
          "+2 4 cylinders",
          "+2 1.8 L",
          "+2 drive front",
          "+1 cvt transmission"
        ],
        "epaUrl": "https://www.fueleconomy.gov/feg/noframes/39752.shtml"
      },
      {
        "epaId": "39753",
        "epaVehicle": "2018 Toyota Prius Eco",
        "configuration": "Auto (variable gear ratios), 4 cyl, 1.8 L",
        "drive": "Front-Wheel Drive",
        "fuelType": "Regular Gasoline",
        "efficiency": "56 MPG",
        "combinedMpg": 56,
        "combinedMpge": null,
        "milesPerKg": null,
        "kWhPer100Miles": null,
        "utilityFactor": null,
        "annualEnergyCostUsd": 1217.86,
        "matchScore": 9.5,
        "matchReasons": [
          "+3 powertrain HEV",
          "+2 4 cylinders",
          "+2 1.8 L",
          "+2 drive front",
          "+1 cvt transmission",
          "-0.5 name words eco not in the decoded trim"
        ],
        "epaUrl": "https://www.fueleconomy.gov/feg/noframes/39753.shtml"
      },
      {
        "epaId": "39037",
        "epaVehicle": "2018 Toyota Prius c",
        "configuration": "Auto (variable gear ratios), 4 cyl, 1.5 L",
        "drive": "Front-Wheel Drive",
        "fuelType": "Regular Gasoline",
        "efficiency": "46 MPG",
        "combinedMpg": 46,
        "combinedMpge": null,
        "milesPerKg": null,
        "kWhPer100Miles": null,
        "utilityFactor": null,
        "annualEnergyCostUsd": 1482.61,
        "matchScore": 4.5,
        "matchReasons": [
          "+3 powertrain HEV",
          "+2 4 cylinders",
          "-3 1.5 L vs decoded 1.8 L",
          "+2 drive front",
          "+1 cvt transmission",
          "-0.5 name words c not in the decoded trim"
        ],
        "epaUrl": "https://www.fueleconomy.gov/feg/noframes/39037.shtml"
      }
    ]
  },
  "energyCost": {
    "annualEnergyCostUsd": 1311.54,
    "annualEnergyCostRangeUsd": {
      "min": 1217.86,
      "max": 1311.54
    },
    "gallonsPerYear": 423.08,
    "kWhPerYear": 0,
    "costPerMileUsd": 0.0596,
    "priceBasis": "regular gasoline at $3.1/gal"
  },
  "recalls": {
    "status": "ok",
    "finding": "1 campaign (1 vehicle) found in NHTSA data checked on 2026-11-26 for 2018 TOYOTA Prius. Whether this specific vehicle is included, and whether its repair was done, is not checked. This is a make/model/year campaign screen, not a VIN-specific open-recall or repair-status check: check this VIN at https://www.nhtsa.gov/recalls or with the manufacturer.",
    "checkedOn": "2026-11-26",
    "query": {
      "make": "TOYOTA",
      "model": "Prius",
      "modelYear": 2018
    },
    "campaignCount": 1,
    "vehicleCampaignCount": 1,
    "equipmentCampaignCount": 0,
    "campaignCountsByType": {
      "vehicle": 1,
      "equipment": 0,
      "tire": 0,
      "childSeat": 0,
      "other": 0
    },
    "doNotDriveCampaigns": 0,
    "parkOutsideCampaigns": 0,
    "note": "Model-level campaigns filed for this make, model and model year. Equipment campaigns (letter E in the campaign number) cover replacement or aftermarket parts and apply only if that part is fitted. A campaign may cover only some vehicles (one engine, plant or build-date range), and this list does not show whether this specific vehicle is included or whether its repair was done. Check each VIN at https://www.nhtsa.gov/recalls or with the manufacturer.",
    "relatedModelNames": [
      "PRIUS C",
      "PRIUS PRIME",
      "PRIUS V"
    ],
    "relatedNote": "NHTSA's 2018 TOYOTA recall model list also has PRIUS C, PRIUS PRIME, PRIUS V. Those names were not queried; if your vehicle is filed under one of them, check it at https://www.nhtsa.gov/recalls.",
    "campaigns": [
      {
        "campaignNumber": "18V579000",
        "campaignType": "vehicle",
        "reportReceivedDate": "2018-09-05",
        "component": "ELECTRICAL SYSTEM:WIRING",
        "summary": "Toyota Motor Engineering & Manufacturing (Toyota) is recalling certain 2016-2018 Toyota Prius vehicles.  A portion of the engine wire harness connected to the hybrid Power Control Unit (PCU), could contact the cover at this connection and wear, causing an electrical short circuit.",
        "consequence": "An electrical short can increase the risk of a fire.",
        "remedy": "Toyota will notify owners, and dealers will inspect the engine wire harness assembly and replace it if damage is found.  A protective sleeve or protective tape will be included to prevent any future damage.  These repairs will be performed free of charge.  The recall began October 30, 2018.  Owners may contact Toyota customer service at 1-888-270-9371.  Toyota's number for this recall is J0T.",
        "manufacturer": "Toyota Motor Engineering & Manufacturing",
        "doNotDrive": false,
        "parkOutside": false,
        "overTheAirUpdate": false
      }
    ]
  }
}
```

#### The fleet summary record (exactly as returned)

```json
{
  "recordType": "fleetSummary",
  "generatedAt": "2026-11-26T14:18:31.288Z",
  "vehiclesInInput": 6,
  "vehiclesAudited": 5,
  "vehiclesPartial": 0,
  "vehiclesCharged": 5,
  "billing": "Charged vehicles are counted from the platform's charge results (5 confirmed).",
  "invalidVins": [
    {
      "row": 6,
      "vin": "1HGCM82643A004352",
      "label": "Typo row",
      "reason": "Check digit (character 9) should be 3 but is 4: the VIN probably has a typo."
    }
  ],
  "notAudited": [],
  "duplicates": 0,
  "skippedChargeLimit": 0,
  "notProcessedOverMaxVehicles": 0,
  "annualMiles": {
    "vehicles": 5,
    "total": 85000,
    "note": "All decoded vehicles, whether or not they have a cost estimate."
  },
  "energy": {
    "vehiclesWithCostEstimate": 5,
    "vehiclesWithoutCostEstimate": 0,
    "coverage": "5 of 5 decoded vehicles have a cost estimate (audited and partial rows alike).",
    "ambiguousMatches": 2,
    "totalAnnualMiles": 85000,
    "totalAnnualEnergyCostUsd": 9694.43,
    "totalAnnualEnergyCostRangeUsd": {
      "min": 9593.01,
      "max": 9740.18
    },
    "byPowertrain": {
      "GAS": {
        "vehicles": 3,
        "annualEnergyCostUsd": 7727.75
      },
      "EV": {
        "vehicles": 1,
        "annualEnergyCostUsd": 655.14
      },
      "HEV": {
        "vehicles": 1,
        "annualEnergyCostUsd": 1311.54
      }
    },
    "prices": {
      "regularGasolinePerGallon": 3.1,
      "midgradeGasolinePerGallon": null,
      "premiumGasolinePerGallon": 3.95,
      "dieselPerGallon": 3.7,
      "electricityPerKwh": 0.17,
      "sources": {
        "regularPerGallon": "input",
        "premiumPerGallon": "input",
        "dieselPerGallon": "input",
        "electricityPerKwh": "input"
      },
      "missing": {
        "midgradePerGallon": "no price was given"
      }
    },
    "method": "Sum of the per-vehicle estimates: EPA combined (55% city / 45% highway) ratings x annual miles x the price of each vehicle's own fuel grade. Real-world use varies with driving, load, weather and age."
  },
  "recalls": {
    "vehiclesChecked": 5,
    "vehiclesNotChecked": 0,
    "coverage": "5 of 5 decoded vehicles have a complete recall lookup.",
    "vehiclesWithModelLevelCampaigns": 5,
    "vehiclesWithEquipmentCampaigns": 1,
    "vehiclesWithTireCampaigns": 0,
    "vehiclesWithChildSeatCampaigns": 0,
    "vehiclesWithOtherCampaigns": 0,
    "uniqueCampaigns": 58,
    "vehiclesWithDoNotDriveCampaigns": 0,
    "vehiclesWithParkOutsideCampaigns": 0,
    "note": "Counts cover vehicles with a complete recall lookup. vehiclesWithModelLevelCampaigns counts vehicles whose make, model and year have at least one vehicle campaign (letter V); equipment (E), tire (T), child-seat (C) and other campaigns are counted separately. It does not show whether a specific vehicle is included in a campaign or whether its repair was done."
  },
  "sources": [
    {
      "name": "NHTSA vPIC (VIN decoding)",
      "url": "https://vpic.nhtsa.dot.gov/api/"
    },
    {
      "name": "EPA / DOE fueleconomy.gov (fuel economy ratings and national fuel prices). Courtesy of FuelEconomy.gov, U.S. Dept. of Energy.",
      "url": "https://www.fueleconomy.gov/feg/ws/"
    },
    {
      "name": "NHTSA recalls API (model-level recall campaigns)",
      "url": "https://www.nhtsa.gov/nhtsa-datasets-and-apis"
    }
  ]
}
```

#### An invalid VIN (free)

```json
{
  "recordType": "vehicle",
  "row": 6,
  "label": "Typo row",
  "vin": "1HGCM82643A004352",
  "status": "invalidVin",
  "charged": false,
  "chargeStatus": "free",
  "error": "Check digit (character 9) should be 3 but is 4: the VIN probably has a typo."
}
```

### Pricing (pay per event)

**Billing is currently paused: runs are free until 2027.** The price below applies once billing resumes.

| Event | Price | When it is charged |
|---|---|---|
| `vehicle-audited` | **$0.004 per vehicle** | Once per VIN with status `audited`: decoded cleanly by NHTSA, an EPA match certain enough to price (with every price it needs), and a recall lookup under a confirmed NHTSA model name. |

**Free:**

- invalid VINs (wrong length, I/O/Q, impossible model-year code, letters in the serial number, failed check digit), and duplicate VINs in the same run;
- VINs NHTSA cannot decode, or that NHTSA's decoder flags as erroneous or corrected;
- `partial` rows, returned with whatever was found and the reason: a decoder warning, an EPA or recall lookup that failed after retries, no EPA configuration that fits with confidence, more close EPA configurations than the run could check, a needed price that is unavailable, or a recall lookup whose NHTSA model name could not be confirmed;
- the free sample fleet, and the fleet summary.

A vehicle EPA objectively does not rate is still charged when it decoded and its recall lookup completed: model years before 1984, and vehicles NHTSA decodes as heavier than 10,000 lb GVWR, buses or motorcycles. You get the decoded vehicle, the recall campaigns and an explicit `notCovered` reason instead of a cost. Natural gas and hydrogen vehicles are charged too: their EPA rating is shown (in MPGe and miles per kg), but no cost is computed.

Examples: 100 vehicles = $0.40; 2,500 vehicles = $10.00. If your run has a maximum charge, the Actor looks up only as many vehicles as the remaining budget can pay for; the rest are listed as `skippedChargeLimit` and are not charged. A maximum charge of $0 audits nothing (invalid and duplicate VINs are still reported). What a record says about billing comes from the platform's charge result, and if the run is restarted by the platform it continues where it stopped without charging any VIN twice.

### How it works

1. **Validate** every VIN locally: 17 characters, no I, O or Q, a valid model-year code in position 10, digits in positions 14 to 17 (13 to 17 for cars and light trucks, checked once the type is decoded) and the check digit (49 CFR 565.15). Invalid VINs are reported with the reason and never sent anywhere.
2. **Decode** with NHTSA vPIC's batch endpoint, up to 50 VINs per request. vPIC error codes are read: codes saying the VIN is wrong or was corrected stop the audit; warnings make the row partial.
3. **Match EPA ratings.** Find the make and the models whose EPA name begins with the decoded model (vPIC "F-150" matches EPA "F150 Pickup 2WD", "F150 Pickup 4WD FFV" and so on), reject configurations whose powertrain contradicts the decoded one, then score the rest on powertrain (gasoline, hybrid, plug-in hybrid, electric, diesel, flex fuel), cylinders, displacement, turbocharger, supercharger, drive and transmission, plus trim words. Full EPA records are fetched until no remaining configuration could come within 1 point of the best. Configurations within 1 point that rate differently (MPG, fuel grade, kWh, utility factor or charge-depleting gasoline use) make the match `ambiguous`; if several tie on top, the least efficient one is priced so a budget errs high, and the cost range is given.
4. **Cost** = annual miles / combined MPG x the price of that fuel grade, or annual miles x kWh per 100 mi / 100 x electricity price. Plug-in hybrids use EPA's utility factor (the share of miles EPA assumes on grid power).
5. **Recalls** from NHTSA's recalls API by make, model and model year. The decoded model is queried first. If it has no campaigns, NHTSA's full recall model list for the make and year is checked: a different NHTSA name is used only when it is confirmed to have campaigns (vPIC "Silverado" with series "1500" is "SILVERADO 1500" at NHTSA); otherwise the lookup is `inconclusive` and the vehicle is free, because zero campaigns could just mean a different name. This is a make/model/year query: the VIN is never sent to the recalls service, and the NHTSA safety API is not used for bulk VIN recall lookups.

Each make/model/year is looked up once per run, so a fleet of 300 identical vans needs one set of EPA and recall lookups, not 300. Requests are rate-limited per source, with retries and backoff on errors, and a source's `Retry-After` is honored; NHTSA's recalls service can take 10-20 seconds on a cold lookup, which the Actor waits for.

### Data sources, terms and attribution

- **NHTSA vPIC** (VIN decoding): [vpic.nhtsa.dot.gov/api](https://vpic.nhtsa.dot.gov/api/). Data as submitted by manufacturers.
- **NHTSA recalls API** (recall campaigns): [NHTSA datasets and APIs](https://www.nhtsa.gov/nhtsa-datasets-and-apis), [NHTSA terms of use](https://www.nhtsa.gov/about-nhtsa/terms-use).
- **fueleconomy.gov web services** (EPA fuel economy ratings and national fuel prices), run by the U.S. Department of Energy with EPA data: [fueleconomy.gov/feg/ws](https://www.fueleconomy.gov/feg/ws/), [disclaimer and copyright status](https://www.fueleconomy.gov/feg/disclaimer.shtml).

Fuel economy data: Courtesy of FuelEconomy.gov, U.S. Dept. of Energy. Vehicle and recall data: National Highway Traffic Safety Administration. This Actor is published by howmuchworks and is not affiliated with or endorsed by NHTSA, EPA or DOE. No images or third-party content are included.

### Your data: what is stored and what is sent

- **Sent to NHTSA vPIC:** the full VINs (valid ones only). vPIC is a U.S. government service run by NHTSA; sending a VIN there is a disclosure to a U.S. recipient. If your VINs can identify a person (for example a vehicle assigned to one driver), make sure you may share them with that service before running, or decode offline. **Sent to fueleconomy.gov and NHTSA's recalls API:** decoded make, model and model year only, never the VIN. Labels and mileage are never sent anywhere.
- **Stored in your run's dataset:** VIN, label, annual miles and the results. CSV columns that name a person or a registration (name, driver, owner, plate, registration, email, phone) are never read; the summary lists the columns that were ignored.
- The Actor does not ask for personal data, but a VIN can be personal data where the person processing it can link it to an owner or driver (Court of Justice of the EU, [case C-319/22](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A62022CJ0319)). Use fleet labels such as unit or asset numbers, not names or plates, in labels. **Do not include personal data** in VIN lists, labels or CSVs.

### What it does NOT tell you

- **Whether a specific vehicle still needs a recall repair.** Campaigns are listed for the make, model and model year. A campaign may cover only some vehicles (one engine, plant or build-date range), and this list does not show whether a given VIN is included or whether its repair was done. Check each VIN at [nhtsa.gov/recalls](https://www.nhtsa.gov/recalls) or with the manufacturer.
- **Recalls filed under other NHTSA model names.** NHTSA sometimes files a model's recalls under body-style names too (for 2020 Ford it lists F-150 REGULAR CAB, F-150 SUPERCAB and others next to F-150). Those names are listed in `relatedModelNames` but not queried.
- **Real-world consumption.** EPA combined ratings assume 55% city and 45% highway driving. Load, towing, idling, climate, tyres and age change real use.
- **The exact trim when the VIN does not encode it.** Many VINs do not distinguish trims EPA rates differently; those come back `ambiguous` with every candidate and a range.
- **Heavy-duty vehicles.** EPA rates passenger cars and light trucks only (generally up to 8,500 lb gross vehicle weight, 10,000 lb for medium-duty passenger vehicles). 3/4-ton and larger pickups, cutaway vans, buses and motorcycles come back `notCovered` (or `noMatch`, free, when the decoded weight does not settle it), with no cost.
- **Vehicles outside North America.** A VIN that fails the North American check digit or serial format is rejected as invalid.
- **Model years before 1984** (no EPA data), and the **cost of natural gas, propane or hydrogen** (not priced; the rating is still shown).
- **Title, accident, theft or ownership history.** None of that is in these sources.

### FAQ

**How accurate is the EPA match?** When vPIC decodes engine, drive and powertrain, the match is usually settled: in the run above the Accord and the 4x4 F-150 matched one EPA configuration each, and the 2WD F-150 matched two that share the same 19 MPG rating, so its cost is exact either way. Every record shows the score and the reasons, so you can check any match in seconds.

**What do I do with an `ambiguous` match?** Use the range for budgeting, or pick the right candidate from `fuelEconomy.candidates` (each has its own annual cost and fueleconomy.gov link).

**Why is a vehicle `partial`, and do I pay for it?** You do not. `partial` means something could not be established with confidence (the `error` field says what); the record still carries whatever was found, and the fleet totals include it with their coverage counts.

**Can I give each vehicle its own mileage?** Yes: `VIN,miles,label` in the list, or an annual miles or km column in the CSV. Rows without one use `defaultAnnualMiles`.

**Do I have to enter prices?** No. Empty prices fall back to the national prices fueleconomy.gov currently uses, and the output names the source and the date. For a budget, your own contract or depot prices are better.

**Why is a recall listed that does not apply to my vehicle?** Recalls are filed per model and year and often cover only part of production. Equipment campaigns (letter E in the campaign number, for example a replacement headlight or pedal sold as a spare part) apply only if that part is fitted. The record keeps them separate from vehicle campaigns.

**Does it handle electric and plug-in hybrid vehicles?** Yes. EVs are priced on kWh per 100 miles; plug-in hybrids on EPA's utility factor split between electricity and gasoline.

**Can I try it without paying?** Yes: billing is paused and runs are free until 2027. After that, run it with no VINs and the five-vehicle sample fleet runs free.

**Is the data current?** Every run queries the live sources; nothing is cached between runs.

**Can an AI agent use it?** Yes. The output is structured JSON with explicit statuses (`audited`, `partial`; `matched`, `ambiguous`, `noMatch`, `notCovered`; recall lookup `ok`, `inconclusive`, `incomplete`, `error`), a dated `recallFinding` sentence that never reads as a clearance, scores, reasons, source links and the "model-level only" caveat in every recall block, so an agent can cite it and know when to ask a follow-up question.

# Actor input Schema

## `vins` (type: `array`):

One vehicle per line: the 17-character VIN, optionally followed by annual miles and a fleet label, separated by commas. Example: 1HGCM82633A004352,12000,Van 7. Full VINs are sent to NHTSA vPIC (a U.S. government service) for decoding. Use fleet labels (unit or asset numbers), not names, plates or other personal data.

## `csvText` (type: `string`):

Paste a CSV instead of (or as well as) the list. With a header row, columns are found by name: a column containing "vin"; an annual distance column whose name says miles or km (km is converted; odometer, MPG and cost columns are never used); and a fleet label column (label, unit, asset, fleet, vehicle id, stock, ref, id, tag or depot). Columns with names, driver, owner, plate, registration, email or phone are never read. Without a header: VIN, annual miles, label. Comma, semicolon or tab delimited; a CSV with broken quoting is rejected before anything is charged.

## `csvUrl` (type: `string`):

Public http(s) link to a CSV in the same format as CSV text (for example a published Google Sheet CSV export). Up to 5 MB. Private, local and reserved network addresses are refused.

## `useSampleFleet` (type: `boolean`):

When VINs, CSV text and CSV URL are all empty, run five public sample VINs free of charge so you can see the output. Ignored as soon as you enter any VIN or CSV: sample vehicles are never added to your own fleet.

## `defaultAnnualMiles` (type: `integer`):

Used for every row that has no annual distance of its own. 15,000 is the mileage EPA uses for the annual fuel cost on its fuel economy labels.

## `fuelPricePerGallon` (type: `number`):

Your price. Empty = the national regular gasoline price fueleconomy.gov currently uses (fetched at run time and named in the output). Flex-fuel vehicles are priced on gasoline.

## `electricityPricePerKwh` (type: `number`):

Your charging cost per kWh, used for electric vehicles and the grid share of plug-in hybrids. Empty = the national electricity price fueleconomy.gov currently uses.

## `midgradeFuelPricePerGallon` (type: `number`):

Used for vehicles EPA lists on midgrade gasoline. Empty = fueleconomy.gov's current national midgrade price.

## `premiumFuelPricePerGallon` (type: `number`):

Used for vehicles EPA lists on premium gasoline. Empty = fueleconomy.gov's current national premium price.

## `dieselPricePerGallon` (type: `number`):

Used for diesel vehicles. Empty = fueleconomy.gov's current national diesel price. If a needed price is neither given nor available, that vehicle gets no cost and is not charged.

## `maxVehicles` (type: `integer`):

Rows beyond this number are not processed or charged.

## `includeRecallText` (type: `boolean`):

Turn off for a compact output with campaign number, date and component only.

## Actor input object example

```json
{
  "useSampleFleet": true,
  "defaultAnnualMiles": 15000,
  "fuelPricePerGallon": 3.1,
  "electricityPricePerKwh": 0.17,
  "maxVehicles": 1000,
  "includeRecallText": true
}
```

# Actor output Schema

## `overview` (type: `string`):

Every record of the default dataset, in input order, with the fleet summary last. The overview view shows the main columns as a table.

## `summary` (type: `string`):

The fleet summary as one JSON record: vehicles audited, partial and charged, invalid VINs, total annual miles, total annual energy cost with range and coverage, recall campaign counts with coverage, prices used and sources.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "fuelPricePerGallon": 3.1,
    "electricityPricePerKwh": 0.17
};

// Run the Actor and wait for it to finish
const run = await client.actor("howmuchworks/fleet-vin-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "fuelPricePerGallon": 3.1,
    "electricityPricePerKwh": 0.17,
}

# Run the Actor and wait for it to finish
run = client.actor("howmuchworks/fleet-vin-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "fuelPricePerGallon": 3.1,
  "electricityPricePerKwh": 0.17
}' |
apify call howmuchworks/fleet-vin-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,howmuchworks/fleet-vin-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zSDB5LarVmsjXndbS/builds/aybyjLknb4ViTrwJG/openapi.json
