# Inventory Search API

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

Updated: Nov 16, 2026

This is the Markdown version of https://developers.marketcheck.com/uk/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/uk/index.md). The prices are at https://developers.marketcheck.com/uk/pricing.md.

> One GET returns the cars for sale on UK dealer websites that match your filters, in pounds, or facet counts and stats. Recorded UK requests and screens.

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

- Endpoint: `GET https://api.marketcheck.com/v2/search/car/uk/active`, with `api_key` as a query parameter
- Regions: United Kingdom
- Docs: https://docs.marketcheck.com/uk/docs/api/cars/inventory/inventory-search
- This page: https://developers.marketcheck.com/uk/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 registration by default; add `nodedup=true` to get every listing of it, duplicates included.
- Narrow a search to one area with `county`, or with `postal_code` and `radius` in miles.
- A listing names the car by its registration, in `vehicle_registration_mark`, and the search takes one in `vrm`.
- The `trim` parameter is an alias of `variant`, and the docs recommend `variant`.

## Use cases

### Search results for a shopper
Send the shopper's filters, such as year, make and model: each listing carries the listed price, the miles, the days on market (dom) and the dealer with its town and postcode. num_found is the total that matched; rows sets how many come back.

Request: 2022 Ford Pumas, first 5 results, with variant counts and price stats.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/active?api_key=YOUR_API_KEY&year=2022&make=ford&model=puma&start=0&rows=5&facets=variant&stats=price"
```

Response (recorded Jul 31, 2025, from the docs). Showing 4 of the 5 listings returned, with the fields a results card uses; the variant counts and price stats are left out.
```json
{
  "num_found": 1644,
  "listings": [
    {
      "price": 14200,
      "miles": 27888,
      "dom": 21,
      "dealer": {
        "name": "Sytner Group Ltd",
        "city": "Leicester",
        "county": "Leicestershire"
      },
      "build": {
        "year": 2022,
        "make": "Ford",
        "model": "Puma",
        "trim": "Titanium Mhev"
      }
    },
    {
      "price": 16900,
      "miles": 12277,
      "dom": 27,
      "dealer": {
        "name": "Sytner Group Ltd",
        "city": "Leicester",
        "county": "Leicestershire"
      },
      "build": {
        "year": 2022,
        "make": "Ford",
        "model": "Puma",
        "trim": "St-line X Mhev"
      }
    },
    {
      "price": 15000,
      "miles": 13858,
      "dom": 4,
      "dealer": {
        "name": "Sytner Group Ltd",
        "city": "Leicester",
        "county": "Leicestershire"
      },
      "build": {
        "year": 2022,
        "make": "Ford",
        "model": "Puma",
        "trim": "Titanium Mhev"
      }
    },
    {
      "price": 15100,
      "miles": 25680,
      "dom": 42,
      "dealer": {
        "name": "Hilton Garage",
        "city": "Derby",
        "county": "Derbyshire"
      },
      "build": {
        "year": 2022,
        "make": "Ford",
        "model": "Puma",
        "trim": "St-line X Mhev"
      }
    }
  ]
}
```

### 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 variant, fuel type and transmission for 2022 Ford Pumas, up to 6 of each, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/active?api_key=YOUR_API_KEY&year=2022&make=ford&model=puma&rows=0&facets=variant|0|6,fuel_type|0|6,transmission|0|6"
```

Response (recorded Nov 16, 2026):
```json
{
  "num_found": 521,
  "facets": {
    "variant": [
      {
        "item": "St-line X Mhev",
        "count": 165
      },
      {
        "item": "St-line Mhev",
        "count": 79
      },
      {
        "item": "Titanium Mhev",
        "count": 52
      },
      {
        "item": "St",
        "count": 49
      },
      {
        "item": "St-line X Mhev Auto",
        "count": 47
      },
      {
        "item": "St-line Vignale Mhev Auto",
        "count": 35
      }
    ],
    "fuel_type": [
      {
        "item": "Petrol",
        "count": 521
      }
    ],
    "transmission": [
      {
        "item": "Manual",
        "count": 394
      },
      {
        "item": "Automatic",
        "count": 127
      }
    ]
  }
}
```

### Price stats for one model
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 price summary of one model, in one call; add county to narrow it to one area.

Request: Listed-price, mileage and days-on-market stats for 2022 Ford Pumas listed in the UK, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/active?api_key=YOUR_API_KEY&year=2022&make=ford&model=puma&rows=0&stats=price,miles,dom"
```

Response (recorded Nov 16, 2026). Showing the main stats and the 25th and 75th percentiles; sums and the other percentiles are left out.
```json
{
  "num_found": 521,
  "stats": {
    "price": {
      "min": 6990,
      "max": 21999,
      "mean": 13722.35,
      "median": 13500,
      "percentiles": {
        "25.0": 12495,
        "75.0": 14998
      }
    },
    "miles": {
      "min": 2573,
      "max": 120300,
      "mean": 33362.87,
      "median": 29744,
      "percentiles": {
        "25.0": 20745,
        "75.0": 42169
      }
    },
    "dom": {
      "min": 2,
      "max": 1166,
      "mean": 102.02,
      "median": 59,
      "percentiles": {
        "25.0": 26,
        "75.0": 118
      }
    }
  }
}
```

### Who else lists this model in the county
A dealer benchmarks its own listings of a model against the other dealer websites in its county. Filter to the model and the county and send rows=0 with facets=source: the response counts the matching listings by website, largest first, and returns none of them.

Request: Ford Pumas of any year listed in Hertfordshire, counted by website, top 8, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/active?api_key=YOUR_API_KEY&make=ford&model=puma&county=Hertfordshire&rows=0&facets=source|0|8"
```

