npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

carsxe-api

v1.2.1

Published

CarsXE is a powerful, easy-to-use API that gives you instant access to vehicle data like specs, market value, license plate decoding, and more. It's fast, scalable, and simple to integrate into your apps and services.

Downloads

9,246

Readme

🚗 CarsXE API

Version Downloads

CarsXE is a powerful and developer-friendly API that gives you instant access to a wide range of vehicle data. From VIN decoding and market value estimation to vehicle history, images, OBD code explanations, and plate recognition, CarsXE provides everything you need to build automotive applications at scale.

🌐 Website: https://api.carsxe.com
📄 Docs: https://api.carsxe.com/docs
📦 All Products: https://api.carsxe.com/all-products


🚀 Installation

npm install carsxe-api
# or
yarn add carsxe-api

Import the CarsXE API into your code using the following line

import { CarsXE } from 'carsxe-api';

Use the init method to initialize the API and provide your API key

const carsxe = new CarsXE('YOUR_API_KEY');

Use the various endpoint methods provided by the API to access the data you need

Usage

const vin = 'WBAFR7C57CC811956';

carsxe
  .specs({ vin })
  .then((vehicle) => console.log(vehicle.input.vin))
  .catch((error) => console.error(error));

Or using ES modules and async/await:

const vehicle = await carsxe.specs({ vin });

console.log(vehicle.input.vin);

Endpoints

The CarsXE API provides the following endpoint:

specs – Decode VIN & get full vehicle specifications

internationalVinDecoder – Decode VIN with worldwide support

platedecoder – Decode license plate info (plate, state, country)

marketvalue – Estimate vehicle market value based on VIN

history – Retrieve vehicle history (ownership, accidents, etc.)

images – Fetch images by make, model, year, trim

recalls – Get safety recall data for a VIN

plateImageRecognition – Read & decode plates from images

vinOcr – Extract VINs from images using OCR

yearMakeModel – Query vehicle by year, make, model and trim (optional)

obdcodesdecoder – Decode OBD error/diagnostic codes

lienAndTheft – Check for liens and theft records by VIN

To use any of these endpoint methods, call the method and provide the necessary parameters, as shown in the following examples:

// VIN Specifications
const specs = await carsxe.specs({ vin: 'WBAFR7C57CC811956' }););

// International VIN Decoder
const intVin = await carsxe.internationalVinDecoder({ vin: 'WF0MXXGBWM8R43240' }););

// Market Value
const value = await carsxe.marketvalue({ vin: 'WBAFR7C57CC811956' });

// History
const history = await carsxe.history({ vin: 'WBAFR7C57CC811956' });

// License Plate Decoder
const plate = await carsxe.platedecoder({ plate: '7XER187', state: 'CA', country: 'US' });

// Vehicle Images
const imgs = await carsxe.images({ make: 'BMW', model: 'X5', year: '2019' });

// Vehicle Recalls
const recalls = await carsxe.recalls({ vin: '1C4JJXR64PW696340' });

// Plate Image Recognition
const plateImg = await carsxe.plateImageRecognition({ imageUrl: 'https://api.carsxe.com/img/apis/plate_recognition.JPG' });

// VIN OCR from image
const vinOcr = await carsxe.vinOcr({ imageUrl: 'https://user-images.githubusercontent.com/5663423/30922082-64edb4fa-a3a8-11e7-873e-3fbcdce8ea3a.png' });

// Year‑Make‑Model search
const ymm = await carsxe.yearMakeModel({ year: '2023', make: 'Toyota', model: 'Camry' });

// OBD Code Decoder
const obd = await carsxe.obdcodesdecoder({ code: 'P0115' });

// Lien and Theft Check
const lienTheft = await carsxe.lienAndTheft({ vin: '2C3CDXFG1FH762860' });

In these examples, each endpoint method is called with the necessary parameters, and the results are returned through a callback function. The callback function receives two arguments: an error object (if an error occurred) and the data returned by the endpoint. The data can then be used in your code as needed.

Overall, the CarsXE API provides a range of powerful, easy-to-use tools for accessing vehicle data and integrating it into your applications and services. By using the endpoint methods provided by the API, you can quickly and easily get the information you need, when you need it, and take your business to the next level. Whether you are a developer looking for vehicle data for your applications, or a business owner looking to enhance your services with vehicle data, the CarsXE API has something to offer. Try it today and see how easy it is to access the vehicle data you need, without any hassle or inconvenience.

Contributing

We welcome contributions to the CarsXE API! If you have ideas for improvements, bug fixes, or new features, please feel free to submit a pull request or open an issue on our GitHub repository. PRs and issues are welcome at: 🔗 https://github.com/carsxe/carsxe-api-npm