# Motor Ledger · UK used-car price intelligence

Product strategy and launch requirements · 26 November 2026

## First release

The Cloudflare release serves a dedicated page for every catalogue model, checks ONS and Autoza data daily, and ingests approved CSV or JSON vehicle feeds on the same schedule. D1 stores the ONS series, Autoza monthly and registration-year aggregates, approved vehicle observations, and a private refresh audit. Each model page keeps published asking-price aggregates separate from individual records, recorded sales, local imports and labelled demos. Sold records need completion evidence with a defined retail cash or auction hammer basis. The owner can onboard suppliers using the [feed guide](FEEDS.md). Forecasts report validation at the requested horizon when sufficient chronological evidence exists. Model-level transaction networks and verified derivative-level insurance groups require provider access.

## Product decision

Build a research tool that helps UK buyers compare what similar cars are advertised for today, how those prices moved, and what each ownership or PCP scenario could cost. The starting point is a searchable vehicle catalogue with a national market benchmark. The product earns trust by showing the source, date, sample size, price type and uncertainty alongside every price claim.

Make consumer decisions the core workflow. A buyer should be able to compare, for example, a Golf GTI and a Civic Type R at comparable ages and mileage, see how much the two asking-price series moved, check VED and insurance ratings, and see how new monthly mileage changes the projected value and PCP return costs. A second workflow should show which factory options or paint colours are associated with a premium after controlling for comparable vehicles. That is a measured association. It does not establish that choosing the option will cause the premium for a particular car.

Build the broad directory independently of price coverage. Use the UK Department for Transport's licensed vehicle counts to prioritise popular model families. A long-tail catalogue entry can exist with basic vehicle information and no price estimate. Sell the quality and reproducibility of the comparisons, rather than the size of an unverified listing count. Start with consumer research. Test willingness to pay for deeper comparisons, saved searches, reports or data exports after licences and product demand justify those features.

## Sources and route to coverage

