# Inventory Search API

Canonical URL: https://developers.marketcheck.com/apis/inventory-search

Updated: Nov 16, 2026

This is the Markdown version of https://developers.marketcheck.com/apis/inventory-search. Every page of this site has one at its own address with .md added (the home page's is https://developers.marketcheck.com/index.md). The prices are at https://developers.marketcheck.com/pricing.md.

> One GET returns the cars that match your filters, with listed price, miles and dealer, or facet counts and stats. Recorded requests, responses and screens.

Search the cars listed for sale on dealer websites, and get counts and price stats from the same call.

- Endpoint: `GET https://api.marketcheck.com/v2/search/car/active`, with `api_key` as a query parameter
- Regions: United States, Canada, United Kingdom
- UK endpoint: `GET https://api.marketcheck.com/v2/search/car/uk/active` (Inventory Search in the UK docs: https://docs.marketcheck.com/uk/docs/api/cars/inventory/inventory-search)
- Docs: https://docs.marketcheck.com/docs/api/cars/inventory/inventory-search
- This page: https://developers.marketcheck.com/apis/inventory-search

## Good to know
- Send `facets` or `stats` with `rows=0` and the response holds the counts or the stats and no listings.
- A search returns one listing for each VIN by default; add `nodedup=true` to get every listing of the VIN, duplicates included.
- `car_type=used` also returns certified pre-owned cars; add `exclude_certified=true` to leave them out.
- With `zip` and `radius`, listings come back nearest first, and `dist` on each is its distance from the ZIP in miles.

## Use cases

### Search results for a shopper
Send the shopper's filters with a ZIP and a radius: each listing carries the listed price, the miles, the dealer and its city, the distance (dist) and the days on market (dom). num_found is the total that matched; rows sets how many come back.

Request: Used 2022 Toyota RAV4s with 40,000 to 100,000 miles within 25 miles of ZIP 76053, first 4 results.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&car_type=used&year=2022&make=toyota&model=rav4&miles_range=40000-100000&zip=76053&radius=25&rows=4"
```

Response (recorded Nov 13, 2026). Each listing is cut to the fields a results card uses.
```json
{
  "num_found": 26,
  "listings": [
    {
      "id": "2T3P1RFV6NW288094-01c14d3a-8a9f",
      "vin": "2T3P1RFV6NW288094",
      "price": 27800,
      "miles": 52415,
      "dom": 45,
      "dist": 1.53,
      "dealer": {
        "name": "Hiley Mazda Of Hurst",
        "city": "Hurst",
        "state": "TX"
      },
      "build": {
        "year": 2022,
        "make": "Toyota",
        "model": "RAV4",
        "trim": "XLE",
        "body_type": "SUV"
      }
    },
    {
      "id": "4T3RWRFV3NU052190-5c80babf-b147",
      "vin": "4T3RWRFV3NU052190",
      "price": 24222,
      "miles": 97297,
      "dom": 235,
      "dist": 1.57,
      "dealer": {
        "name": "Freeman Toyota",
        "city": "Hurst",
        "state": "TX"
      },
      "build": {
        "year": 2022,
        "make": "Toyota",
        "model": "RAV4",
        "trim": "XLE",
        "body_type": "SUV"
      }
    },
    {
      "id": "2T3E6RFV5NW037754-904d41bd-5c6e",
      "vin": "2T3E6RFV5NW037754",
      "price": 33998,
      "miles": 52637,
      "dom": 3,
      "dist": 3.86,
      "dealer": {
        "name": "Carmax Arlington / Ft. Worth",
        "city": "Fort Worth",
        "state": "TX"
      },
      "build": {
        "year": 2022,
        "make": "Toyota",
        "model": "RAV4",
        "trim": "XSE",
        "body_type": "SUV"
      }
    },
    {
      "id": "2T3W1RFV3NW185484-6c999c46-2525",
      "vin": "2T3W1RFV3NW185484",
      "price": 23000,
      "miles": 43699,
      "dom": 49,
      "dist": 5.74,
      "dealer": {
        "name": "Ettolic Auto Services Llc",
        "city": "Arlington",
        "state": "TX"
      },
      "build": {
        "year": 2022,
        "make": "Toyota",
        "model": "RAV4",
        "trim": "XLE",
        "body_type": "SUV"
      }
    }
  ]
}
```

### Filters that show live counts
A filter panel needs a count beside every option: name the fields in facets and set rows=0, and the response is the counts alone. After a field's name, |offset|limit sets where its values start and how many come back, the most common first.

Request: Counts by trim, drivetrain and base exterior color for used 2022 Toyota RAV4s with 40,000 to 100,000 miles within 25 miles of ZIP 76053, up to 6 of each, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&car_type=used&year=2022&make=toyota&model=rav4&miles_range=40000-100000&zip=76053&radius=25&rows=0&facets=trim|0|6,drivetrain|0|6,base_ext_color|0|6"
```

Response (recorded Nov 13, 2026):
```json
{
  "num_found": 26,
  "facets": {
    "trim": [
      {
        "item": "XLE",
        "count": 9
      },
      {
        "item": "XLE Premium",
        "count": 5
      },
      {
        "item": "LE",
        "count": 4
      },
      {
        "item": "SE",
        "count": 3
      },
      {
        "item": "XSE",
        "count": 3
      },
      {
        "item": "Adventure",
        "count": 1
      }
    ],
    "drivetrain": [
      {
        "item": "AWD",
        "count": 17
      },
      {
        "item": "FWD",
        "count": 9
      }
    ],
    "base_ext_color": [
      {
        "item": "Black",
        "count": 9
      },
      {
        "item": "Gray",
        "count": 9
      },
      {
        "item": "White",
        "count": 3
      },
      {
        "item": "Blue",
        "count": 2
      },
      {
        "item": "Red",
        "count": 2
      },
      {
        "item": "Silver",
        "count": 1
      }
    ]
  }
}
```

### Where the local market is priced
stats=price,miles,dom returns the minimum, maximum, mean and median of each field over every car that matches, not only the page of results. With rows=0 it is a pricing snapshot of one model in one market, in one call.

Request: Listed-price, mileage and days-on-market stats for used 2022 Toyota RAV4s with 40,000 to 100,000 miles within 25 miles of ZIP 76053, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&car_type=used&year=2022&make=toyota&model=rav4&miles_range=40000-100000&zip=76053&radius=25&rows=0&stats=price,miles,dom"
```

Response (recorded Nov 13, 2026). Showing the main stats and the 25th and 75th percentiles; sums and the other percentiles are left out.
```json
{
  "num_found": 26,
  "stats": {
    "price": {
      "min": 21500,
      "max": 35125,
      "mean": 27534.12,
      "median": 27577.5,
      "percentiles": {
        "25.0": 25949.25,
        "75.0": 29162.5
      }
    },
    "miles": {
      "min": 42678,
      "max": 99009,
      "mean": 66252.81,
      "median": 66529,
      "percentiles": {
        "25.0": 49004.75,
        "75.0": 81038
      }
    },
    "dom": {
      "min": 3,
      "max": 432,
      "mean": 90.38,
      "median": 47,
      "percentiles": {
        "25.0": 19.75,
        "75.0": 105.25
      }
    }
  }
}
```

### Whether a VIN is for sale right now
Search by vin and you get that car's active listing, or a num_found of zero when it has none. dom counts the car's days on market across all dealers over its lifetime, and dos_active how long this one dealer has continuously had it listed.

Request: The active listing for VIN 4T3RWRFV3NU052190.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&vin=4T3RWRFV3NU052190"
```

Response (recorded Nov 13, 2026). The listing is cut to the fields a status card uses: days on market (all sites) and days on this site.
```json
{
  "num_found": 1,
  "listings": [
    {
      "id": "4T3RWRFV3NU052190-5c80babf-b147",
      "vin": "4T3RWRFV3NU052190",
      "heading": "2022 Toyota RAV4 Hybrid XLE SUV",
      "price": 24222,
      "miles": 97297,
      "dom": 235,
      "dos_active": 70,
      "first_seen_at_source_date": "2026-09-03T07:57:30.000Z",
      "last_seen_at_date": "2026-11-11T06:41:32.000Z",
      "inventory_type": "used",
      "dealer": {
        "name": "Freeman Toyota",
        "city": "Hurst",
        "state": "TX"
      }
    }
  ]
}
```

### Who else lists this model nearby
A store benchmarks its own listings of a model against the dealer websites nearby that list it. Filter to the model around the store's ZIP and send rows=0 with facets=source: the response counts the matching listings by website, largest first, and returns none of them.

Request: Used Toyota RAV4s of any year within 25 miles of ZIP 76053, counted by website, top 8, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&car_type=used&make=toyota&model=rav4&zip=76053&radius=25&rows=0&facets=source|0|8"
```

Response (recorded Nov 14, 2026):
```json
{
  "num_found": 578,
  "facets": {
    "source": [
      {
        "item": "carmax.com",
        "count": 51
      },
      {
        "item": "carvana.com",
        "count": 46
      },
      {
        "item": "hertzcarsales.com",
        "count": 32
      },
      {
        "item": "familytoyotaofarlington.com",
        "count": 22
      },
      {
        "item": "familytoyotaofburleson.com",
        "count": 19
      },
      {
        "item": "freemantoyota.com",
        "count": 17
      },
      {
        "item": "toyotaofgrapevine.com",
        "count": 17
      },
      {
        "item": "toyotaofdallas.com",
        "count": 16
      }
    ]
  }
}
```

### One car on every site that lists it
A group that lists one car on several of its websites checks that each shows the same listed price. Search by vin with nodedup=true and the response holds every listing of the car, each with its website in source and its own listed price.

Request: Every listing of VIN 5LM5J6WC3TGL04354 for sale now, with de-duplication off.
```bash
curl "https://api.marketcheck.com/v2/search/car/active?api_key=YOUR_API_KEY&vin=5LM5J6WC3TGL04354&nodedup=true"
```

Response (recorded Nov 14, 2026). Showing both listings, each cut to the fields a comparison uses: the listed price, miles, day counts and first-seen date, and the website, city and location it is listed at.
```json
{
  "num_found": 2,
  "listings": [
    {
      "vin": "5LM5J6WC3TGL04354",
      "heading": "2026 Lincoln Aviator Premiere SUV V-6 cyl",
      "price": 54546,
      "miles": 6749,
      "dos_active": 22,
      "dom_active": 22,
      "first_seen_at_source_date": "2026-10-23T06:22:06.000Z",
      "source": "grapevineford.com",
      "dealer": {
        "city": "Grapevine"
      },
      "mc_dealership": {
        "mc_location_id": 1400895
      }
    },
    {
      "vin": "5LM5J6WC3TGL04354",
      "heading": "2026 Lincoln Aviator Premiere SUV V-6 cyl",
      "price": 54546,
      "miles": 6749,
      "dos_active": 22,
      "dom_active": 22,
      "first_seen_at_source_date": "2026-10-23T06:22:33.000Z",
      "source": "grapevinelincoln.com",
      "dealer": {
        "city": "Grapevine"
      },
      "mc_dealership": {
        "mc_location_id": 1400895
      }
    }
  ]
}
```

## Key parameters
- `api_key` (string, required): Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
- `car_type` (string): Filters listings by inventory type. Allowed values - `new`, `used`, `certified`.
- `year` (string): Filters listings by model year (e.g., `2020`). Accepts multiple years separated by commas.
- `make` (string): Filters listings by vehicle make (e.g., `Toyota`, `Ford`, `Mercedes-Benz`). Accepts multiple values as comma-separated list.
- `model` (string): Filters listings by specific vehicle model (e.g., `Camry`). Accepts multiple values separated by commas.
- `miles_range` (string): Filters listings by odometer reading. Specify as `min-max` miles (e.g., `1000-50000`).
- `zip` (string): Filters listings within the specified 5-digit ZIP code.
- `radius` (integer): Search radius around the specified location in miles. Used with `zip` or `latitude` and `longitude` for geospatial queries.
- `facets` (string): Field name to return bucket facets for. Accepts multiple fields as a comma-separated list.
- `stats` (string): Comma-separated list of numeric fields for which to return aggregate statistics (mean, max, min, count).

## Questions

### What does the MarketCheck Inventory Search API return?
The MarketCheck Inventory Search API returns the cars listed for sale on dealer websites that match your filters. One GET to /v2/search/car/active answers with num_found, the total that matched, and a page of listings. Each listing carries its VIN, listed price, miles, days on market, specs and dealer. Facet counts and stats are optional extras on the same call.

### How do I search used cars for sale near a ZIP code with the MarketCheck API?
Send zip and radius (in miles) to Inventory Search, /v2/search/car/active, and add car_type=used. The listings come back nearest first, each with dist, its distance from the ZIP in miles. car_type=used also returns certified pre-owned cars, since they are a subset of used, so add exclude_certified=true when you want them left out.

### Does the MarketCheck Inventory Search API cover Canada and the UK?
Inventory Search covers the US and Canada on one endpoint, and the UK has an endpoint of its own. US listings are the default, so pass country=ca for Canadian ones, priced in CAD, or country=all for both countries. UK dealer listings are served by /v2/search/car/uk/active, with prices in GBP and filters of their own, such as county.

### Why does MarketCheck's Inventory Search return only one listing for a car that is on several dealer websites?
Inventory Search returns one listing for each VIN by default. When the same car is advertised on several websites, MarketCheck works out which dealer has the car and returns that dealer's listing, a step the docs call attribution. Add nodedup=true to get every listing of the VIN, duplicates included.

## Related APIs
- Car Listing Details: https://developers.marketcheck.com/apis/listing-details
- Past Inventory Search: https://developers.marketcheck.com/apis/past-inventory-search
- MarketCheck Price: https://developers.marketcheck.com/apis/marketcheck-price
- Private Party Search: https://developers.marketcheck.com/apis/private-party-search
- Auction Search: https://developers.marketcheck.com/apis/auction-search

Replace YOUR_API_KEY with your key from https://developers.marketcheck.com/api-keys, and call the API from your server so the key stays private.
