API Documentation

Everything you need to integrate with the DealerPricing API

Quick Start

1. Get your API key

Sign up for an account and create an API key from the Keys page.

2. Make your first request

curl -X POST https://www.dealerpricing.co.uk/api/v1/vehicle/decode \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"vrm": "AB12CDE"}'

Every endpoint takes vrm (registration). The vehicle data endpoints — decode, spec, valuation and provenance — also accept vin (chassis number, 5 to 17 characters) in its place. Tax & MOT, the market endpoints and pricing insights need a registration; sending a VIN there returns a 400 with the endpoints that accept one. The rule is the same for sandbox and live keys.

3. Handle the response

{
  "success": true,
  "data": {
    "vehicle": {
      "vrm": "AB12CDE",
      "make": "BMW",
      "model": "3 Series",
      ...
    }
  },
  "meta": {
    "request_id": "req_abc123",
    "cost_pence": 16,
    "balance_pence": 984,
    "is_sandbox": false
  }
}

Authentication

All API requests must include your API key in the X-API-Key header.

X-API-Key: dp_live_your_api_key_here
Sandbox Keys: Keys starting with dp_sandbox_ are free and answer only for the published test registrations below. Sandbox data may not be accurate and is for testing purposes only. Every sandbox response carries meta.sandbox: true and a notice saying so, and it must never be shown to end users or used to make decisions. Any other registration returns 404 SANDBOX_VRM_NOT_ALLOWED.

Sandbox registrations

The complete set a sandbox key can query, grouped by the scenario each one exercises. The same list is available as JSON from GET /api/v1/sandbox/vrms (no key required). Market endpoints return the market snapshot taken the first time a plate was queried in the sandbox.

Loading sandbox registrations…

Rate Limits

LimitLive keysSandbox keys
Per second5 requests2 requests
Per minute100 requests30 requests
Per day, per key1,000 requests300 requests
Per day, all sandbox keys on the account1,000 requests

Rate limit headers are included in every response: X-RateLimit-Remaining-*. All packages can request custom limits.

API Endpoints

Base URL: https://www.dealerpricing.co.uk/api

Vehicle Data

POST/v1/vehicle/decode
Get comprehensive vehicle details from VRM
POST/v1/vehicle/tax-mot
Current tax status and MOT history
POST/v1/vehicle/valuation
Trade, retail, and private valuations
POST/v1/vehicle/spec
Full vehicle specifications
POST/v1/vehicle/provenance
Finance, stolen, write-off checks

Market Data

POST/v1/market/active
Similar vehicles currently for sale
POST/v1/market/sold
Similar vehicles recently sold
POST/v1/market/insights
Supply, demand, and pricing analytics

Analysis

POST/v1/pricing/insights
Comprehensive pricing analysis

Error Codes

CodeHTTP StatusDescription
INVALID_API_KEY401API key is invalid or not found
INSUFFICIENT_BALANCE402Account balance too low
RATE_LIMIT_EXCEEDED429Too many requests
INVALID_VRM400VRM format is invalid
VEHICLE_NOT_FOUND404No data found for this VRM
UPSTREAM_ERROR502A data source did not respond — safe to retry

You only pay for successful lookups. A request that ends in a 404, 500 or 502 is not charged, and the error response carries the request_id and your current balance_pence.