# Past Inventory Search API

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

Updated: Nov 16, 2026

This is the Markdown version of https://developers.marketcheck.com/uk/apis/past-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.

> Search UK dealer listings that have ended, or only cars inferred sold, with last listed price and days on market. Recorded UK requests and screens.

Search the UK dealer listings that recently ended, and narrow them to the cars MarketCheck infers were sold.

- Endpoint: `GET https://api.marketcheck.com/v2/search/car/uk/recents`, with `api_key` as a query parameter
- Regions: United Kingdom
- Docs: https://docs.marketcheck.com/uk/docs/api/cars/inventory/past-inventory-search
- This page: https://developers.marketcheck.com/uk/apis/past-inventory-search

## Good to know
- The endpoint searches dealer listings that ended in the last 90 days, with the same filters and response shape as Inventory Search.
- Without `sold=true` the results include old listings of cars still for sale; with it, only cars inferred sold.
- A sale is inferred from listing activity, so the `price` on a row is its last listed price.
- A request takes one of `facets`, `stats` or `range_facets`, and a `radius` of at most 100 miles.

## Use cases

### Recent inferred sales to compare
A pricing tool wants the cars like this one that recently left the market: filter to a year and a make in a county with sold=true. Each row carries price (its last listed price), miles, dom and last_seen_at_date, and num_found counts every match.

Request: 2023 Toyotas in Leicestershire inferred sold, first 2 results.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/recents?api_key=YOUR_API_KEY&county=Leicestershire&sold=true&year=2023&make=toyota&rows=2"
```

Response (recorded Jul 31, 2025, from the docs). Each listing is cut to the fields a results table uses.
```json
{
  "num_found": 38,
  "listings": [
    {
      "price": 20799,
      "miles": 29816,
      "dom": 68,
      "last_seen_at_date": "2025-07-22T06:47:21.000Z",
      "dealer": {
        "name": "Available Car Limited",
        "city": "Derby"
      },
      "build": {
        "year": 2023,
        "make": "Toyota",
        "model": "C-HR",
        "trim": "Gr Sport Hev Cvt"
      }
    },
    {
      "price": 11500,
      "miles": 8000,
      "dom": 242,
      "last_seen_at_date": "2025-07-21T14:52:24.000Z",
      "dealer": {
        "name": "Senior Car And Van Sales",
        "city": "Harborough"
      },
      "build": {
        "year": 2023,
        "make": "Toyota",
        "model": "Aygo X",
        "trim": "Pure Vvt-i"
      }
    }
  ]
}
```

### How fast this model is inferred sold in the county
A dealer checks how long a model stays listed: stats=dom_active with rows=0 returns the minimum, maximum, mean and median days on market over every matching car inferred sold. dom_active is a car's latest stretch on the market across all sources; dom would count its whole listing history.

Request: Days-on-market stats for Ford Pumas inferred sold in Hertfordshire, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/recents?api_key=YOUR_API_KEY&make=ford&model=puma&county=Hertfordshire&sold=true&rows=0&stats=dom_active"
```

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": 44,
  "stats": {
    "dom_active": {
      "min": 2,
      "max": 774,
      "mean": 73.52,
      "median": 37,
      "percentiles": {
        "25.0": 15,
        "75.0": 64.25
      }
    }
  }
}
```

### What left dealer websites, by make
For a market-share chart or an assistant's answer, facets=make with sold=true and rows=0 returns one count of cars inferred sold per make, largest first. An offset and a limit follow the field name, the limit setting how many come back; num_found totals all makes.

Request: Cars inferred sold in Hertfordshire, counted by make, top 8, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/recents?api_key=YOUR_API_KEY&county=Hertfordshire&sold=true&rows=0&facets=make|0|8"
```

Response (recorded Nov 16, 2026):
```json
{
  "num_found": 20119,
  "facets": {
    "make": [
      {
        "item": "BMW",
        "count": 2106
      },
      {
        "item": "Mercedes-Benz",
        "count": 1600
      },
      {
        "item": "KIA",
        "count": 1553
      },
      {
        "item": "Ford",
        "count": 1412
      },
      {
        "item": "Audi",
        "count": 1351
      },
      {
        "item": "Volkswagen",
        "count": 1195
      },
      {
        "item": "Hyundai",
        "count": 1015
      },
      {
        "item": "Volvo",
        "count": 882
      }
    ]
  }
}
```

### What was inferred sold in the county, by model
A dealer's buyer plans stock around the models that left dealer websites nearby. Send sold=true, facets=model and rows=0 with a make and a county: the response counts the listings inferred sold by model, largest first.

Request: Fords inferred sold in Hertfordshire, counted by model, top 8, with no listings returned.
```bash
curl "https://api.marketcheck.com/v2/search/car/uk/recents?api_key=YOUR_API_KEY&make=ford&county=Hertfordshire&sold=true&rows=0&facets=model|0|8"
```

Response (recorded Nov 16, 2026):
```json
{
  "num_found": 1412,
  "facets": {
    "model": [
      {
        "item": "Fiesta",
        "count": 323
      },
      {
        "item": "Focus",
        "count": 244
      },
      {
        "item": "Transit Custom",
        "count": 208
      },
      {
        "item": "Kuga",
        "count": 110
      },
      {
        "item": "Ranger",
        "count": 99
      },
      {
        "item": "Transit",
        "count": 88
      },
      {
        "item": "EcoSport",
        "count": 58
      },
      {
        "item": "Puma",
        "count": 44
      }
    ]
  }
}
```

## Key parameters
- `api_key` (string, required): Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
- `sold` (boolean): If `true`, returns listings that are inferred to be sold by MarketCheck.
- `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.
- `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.
- `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 is the MarketCheck UK Past Inventory Search API?
The MarketCheck UK Past Inventory Search API searches UK dealer listings that are no longer active: the ones that ended in the last 90 days. A GET to /v2/search/car/uk/recents returns them in the format UK Inventory Search uses, each with its last listed price and last seen date. sold=true keeps only the cars MarketCheck infers were sold.

### How does MarketCheck decide that a UK car in Past Inventory Search was sold?
A sale in Past Inventory Search is inferred from listing activity, whether or not the dealer marks the car as sold. All sold listings are expired listings, but not every expired listing is a sale: the same registration can come back on the market with a new listing later. The sale is attributed to the website that listed it.

### What is the difference between sold=true and expired=true in UK Past Inventory Search?
sold=true and expired=true both narrow Past Inventory Search's default result, which is listings that have ended, old listings of cars still for sale among them. expired=true keeps the listings of registrations with no active listing left. sold=true keeps only the listings MarketCheck has inferred were sold, which leaves out the cars whose listings ended without an inferred sale.

## Related APIs
- Inventory Search: https://developers.marketcheck.com/uk/apis/inventory-search
- History by VRM: https://developers.marketcheck.com/uk/apis/vin-history
- MarketCheck Price: https://developers.marketcheck.com/uk/apis/marketcheck-price

## 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 |
| --- | --- | --- | --- | --- |
| Recents Search API | £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.
