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

iaai-api

v0.1.1

Published

IAAI API client for JavaScript and TypeScript: IAAI insurance auction lots (USA) with VIN, damage and sale date as JSON, from the apiauto.space team

Readme

iaai-api — IAAI API client for JavaScript and TypeScript

npm version License: MIT

iaai-api gives you IAAI insurance auction lots (USA) with VIN, damage and sale date as clean JSON through the apiauto.space REST API, without writing or maintaining a scraper. Search by make, model, year, price and mileage, page through the whole catalog, fetch one listing by its number and follow a feed of new cars, cars taken off sale and price changes.

It is a thin layer over the general apiauto client with the market preset to us, plus types for the IAAI-only fields. It comes from the apiauto.space team; the project is not affiliated with IAAI (Insurance Auto Auctions).

  • One class, IaaiApi, ESM, TypeScript types, the only dependency is apiauto (which has none)
  • car("45551597") takes the IAAI listing number as well as the record id
  • IaaiRaw types for the IAAI-only fields in car.raw
  • Node 20.19+, Bun, Deno and edge runtimes with fetch

Install

npm install iaai-api

Get a key

Open the Telegram bot @apiautospace_bot and take a free demo key: one day, 100 data requests, up to 20 cars per request. Paid plans are on the pricing page.

Save the key in the APIAUTO_KEY environment variable — the client reads it from there. Keep the key on your server: the API does not accept browser requests, and a key in page code is visible to every visitor.

Quick start

import { IaaiApi } from "iaai-api";

const api = new IaaiApi(); // reads APIAUTO_KEY

const cars = [];
for await (const car of api.iterCars({ brand: "Toyota", year_min: 2020, maxItems: 20 })) {
  console.log(car.id, car.title, car.price.amount, car.price.currency);
  cars.push(car);
}

// One car by its listing number, such as "45551597", or its id, such as "iaai:45551597"
const one = await api.car(cars[0].source_id);
console.log(one.vin, one.photos[0]);

A record looks like this (shortened; real values from the catalog):

{
  "id": "iaai:45551597",
  "market": "us",
  "source": "iaai",
  "source_id": "45551597",
  "title": "2019 Toyota Sienna",
  "brand": "Toyota",
  "model": "Sienna",
  "year": 2019,
  "mileage_km": 97417,
  "fuel": "gasoline",
  "transmission": "automatic",
  "body_type": "minivan",
  "vin": "5TDZZ3DC1KS012693",
  "price": {
    "amount": "2150.00",
    "currency": "USD"
  },
  "price_usd": "2150.00",
  "location": {
    "country": "US",
    "region": "IL",
    "city": "St. Louis"
  },
  "listing_url": null,
  "is_active": true,
  "first_seen_at": "2026-09-23T00:21:30.655454Z",
  "photos": [
    "https://api.apiauto.space/img/iaai:45551597/1.jpg?exp=...&sig=..."
  ],
  "raw": {
    "lot_number": "45551597",
    "sale_date": "2026-09-29T14:30:00+00:00",
    "bid": 2150,
    "damage_main": "normal_wear",
    "title_doc": "clean",
    "location_branch": "St. Louis (IL)"
  }
}

Every record has the same keys as in the other apiauto.space markets; a value the source does not provide is null. Prices are decimal strings in USD, price_usd is converted at the ECB daily rate.

Copart and IAAI share one market

The API keeps Copart and IAAI lots together in the us market and does not filter by auction yet. This client asks for us cars and keeps only IAAI lots on the client side. What that means for you:

  • a page from cars() can hold fewer than limit lots, and its count is null;
  • the Copart lots that were dropped still count against your quota;
  • iterCars({ maxItems }) reads pages until it has collected maxItems IAAI lots.

When you need both auctions, use the general apiauto client with api.cars({ market: "us" }).

Methods

| Method | What it does | Quota | |---|---|---| | cars(filters) | One page of IAAI cars: brand, model, year_min, year_max, price_min, price_max, mileage_max, fuel, body_type, sort, limit, cursor | Cars returned | | iterCars({ ...filters, maxItems }) | Every matching car, page after page | Cars returned | | car(listing) | One car by listing number or id, including cars taken off sale in the last 14 days | 1 record | | changes({ since, type }) / iterChanges(...) | Feed of added, disappeared, price_drop, price_up events | Events returned | | brands() / models(brand) | Makes and models with car counts | Free | | status() | Plan access, data age and the number of active cars of the market | Free | | usage() | Your plan, its term and the quota spent | Free | | live({ make, model }) | Live search at the auction data provider for lots not in the catalog yet, Pro and Max plans | Separate counter |

The general client is at api.core for anything else. Errors are the apiauto error classes, re-exported here: QuotaExceededError, RateLimitError, NotFoundError, AuthenticationError and the rest.

IAAI-only fields

import { raw } from "iaai-api";

const extra = raw(car); // typed as IaaiRaw
console.log(extra.source_values);

Links

License

MIT. IAAI is a trademark of its owner; it is named here only to say which listings the client returns.