Skip to main content

iaai-api — IAAI API client for Python

PyPI version Python versions 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-space 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).

  • Sync Client and AsyncClient, retries on 429 and 5xx, one exception class per API error
  • car("45551597") takes the IAAI listing number as well as the record id
  • IaaiRaw types for the IAAI-only fields in car["raw"]
  • Python 3.10+, py.typed, checked with mypy --strict

Install

pip install iaai-api

The module you import is 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:

export APIAUTO_KEY="your-key"

Keep the key on your server: the API does not accept browser requests.

Quick start

import iaai_api

with iaai_api.Client() as client:  # reads APIAUTO_KEY
    cars = list(client.iter_cars(max_items=20, brand="Toyota", year_min=2020))
    for car in cars:
        print(car["id"], car["title"], car["price"]["amount"], car["price"]["currency"])

    # One car by its listing number, such as "45551597", or its id, such as "iaai:45551597"
    one = client.car(cars[0]["source_id"])
    print(one["vin"], one["photos"][:1])

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 None. 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 None;
  • the Copart lots that were dropped still count against your quota;
  • iter_cars(max_items=...) reads pages until it has collected max_items IAAI lots.

When you need both auctions, use the general apiauto client with client.cars("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
iter_cars(max_items=None, **filters) 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=None) / iter_changes(...) 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 client.core for anything else. Errors are the apiauto exceptions, re-exported here: QuotaExceededError, RateLimitError, NotFoundError, AuthenticationError and the rest.

IAAI-only fields

from iaai_api import raw

extra = raw(car)  # typed as IaaiRaw
print(extra.get("source_values"))

IaaiRaw lists the keys with comments; every key is optional, so read them with .get.

License

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

Metadata

Release files for iaai-api 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iaai-api 0.1.1
File Size Uploaded Provenance Actions
iaai_api-0.1.1.tar.gz 11.4 kB With provenance Details for iaai_api-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iaai-api 0.1.1
File Interpreter ABI Platform Actions
iaai_api-0.1.1-py3-none-any.whl Python 3 none any Details for iaai_api-0.1.1-py3-none-any.whl

Total release size: 21.7 kB

Release files / iaai_api-0.1.1.tar.gz

Download URL iaai_api-0.1.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1d74af8a2f6f194d436b657e25dd26be0d8b5d23c581af0ef84b2b085e379c2a
BLAKE2b-256 checksum
How to use checksums
be65fd673b993314b97f0d791d0df25ce2add3f88dd44eaaf4d391d8d3751842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / iaai_api-0.1.1-py3-none-any.whl

Download URL iaai_api-0.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29fd1361972803a1d8d9d1233160f5fea89a8522873109f94526859661dc50b5
BLAKE2b-256 checksum
How to use checksums
c893716deb25a644879d87347b5ea069c4e9b1d55b47ad3a93927309aacae535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for iaai-api 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iaai_api-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page