Response (recorded Nov 16, 2026):
```json
{
  "num_found": 39,
  "facets": {
    "source": [
      {
        "item": "graingermotorgroup.com",
        "count": 14
      },
      {
        "item": "sonnyadam.co.uk",
        "count": 4
      },
      {
        "item": "letchworthrenault.co.uk",
        "count": 3
      },
      {
        "item": "croxleycarcentre.co.uk",
        "count": 2
      },
      {
        "item": "endeavourautomotive.co.uk",
        "count": 2
      },
      {
        "item": "hertsautos.co.uk",
        "count": 2
      },
      {
        "item": "albansmotors.co.uk",
        "count": 1
      },
      {
        "item": "brookmansmotorgroup.co.uk",
        "count": 1
      }
    ]
  }
}
```

### Whether a registration is listed for sale
Search by vrm 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 registration EF72YJY.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/active?api_key=YOUR_API_KEY&vrm=EF72YJY"
```

Response (recorded Nov 16, 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": "14d30ec2d1b6d2269429bfce06def6db4468a5d2bc8abaf9b0fb201745e6d549",
      "vehicle_registration_mark": "EF72YJY",
      "heading": "Ford Puma 1.0T EcoBoost MHEV ST-Line Vignale Euro 6 (s/s) 5dr - 2022 (72 plate)",
      "price": 14750,
      "miles": 22000,
      "dom": 238,
      "dos_active": 238,
      "first_seen_at_source_date": "2026-03-23T09:48:04.000Z",
      "last_seen_at_date": "2026-11-15T11:05:41.000Z",
      "inventory_type": "used",
      "dealer": {
        "name": "Brookmans Motor Group",
        "city": "Hatfield"
      }
    }
  ]
}
```

## Key parameters
- `api_key` (string, required): Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
- `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.
- `variant` (string): Alias of `trim`. Filters listings by vehicle variant identifier. Accepts multiple values as comma-separated list.
- `county` (string): Filters listings by county name (e.g. `Greater London`, `Lancashire`). Use instead of `state`. Accepts multiple counties as comma-separated values.
- `postal_code` (string): Filters listings within the specified postal code (e.g., `M5H 2N2`).
- `radius` (integer): Search radius around the specified location in miles. Used with `zip` or `latitude` and `longitude` for geospatial queries.
- `vrm` (string): Filters listings by Vehicle Registration Mark (VRM/number plate). Use instead of `vehicle_registration_mark`. Accepts multiple values as comma-separated list.
- `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).
- `rows` (integer): Number of results to return per request. Default: 10. Maximum: 50.

## Questions

### What does the MarketCheck UK Inventory Search API return?
The MarketCheck UK Inventory Search API returns the cars listed for sale on UK dealer websites that match your filters. One GET to /v2/search/car/uk/active answers with num_found, the total that matched, and a page of listings in pounds. Each listing carries its registration, listed price, miles, days on market, specs and dealer.

### How do I search UK cars for sale near a postcode?
Send postal_code with radius, in miles, to MarketCheck's UK Inventory Search, /v2/search/car/uk/active, alongside your other filters. To search one county instead, send county. Every listing that comes back carries its dealer's town and postcode, so a results page can show where each car is.

### How do I check whether a UK registration is listed for sale?
Send the registration as vrm to MarketCheck's UK Inventory Search. The response holds that car's active dealer listing, with its listed price, miles and dealer, or a num_found of zero when no dealer website lists it. For the listings the car had before, send the same registration to History by VRM.

## Related APIs
- Car Listing Details: https://developers.marketcheck.com/uk/apis/listing-details
- Past Inventory Search: https://developers.marketcheck.com/uk/apis/past-inventory-search
- MarketCheck Price: https://developers.marketcheck.com/uk/apis/marketcheck-price
- History by VRM: https://developers.marketcheck.com/uk/apis/vin-history

## Price per call
What one call costs on each UK plan, in pounds, from the UK Data Fee Schedule. The fee is charged in addition to the plan's monthly price. Per-call rates are lower on Growth and Scale than on Starter.

| Endpoint | Starter (£0/mo) | Growth (£249/mo) | Scale (£599/mo) | Enterprise |
| --- | --- | --- | --- | --- |
| Inventory Search & Listing/VDP | £0.012 (£12.00 per 1,000) | £0.008 (£8.00 per 1,000) | £0.006 (£6.00 per 1,000) | Set with our team |

The UK Data Fee Schedule: https://developers.marketcheck.com/uk/pricing.md

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