| Source | Useful data | Implementation and rights |
| --- | --- | --- |
| [Department for Transport vehicle licensing data](https://www.gov.uk/government/statistical-data-sets/vehicle-licensing-statistics-data-files) | UK make, generic model, variant text, fuel, licensing status and quarterly stock counts. Separate datasets cover age and engine size. | Use VEH0120_UK as the UK catalogue backbone. Filter passenger cars, use the most recent complete quarter, normalise makes and generic models, and preserve the original labels. Cross-reference VEH0124 for ages when useful. Keep quarter, geography and attribution visible. Counts represent licensed stock, not cars on sale. |
| [ONS second-hand cars CPI index, D7E9](https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/d7e9/mm23) and [ONS source methodology](https://www.ons.gov.uk/economy/inflationandpriceindices/methodologies/qualityassuranceofadministrativedatausedincpih) | National monthly index with a long time series. The ONS receives daily Autotrader advert snapshots for the second-hand cars index. | Use the published index as a market benchmark with a clear unit of 2015 = 100. Import the official CSV on release, record the release vintage and preserve revisions. Keep it separate from sterling model-level charts. Its publication does not convey a licence to the underlying adverts. |
| Autotrader Connect and historic valuations | UK vehicle taxonomy, retail and trade valuations and, in the published capability, up to 540 days of historical valuations. | Ask for a bespoke consumer-publication and derived-data licence. Check which data fields are available and whether they are observed adverts or vendor estimates. The public website terms limit use of search results and extraction. The standard Connect rules restrict third-party sharing and consumer-facing metrics. Keep the integration disabled until the required rights are in writing. |
| Direct dealers and dealer management systems | Dealer cash asking prices, mileage, equipment, condition and, where supplied under contract, confirmed transaction amounts. | Begin with opt-in CSV/SFTP/HTTPS feeds from 5–10 independent retailers, then seek a multi-dealer provider. Ask for 12–24 months of permissioned backfill, daily updates, cancellations and explicit sale outcomes. Ask each contributor to warrant rights and provide specifications directly from its own records. |
| [cap hpi Black Book](https://www.cap-hpi.com/products-and-services/black-book-used-car-values/), [cap hpi API](https://developer.cap.co.uk/webservices), [Glass's data feeds](https://test.glass.co.uk/product/data-solutions/) and [Indicata](https://indicata.com/) | Vehicle matching and taxonomy, historic or current valuation products and market analytics. | Request coverage, sample extracts and a licence quote. Compare observations, vendor valuations, historical depth, sale channels, trim/option fields and ability to retain and publish aggregate results. Store vendor estimates as a distinct series. |
| [BCA market releases](https://www.bca.co.uk/news/used-car-sector-under-pressure-from-continuing-headwinds-20261104/) and auction partnerships | Wholesale benchmarks and potential permissioned transaction feeds. | Pursue confirmation of sale, bid/hammer price, VAT, buyer fees and post-sale status. Keep auction results apart from retail asking prices. Use a dedicated evidence threshold for classics or enthusiast cars and verify whether buyers' premiums are included. |
| eBay Browse and eBay API licence | Possible inventory discovery subject to supported UK categories and account approval. | Treat as a partner lead. Standard terms include restrictions on freshness, use and algorithm training. Confirm both UK passenger-car coverage and a separate licence for storage, modelling and publication before implementation. |
| [DVLA Vehicle Enquiry Service](https://developer-portal.driver-vehicle-licensing.api.gov.uk/apis/vehicle-enquiry-service/vehicle-enquiry-service-description.html) and [DVSA MOT history API](https://documentation.history.mot.api.gov.uk/) | Registration-based factual lookup. DVLA supports details such as make, colour, fuel, CO₂ and tax status. MOT has test dates and recorded odometer readings. Its authenticated bulk download supports snapshots and updates. | Use for user-requested checks or specifically permitted enrichment. Plan for approved credentials and the applicable terms. GB MOT records start in 2005 and Northern Ireland data coverage starts in 2017. Keep test mileage and listing mileage with dates and units, then flag implausible jumps and unit mismatches. |
| [Thatcham Research vehicle risk data](https://www.thatcham.org/pf/vehicle-risk-data/) | Legacy Group Rating and emerging Vehicle Risk Rating data. | Request redistribution rights and a derivative-ID crosswalk. Store the rating scheme, source, effective date, value and suffix separately. Show a legacy 1–50 group or VRR as supplied for the exact derivative. A rating describes the vehicle risk used by insurers and the buyer needs a personal premium quote. |

For every commercial source negotiate the rights to collect and backfill, retain raw and normalised records, link authorised datasets, publish individual facts or images if needed, publish cohort aggregates, train and evaluate models, publish forecasts, share exports, and keep permissible derived artefacts after termination. Set allowed territories, attribution, deletion requirements, storage duration, minimum aggregation thresholds, publishing throttles and auditing before enabling its adapter. A data-buying decision requires a sample and a cost for each of these rights. UK database rights also warrant review of systematic extraction and re-use. [UK Database Regulations](https://www.legislation.gov.uk/uksi/1997/3032/made).

Where direct dealer contracts include vehicle identifiers, hold them inside restricted access only as needed for matching. Use a keyed pseudonymous identifier for internal joins where permitted, store any key away from the observations, and exclude registrations, VINs, addresses, contact details and customer records from public outputs. Collect the least detail needed, document retention and lawful basis, and honour source takedowns and corrections. Keep any rights or licence code tied to published aggregates and trained models, so deletion and rebuild effects can be identified. [ICO guidance on pseudonymisation](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-sharing/anonymisation/pseudonymisation/) and [effective anonymisation](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-sharing/anonymisation/how-do-we-ensure-anonymisation-is-effective).

## Requirements and acceptance criteria

| Requirement | Acceptance test |
| --- | --- |
| Browse and compare the UK catalogue | Search by make, model or known aliases. Filter by fuel, body type and availability of price coverage, with progressive refinement for generation, trim, year and mileage. Select up to three models. Explain a missing datapoint without substituting a different trim. Use canonical routes suitable for links and search. |
| Show market history | Give price units, metric, market channel, last observation date, coverage and distinct vehicle count. Use a weekly or monthly median and interquartile range by default. Show observation count and gaps for low-volume periods. Include a consistent-composition index once supported. Give keyboard users access to the figures through a table or equivalent. |
| Make each price definition observable | Present dealer asking, private asking, confirmed retail sale, wholesale hammer, wholesale with fees, part-exchange offer and third-party valuation as separately tagged series. A listing price edit, disappearance, removal or expired auction produces no confirmed sale observation. Exclude monthly payments, finance-only prices without a comparable cash price, salvage and anomalous figures from ordinary retail cohorts. |
| Distinguish real data from demonstrations | Show the source on every chart and metrics panel. Public-market mode holds only live, dated sourceable values. Demo mode labels synthetic observed history, effects and forecasts in the interface and exported data. Broad catalogue records without price data have an explicit coverage state. |
| Compare like for like | Pair charts on the same period, cohort and scale when selected. Show separate fixed-spec and actual-stock market views. Compare costs across equivalent periods and mileage. Display the selected specification, dates and whether each value is observed, predicted, user-entered or missing. |
| Explain price drivers | Estimate conditional price differences holding age, miles, generation, trim, fuel and channel steady. Show the attribute being changed, compatible comparison group, effect size, uncertainty and number of observations per arm. Hide attributes with tiny groups, inconclusive overlap, poor option detection or extrapolation. Record factory options as present, absent or unknown using an evidence label. |
| Provide a usable forecast | Show P10, P50 and P90 forecast outcomes or an explicitly stated calibrated 80% range, plus the mileage and market scenario. Show validation results and model date where a forecast qualifies. Pause publication when evidence or performance fails the gate. Limit early publication to 3-, 6- and 12-month horizons. Allow longer PCP scenarios with user-supplied residuals or labelled estimates when a validated long-horizon forecast becomes available. |
| Estimate ownership costs | Display VED logic and rate version, the available derivative-specific Thatcham scheme, and editable assumptions for personal insurance, tyres, fuel or charging, servicing and selling fees. Present editable annual mileage and ownership period. Return a visible unknown or an explained range for unresolved inputs. |
| Compare PCP options | Support quote-based cash price, customer deposit, lender or dealer contribution, scheduled payments, term, optional final payment, fees, allowance and excess-mile rate. Show return, buy and buy-then-sell scenarios, including the potential effect of condition costs. Keep illustrative calculations and lender quote amounts distinguishable. |
| Deliver accessible GBP-first UX | Use pounds, miles, UK dates, visibly labelled charts, keyboard-operated controls, readable mobile layouts, and no colour-only distinction between observations and forecasts. Design to WCAG 2.2 AA where applicable. |
| Operate imports automatically | Stage, validate and publish on a configured schedule. A retried or duplicated feed rerun creates no extra observations. Broken or unexpectedly empty feeds raise an alert and leave the last valid data visible with updated freshness messaging. Enable owner-only feed management and audit history. |

## Data and ingestion

Prefer PostgreSQL for the production write store, encrypted object storage for time-limited raw feed files, a queued scheduler for ingestion, and a read-optimised API returning cached aggregates to the website. Keep training as a versioned job outside the web request. A prototype can prebuild static artefacts from known data or use a small managed Worker database for curated data. Separate partner credentials and raw records from public app delivery.

Minimum records:

- Canonical vehicle family and derivative. Store make, model, generation, body, trim, engine code and power, fuel, gearbox, drivetrain, known manufacture range, first registration, CO₂, list price data, and source IDs where licensed. Preserve aliases and confidence, and process low-confidence mappings through review.
- Listing and observation. Store source, external listing key, stable internal listing and vehicle identities, observation and import times, dealer ID or region when authorised, cash price in integer pence, price type, currency, status, odometer with unit, condition, write-off class where authorised, raw paint label and normalised colour, factory option codes, visibility and record provenance.
- Sale outcome. Store explicit transaction date and outcome, amount, fees and VAT basis, and source confirmation. Track delisted and censored separately. Prevent relists and dealer syndication from multiplying the vehicle's influence. Never link solely on make, model and price.
- Reference rate and rating. Store scheme, value or rules, start and end dates, territory, source, derivative matching confidence and capture decision. Keep contemporaneous and future policy boundaries visible.
- Dataset and model lineage. Store source licence version, permissible use flags, raw sample and batch hash, matching version, training cut-off, model version, validation metrics, and dated forecast or index artefacts.

Schedule approved dealer updates daily, DfT snapshots quarterly, ONS on its published release schedule and insurance data at the provider's permitted cadence. Ingest raw to short-lived storage, verify schema, validate price and mileage units, deduplicate, resolve derivative, validate outcomes, and atomically mark the new snapshot ready. Use keyed upserts for each source's stable event identity and a distinct state for price changes. Track when a price was observed and when it reached the system. Never infer a disappearance until a complete inventory snapshot confirms absence. Apply source-aware completeness checks for stock count, duplicate rate, price and mileage outliers, missing dimensions, drift, and stale observations. Build aggregates from the last valid complete snapshots until errors are resolved.

Cohort analytics should start with one observation per distinct car per period and seller channel. Publish medians, interquartile ranges and sample sizes. Compare a fixed-weight, stable-cohort index against the raw median to distinguish price changes from a shift in sales mix. Keep dates and composition rules versioned. Set initial public minimums of 30 deduplicated vehicles per period and an agreed source concentration policy. If a cohort fails, expand the period or widen the cohort with a visible label. Mark rare-model evidence explicitly when the cohort still fails.

## Cloudflare production path

Put the website and public JSON API on a Cloudflare Worker with static assets. Use a preview Worker and independent staging bindings to verify imports and calculations before production. Once the domain has been chosen and delegated or added to the Cloudflare account, point the apex or a chosen subdomain to the production Worker as a Custom Domain. Validate TLS, redirects, caching, clean canonical URLs, a health endpoint and a controlled rollback. [Worker Custom Domains](https://developers.cloudflare.com/workers/configuration/routing/custom-domains/).

Use a scheduled Worker as an unattended dispatcher. Maintain per-source schedules and approvals in an owner-controlled source register. Begin with daily checks for a new ONS release and a weekly check for DfT updates, skipping unchanged releases. Add daily eligible dealer and auction feeds as access arrives. A dispatcher finds due sources and enqueues a single idempotent job per source and release. A Cloudflare Workflow or queue consumer stages and validates each batch, retries transient errors with backoff, and records repeated failures for attention. Store raw extracts in private R2 with retention and a checksum, and snapshot cleaned public output in versioned objects. Leave the previous good version live until the next one passes and advances the published version atomically. Limit requests, respect allowed endpoints, and use date and time windows agreed with each provider. Backfills should have their own throughput limit. [Cron Triggers](https://developers.cloudflare.com/workers/configuration/cron-triggers/), [Workflows](https://developers.cloudflare.com/workflows/) and [Queue delivery guarantees](https://developers.cloudflare.com/queues/reference/delivery-guarantees/).

Use D1 initially for source state, catalogue indexes, a small normalised pilot and precomputed aggregates. Keep active price history growth under review against D1 limits. Export historical events to an R2 analytical archive. Move high-volume transactional storage to managed PostgreSQL when write load, join complexity or an individual dataset approaches storage limits. Use Hyperdrive if the API needs direct Worker-to-PostgreSQL access. Train in a scheduled Python environment outside the request handler, using Cloudflare Containers if the target account and measured runtime support it. Train from versioned snapshots, publish metrics and an approved forecast artefact to private storage, and switch the public forecast version only after validation. [D1 limits](https://developers.cloudflare.com/d1/platform/limits/), [Hyperdrive](https://developers.cloudflare.com/hyperdrive/) and [Cloudflare Containers](https://developers.cloudflare.com/containers/).

The owner dashboard should surface last successful and attempted run, data age, counts per source and reason for the most recent failure. Automatically retry transient failures, quarantine breaking schema changes and alert when a source is stale or a model stops passing. Save operational logs outside the public site. Keep market research and source discovery separate from automatic ingestion. A new provider is a prospect until its terms and access are recorded. The service can refresh approved sources and retrain without chat or manual intervention after deployment; missing credentials, contested rights, and a failed model quality gate require an owner decision.

## Model that improves with real observations

1. Establish a baseline using unchanged price, recent median by derivative and mileage band, seasonal naïve index forecasts, and an age/mileage depreciation curve. Report the strongest simple baseline by target and horizon.
2. Fit a partially pooled model of log cash price using time, age, mileage, generation, derivative, condition, paint, options, seller channel and region. Use non-linear age and mileage terms, regularisation and segment-level pooling. Include listing and transaction prices as distinct targets. Train a sale probability or time-to-sale model as a later independent task. It needs confirmed sales and explicit censoring.
3. Forecast the change in the fixed-composition market index by target segment with a damped trend or other backtested time-series model. Combine it with the value of the car at the future age and mileage under an explicit annual-mileage assumption. Keep the market movement and vehicle ageing components separately observable in the implementation, and avoid counting age or mileage twice.
4. Place quantile models or split-conformal calibration on chronologically held-out forecast residuals. Use favourable and adverse scenarios to describe different inputs. Display calibrated uncertainty per forecast horizon and market segment when observed calibration is adequate. Cap predictions outside the trained region or fall back to a broader supported cohort.
5. Backtest with rolling dates and embargoes appropriate to the horizon. Use only features and data published by each prediction date. Keep repeated sightings of the same vehicle out of opposing training and test splits, hold out dealers to detect single-source overfitting, and report results by fuel, age, price, region, source and major model. Track median absolute error in pounds, weighted percentage error, interval coverage, interval width and skill versus baseline. Recreate tests with actual frozen vintage and an as-of feature view.
6. Retrain monthly once enough new labelled outcomes accumulate. Compare the candidate to a frozen incumbent on recent temporal folds and stress tests. Promote only when it beats the incumbent or the strongest simple baseline by a useful margin and gives acceptable range coverage. Serve the last passing model if the new one fails and keep rollback and data lineage. Adding more observations creates an opportunity to improve accuracy, and the out-of-sample tests decide whether it improved.

Suggested pilot release gate for decision-grade model forecasts is at least 12 months of histories, 100 distinct vehicles in the selected group across comparable periods, and at least 50 holdout outcomes for the target horizon. Aim for 5% lower median absolute error than the strongest baseline and realised 80% interval coverage of 75–85% on the evaluation population, with uncertainty reported when slices are small. Data diversity and number of months matter as much as row count. Adjust these initial thresholds only with backtesting evidence. For feature effects require at least 50 supported vehicles per arm initially, with overlap in age, trim, mileage and sellers. Prefer a difference-in-prediction with vehicle-matched checks and uncertainty over a raw group average. Test performance on enthusiast cars and new generations separately. Enable 24–48 month forecasts only after matched-horizon validation demonstrates useful skill.

## UK ownership and PCP calculations

For cars first registered on or after 1 April 2017, the 2026–27 standard single annual payment is £200 after the first tax. A £440 supplement applies for five years from the second tax for cars above the relevant original list price threshold. Use over £40,000 for non-zero-emission cars and over £50,000 for applicable electric cars, including applicable cars registered in 2025–26. Pre-April 2025 zero-emission cars are exempt from the supplement. Post-registration VED for older vehicles needs separate rules for the 2001–2017 CO₂ cohorts, pre-March 2001 engine-size bands and applicable exemptions. Model year and used asking price do not determine the supplement. Test 1 March 2001, 1 April 2017 and 1 April 2025 boundaries, exactly £40,000 and £50,000, the end of the supplement, missing list price, exceptions and future rate changes. Use the GOV.UK checker for an exact vehicle. The government has announced mileage-based eVED for April 2028 and it belongs in a separately versioned future-cost assumption, subject to legislation and effective-date verification. [GOV.UK vehicle tax rates](https://www.gov.uk/vehicle-tax-rate-tables), [V149](https://www.gov.uk/government/publications/rates-of-vehicle-tax-v149) and [HMRC eVED policy](https://www.gov.uk/government/publications/electric-vehicle-excise-duty-eved/electric-vehicle-excise-duty-eved).

The customer pays the initial deposit and scheduled instalments in both return and buy scenarios. In a return scenario add fees and contract-specific excess mileage and condition charges where they apply. In a buy scenario add the optional final payment and purchase fees, keeping early settlement and end-of-term figures distinct. A buy-then-sell scenario also includes the proceeds available in the selected channel after selling costs. Compare total cost of use over equal terms, including running costs. Dealer or lender contributions should reduce the amount financed without appearing as cash paid by the customer. Prefer entered lender instalments and fees to an illustrative APR approximation. If calculating an approximate payment, discount the balloon and test zero APR, nonzero APR, quote-supplied instalments, changing excess mileage, negative equity and a return with zero charges. Compare low, mid and high sale proceeds against the balloon. A positive forecast spread can offset ownership costs, and the buyer still incurs deposit, interest, servicing, insurance, tax, transaction costs and any fall in real resale value. Obtain a permissions and financial-promotions review before adding lender referrals, affiliate deals or personalised credit recommendations. [MoneyHelper PCP](https://www.moneyhelper.org.uk/en/everyday-money/buying-and-running-a-car/financing-buying-car-personal-contract-purchase-pcp) and [FCA credit broking guidance](https://www.fca.org.uk/firms/regulatory-guide-credit-brokers).

## Delivery plan

| Stage | Work | Evidence to advance |
| --- | --- | --- |
| Now · product preview | Launch dedicated model pages, price and specification filters, the ONS benchmark, licensed Autoza asking-price data, UK cost tools, PCP and labelled demo forecasts. Prepare the ingest schema and sample templates. | Search, filters, comparisons, calculations, provenance and demo labels checked. Buyers can explain observed vs forecast and asking vs sale prices. |
| Weeks 1–4 · data pilot | Recruit 5–10 dealers with permission, seek wholesaler and dataset quotes, and sample the first 20 high-volume used models. Agree the contract rights and feed specification. Begin automatic permissioned ingestion and collect a historical backfill where possible. | Five stable feeds or equivalent multi-dealer coverage, three weeks of repeatable imports, reviewed match quality and clear data ownership. Commit to paid data only after the sample, terms and pilot results pass review. |
| Weeks 5–12 · live research beta | Publish asking trends for supported cohorts, vehicle comparisons, orientation around exact derivatives, match audits and usable confidence levels. Introduce confirmed transaction and wholesale views only where separately supported. | A target of 20+ published cohorts with 30+ weekly or monthly distinct vehicles per displayed period, price/coverage telemetry, source concentration review and direct buyer usability tests. |
| After history is available · forecasting beta | Backtest vehicle and market components, publish 3/6/12-month forecasts that pass, monitor actuals and retrain under evidence gates. Explore option impact and longer PCP residual comparisons once support passes. | Performance meets the forecast release gate, the model can roll back, and every published estimate ties to the correct channel and training vintage. |
| Scale | Expand through licensed UK providers and permissioned dealer integrations. Improve model-generation matching and specification. Test subscriptions or reports; evaluate regulated features independently. | Broader regions and age bands, sustained feed uptime, profitable data rights, buyer retention and reproducible validation. |

Watch source freshness, import success, distinct cars per cohort, derivative match coverage and error, options missingness, confirmed transaction share, seller/source concentration, model error and calibration, saved comparisons and completion of PCP scenarios. Keep a changelog of price definition, market coverage and methodology changes. Plan any data acquisition spending after seeing a usable sample and written rights.
