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 🙏

© 2024 – Pkg Stats / Ryan Hefner

carsxe-api

v1.0.6

Published

CarsXE is a powerful, easy-to-use API that gives you instant access to a wide range of vehicle data, including specs, market value, license plate decoding, and more. Our API is designed to be fast, flexible, and scalable, so you can quickly and easily int

Downloads

8

Readme

CarsXE API

Version Downloads Minified Size Try on RunKit

CarsXE is a powerful, easy-to-use API that gives you instant access to a wide range of vehicle data, including specs, market value, license plate decoding, and more. Our API is designed to be fast, flexible, and scalable, so you can quickly and easily integrate it into your existing applications and services. With CarsXE, you can get the information you need, when you need it, and take your business to the next level.

For documentation see the carsxe-api API docs.

Get Started

To get started with the CarsXE API, follow these steps:

  1. Sign up for a CarsXE account, Add a payment method to activate your subscription, get your API key.

  2. Install the CarsXE npm package using the following command:

npm install carsxe-api --save
# or
yarn add carsxe-api
  1. Import the CarsXE API into your code using the following line:
import CarsXE from 'carsxe-api';
  1. Use the init method to initialize the API and provide your API key:
const API_KEY = 'ABC123';
const carsxe = new CarsXE(API_KEY);
  1. Use the various endpoint methods provided by the API to access the data you need.

Usage

const vin = '123456789';

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 methods:

specs: This method allows you to get detailed specs for a specific vehicle, based on its VIN (vehicle identification number).

marketvalue: This method allows you to get the current market value for a specific vehicle, based on its make, model, year, and other factors.

history: This method allows you to get the history of a specific vehicle, including its ownership, accidents, and other events.

platedecoder: This method allows you to decode a license plate number and get information about the vehicle it is registered to.

images: This method allows you to get images for a specific vehicle, based on its a variety of parameters.

obdcodesdecoder: This method allows you to decode an OBD code and get information about the code.

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

const vin = '123456789';

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

// Get market value
const marketvalue = carsxe.marketvalue({ vin });

// Get history
const history = carsxe.history({ vin });

// Decode license plate number ABC123, state XX and country YY
const platedecoder = carsxe.platedecoder({ plate: 'ABC123', state: 'XX', country: 'YY' });

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

// Get Decode OBD Code
const obdcode = carsxe.obdcodesdecoder({ code: 'P0115' });

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.