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": "SA22TLZ"}'

The vehicle endpoints, the four registration-based market endpoints, advert history and live adverts take vrm (registration). The vehicle data endpoints (decode, spec, valuation and provenance) also accept vin (chassis number, 5 to 17 characters) in its place. Service history accepts a vin too (the full 17 characters). Tax & MOT, the registration-based market endpoints and pricing insights need a registration; sending a VIN there returns a 400 with the endpoints that accept one. The market search and dealer endpoints take filters instead of a registration (see the market data guide). The rule is the same for sandbox and live keys.

3. Handle the response

{
        "success": true,
        "data": {
          "vehicle": {
            "vrm": "SA22TLZ",
            "make": "Volkswagen",
            "model": "Polo",
            ...
          }
        },
        "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_VEHICLE_NOT_AVAILABLE (SANDBOX_VRM_NOT_ALLOWED on version 1 error codes).

Rate Limits

Package limits (per account)

Every live call counts towards your package's limits across all your live keys, and some endpoints also have a daily cap per account. A package change applies to the limits straight away.

LimitPay As You GoStarterProEnterprise
Per second251020
Per minute60100300600
Per day5002,0005,00015,000
Daily cap per endpoint
Provenance25100250500
Service history102550100
Valuation2005001,5005,000
Active listings2007502,0005,000
Sold listings2007502,0005,000
Market insights2007502,0005,000
Pricing insights2007502,0005,000
Specification3001,0003,00010,000
Vehicle decode3001,0003,00010,000

A call over a package limit is refused with 429 and the code PACKAGE_LIMIT_EXCEEDED; a call over an endpoint's daily cap with 429 and ENDPOINT_DAILY_CAP_REACHED. Both carry Retry-After (seconds), are shown in your request log and are never charged. Live responses carry X-Package-Limit-Day, X-Package-Remaining-Day and, for capped endpoints, X-Endpoint-Limit-Day and X-Endpoint-Remaining-Day.

Key limits (per key)

LimitLive keysSandbox keys
Per secondYour package's limit2 requests
Per minuteYour package's limit30 requests
Per day, per keyYour package's limit300 requests
Per day, all sandbox keys on the account-1,000 requests

A live key follows your package's limits, so one key can use the whole package, and moves with the package when you change it. You can set a key lower in Keys (never higher than the package); a call must be within both the key's and the package's limits. Key limit headers are included in every response: X-RateLimit-Remaining-*; a call over a key limit is refused with 429 and RATE_LIMIT_EXCEEDED. Daily limits reset at midnight UK time (Europe/London, GMT or BST); X-RateLimit-Reset-Day gives the seconds until then.

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/dp-valuation
The DealerPricing retail value from comparable cars, at your mileage
POST/v1/vehicle/spec
Factory standard equipment and the optional extras offered
POST/v1/vehicle/provenance
Finance, stolen, write-off checks
POST/v1/vehicle/service-history
Digital service records (asynchronous, see Service history)
GET/v1/vehicle/service-history/{request_id}
Progress and result of a service history request (free)

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

Market search and dealers

POST/v1/market/listings
Search adverts for sale by filters
POST/v1/market/sold-listings
Search cars sold in the last 90 days
POST/v1/market/price-drops
Adverts whose price has been cut
POST/v1/market/stats
Price, mileage and days on sale statistics
POST/v1/market/facets
Counts of cars by make, model, fuel and more
POST/v1/market/distribution
Counts of cars in price or mileage bands
POST/v1/market/overview
For sale and sold figures in one answer
POST/v1/market/listing
Every detail of one advert
POST/v1/vehicle/advert-history
Past adverts for a registration
POST/v1/vehicle/live-adverts
Current adverts for a registration
POST/v1/dealers/search
Find dealers by area, type or group
POST/v1/dealers/detail
One dealer in full
POST/v1/dealers/stock
The cars a dealer is advertising

Analysis

POST/v1/pricing/insights
Comprehensive pricing analysis

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). The four registration-based market endpoints answer for the market test vehicles (SA22LZH, M40GAH, SA22TLZ, V9LAW, RO21PAD, S7LAD, SA22KWR, RE22YCA, AB58MEL, BO55AUP, LR66KZA, KS03APE) from a stored, fictional market snapshot; other sandbox plates return 404 SANDBOX_QUERY_NOT_AVAILABLE there. The market search endpoints use their own sample (see the market data guide).

Loading sandbox registrations…

Tax & MOT

Two government sources answer this endpoint: DVLA (tax status, MOT status and the vehicle details) and DVSA (MOT test history and its own record of the vehicle). data.sources shows what each one answered: found, not_found or unavailable.

  • DVLA holds no record for some vehicles, often classic and historic vehicles, or registrations that have been moved to another vehicle or put on retention. The vehicle is then identified from DVSA: vehicle.source is dvsa, the make, model, colour, fuel, engine size and first-registration date come from the MOT record, and tax and mot are omitted because DVLA is the only source for them.
  • No MOT tests can be normal: vehicles over 40 years old can be exempt from the MOT, a new vehicle has its first test at three years, and MOT records online go back to 2005. mot_history.total_tests is then 0.
  • If neither source identifies the vehicle you get 404 VEHICLE_NOT_FOUND and are not charged.
  • A call is charged at the endpoint price whenever either source returns data, even if the other could not be reached. For example, if DVLA is temporarily unavailable but DVSA knows the vehicle, you get the vehicle details and MOT history with sources.dvla set to unavailable and no tax block.
  • If neither source returns data and one of them could not be reached (an error or a timeout), you get 502 UPSTREAM_ERROR and are not charged, so you can retry.
{
        "vrm": "YN63BAA",
        "sources": { "dvla": "not_found", "mot": "found" },
        "vehicle": {
          "make": "BMW",
          "model": "1 SERIES",
          "colour": "BLACK",
          "year_of_manufacture": 2013,
          "first_registration_date": "2013-09-04",
          "engine_capacity": 1995,
          "fuel_type": "DIESEL",
          "source": "dvsa"
        },
        "mot_history": {
          "total_tests": 1,
          "tests": [
            { "test_date": "2016-04-12T10:38:59.000Z", "expiry_date": "2017-04-11", "result": "PASSED", "odometer_value": "55397", "odometer_unit": "MI", "defects": [] }
          ]
        }
      }

Vehicle decode and provenance

The two endpoints answer different questions. Use /v1/vehicle/decode for the vehicle's DVLA record: identity, keepers, plate changes, colour, import and export, scrapped status and tax. Use /v1/vehicle/provenance for the police stolen record, the insurers' write-off register and outstanding finance. Mileage and MOT history come from /v1/vehicle/tax-mot.

Decode: the full DVLA record

Next to the vehicle fields (make, model, engine, power and so on), decode returns these groups. Dates are YYYY-MM-DD (UK date) and amounts are numbers.

  • registration: first_registered (anywhere, so an import's first date abroad), first_registered_uk, used_before_first_registration, cherished_transfer_marker.
  • keeper_history[]: one row per keeper change, with previous_keepers (the count at that change), keeper_start_date and previous_keeper_disposal_date. The latest change comes first and matches previous_keepers.
  • v5c_issue_dates[]: the date each logbook (V5C) was issued.
  • plate_changes[]: previous_vrm, current_vrm, date_of_transaction, date_of_receipt, transfer_type.
  • colour_history: current, original, previous, changes, last_change_date.
  • import_export: is_imported, imported_from_ni, imported_from_outside_eu, import_date, is_exported, export_date.
  • scrapped: is_scrapped, is_unscrapped, scrap_date, certificate_of_destruction.
  • tax: co2_g_per_km, co2_band, tax_band and the vehicle tax rates in pounds: first_year_six_months_gbp, first_year_twelve_months_gbp, standard_six_months_gbp, standard_twelve_months_gbp, premium_vehicle_six_months_gbp, premium_vehicle_twelve_months_gbp.
  • dvla: the values as registered with DVLA (make, model, body_type, fuel_type, wheelplan, engine_capacity_cc, power_kw, seats, gross_weight_kg, mass_in_service_kg, power_to_weight_ratio, max_braked_trailer_mass_kg, max_unbraked_trailer_mass_kg). The top-level fields prefer the manufacturer's model data when we hold it, so make, model, body_type, power_kw and seats can be written differently there.

As on every endpoint except provenance, a field or group we do not hold for the vehicle is left out of the decode answer. An empty list (for example "plate_changes": []) is a real answer: the record says there are none. raw always holds VehicleDetails, plus ModelDetails when model data is held (before November 2026, raw was the bare vehicle document when there was no model data).

"keeper_history": [
        { "previous_keepers": 2, "keeper_start_date": "2024-05-17", "previous_keeper_disposal_date": "2024-05-17" },
        { "previous_keepers": 1, "keeper_start_date": "2022-03-28", "previous_keeper_disposal_date": "2022-03-28" }
      ],
      "plate_changes": [
        { "previous_vrm": "EN21CKA", "current_vrm": "J1MUR", "date_of_transaction": "2022-05-03",
          "date_of_receipt": "2022-05-03", "transfer_type": "DataMove" }
      ],
      "import_export": { "is_imported": false, "imported_from_ni": false, "imported_from_outside_eu": false, "is_exported": false },
      "tax": { "co2_g_per_km": 0, "first_year_twelve_months_gbp": 10, "standard_six_months_gbp": 110, "standard_twelve_months_gbp": 200 }

Provenance: null means not held for this check

  • Provenance keeps every field in the answer. A field set to null means we do not hold that data point for this check, never "no". false or 0 is a real answer: the record was checked and is clear.
  • finance, stolen and write_off are answered from their own records. If one of those records could not be read, its fields are null and alerts.has_alerts is null unless another alert is already known.
  • Write-off and insurer theft rows carry category, status, loss_date, entry_date, insurer, insurer_branch, insurer_code, claim_number, contact_number, theft_indicator, theft_indicator_literal, loss_type and, when a record was taken off the register, removed_date. stolen.record_added_date is when the police record was created.
  • Keeper history, plate changes, import and export, scrapped status, colour and logbook dates are not part of provenance and are null there: call decode for them. Mileage is always null in provenance: call tax-mot for MOT mileage readings.
  • Finance rows carry agreement_date, agreement_type, agreement_number, agreement_term_months, finance_company, contact_number and vehicle_description.

Market data

/v1/market/active, /v1/market/sold, /v1/market/insights and /v1/pricing/insights look at cars like the one you send: live adverts from UK dealer websites, and adverts that have recently sold. To search the whole market by filters, follow a registration's adverts or look up dealers, see the market data guide.

Request fields

  • vrm (required): the registration.
  • rows (active and sold listings): how many listings to return. Default 50, maximum 200.
  • match (active and sold listings, optional): which optional filters to use, see below.
  • price (pricing insights, optional): your asking price in pounds, to see where it sits in the market.

Which cars are compared

  • Always matched: make, model, year, trim (the trims that match the car) and number of doors.
  • Matched unless you say otherwise: gearbox (transmission), body type (body_type) and engine size within 0.2 litres (engine_size). To turn one off, send match with the ones you want to keep, for example "match": "transmission" keeps the gearbox and drops body type and engine size. Without match, all three apply.
  • Fuel type and drive are not matched yet. If you list them in match, the response names them in match_not_applied.
  • match_criteria in the response lists what was matched for your request.
  • The search is never widened for you. If only a few cars match, you get those few.

Listings and totals

  • Listings come cheapest first, and only adverts that show a price are included.
  • total_found is how many matching adverts there are, not how many were returned. When there are more than we fetch, it is worked out from the share of fetched adverts that matched, and total_estimated is true.
  • The insights count live supply the same way: supply.active_listings with supply.estimated, and market_overview.active_supply with active_supply_estimated.
  • Sold figures in the insights (sold in the last 90 days, days to sell, sold prices) cover every sold advert for the same make, model, trims and year. Price figures leave out adverts with no price.
  • The summary in sold listings covers only the cars in that response, which are the cheapest. For sold prices across the whole market, use the insights.
  • With price, pricing insights ranks your price against every matching advert with a price. compared_with says how many, and estimated is true when that number is estimated.
curl -X POST https://www.dealerpricing.co.uk/api/v1/market/active \
        -H "X-API-Key: your_api_key_here" \
        -H "Content-Type: application/json" \
        -d '{"vrm": "SA22TLZ", "rows": 100}'

      {
        "success": true,
        "data": {
          "vrm": "SA22TLZ",
          "total_found": 87,
          "total_estimated": true,
          "listings_returned": 61,
          "match_criteria": "make,model,year,variant,transmission,body_type,doors",
          "listings": [
            { "price": 9495, "miles": 18250, "year": 2022, "variant": "Life Tsi",
              "transmission": "Manual", "days_on_market": 12, ... }
          ]
        },
        "meta": { "request_id": "...", "cost_pence": 15, "balance_pence": 985, "is_sandbox": false }
      }

Charging

A registration our vehicle data cannot identify returns 404 VEHICLE_NOT_FOUND and is not charged. If one of our data sources fails you get 502 UPSTREAM_ERROR, also not charged, and you can retry.

What changed in October 2026

  • Listings responses could hold no more than 10 cars. They now return up to rows (maximum 200).
  • total_found and the supply figures were counts of returned cars. They are now market totals, so supply levels, the market rating and price positions change.
  • Gearbox matching now works: a manual car is no longer compared with automatics, or the other way round.
  • Adverts without a price are no longer listed first.
  • match_criteria used to repeat a default list; it now shows what was really matched.
  • A registration we cannot identify used to return an empty, charged answer. It is now a free 404.
  • Sandbox market data is taken again, the new way, the first time each sandbox registration is asked for.

Service history (asynchronous)

A digital service history comes from the vehicle's manufacturer, and that request is not answered instantly: most complete within a few minutes, around one in ten takes over two hours, and a request is abandoned after four days. So POST /v1/vehicle/service-history accepts the request and answers 202; you then either poll the status URL or give us a callback_url and we call you when it is done. Send the registration (vrm) or the full 17 character VIN (vin). If you send both, the registration is searched and the VIN is stored with your request and returned in every response; a VIN-only request is searched by VIN and answers with your vin and no vrm. The price is the same either way. Once completed you receive the extracted records and, when the manufacturer supplied one, a link to the PDF (pdf_url).

Manufacturer coverage and charging

Digital service history is currently available for vehicles from the following manufacturers only: Audi, BMW, Cupra, Ford, Jaguar, Land Rover, Lexus, Mazda, Mercedes-Benz, MG, MINI, Nissan, Porsche, Renault, Rolls-Royce, SEAT, Skoda, Smart, Toyota and Volkswagen. Mercedes covers Mercedes-Benz and Mercedes-AMG; Volkswagen covers VW.

A search that finds no records is refunded in full. A vehicle from a manufacturer outside the list above, or a covered vehicle with no digital records, returns record_count: 0 and the price comes back automatically (refunded_pence,refund_reason: "no_records"). Searches that return records are charged. We do not check the make before submitting.

1. Request

curl -X POST https://www.dealerpricing.co.uk/api/v1/vehicle/service-history \
        -H "X-API-Key: your_api_key_here" \
        -H "Content-Type: application/json" \
        -d '{"vrm": "SA22TLZ", "callback_url": "https://example.com/hooks/dealerpricing"}'

      HTTP/1.1 202 Accepted
      {
        "success": true,
        "data": {
          "request_id": "6c1f4e2a-...",
          "vrm": "SA22TLZ",
          "status": "pending",
          "message": "Request accepted. The manufacturer is being asked ...",
          "requested_at": "2026-09-08T09:00:00.000Z",
          "check_after_seconds": 30,
          "status_url": "https://www.dealerpricing.co.uk/api/v1/vehicle/service-history/6c1f4e2a-...",
          "callback_url": "https://example.com/hooks/dealerpricing",
          "cost_pence": 200,
          "refunded_pence": 0
        },
        "meta": { "request_id": "...", "cost_pence": 200, "balance_pence": 1800, "is_sandbox": false }
      }

Every request runs a fresh search of the manufacturer network, so you always get the latest records. If a search for that vehicle is already in progress, or was made in the last 10 minutes, we add your request to it rather than asking twice (charged as a normal request; if that search has already finished, the answer comes back at once with 200). Posting the same plate again while your request is open returns the open request (202) and is not charged, although your balance must still cover the price to make the call: polling belongs on the status endpoint below. As everywhere in this API, fields with no value (completed_at, error, service_history while pending) are left out of the request and status answers. Callbacks and webhook events are the exception: they send those fields as null.

2. Poll the status (free)

curl https://www.dealerpricing.co.uk/api/v1/vehicle/service-history/6c1f4e2a-... \
        -H "X-API-Key: your_api_key_here"

      {
        "success": true,
        "data": {
          "request_id": "6c1f4e2a-...",
          "vrm": "SK22AOM",
          "status": "completed",
          "completed_at": "2026-11-05T09:00:20.000Z",
          "cost_pence": 0,
          "service_history": {
            "record_count": 7,
            "services": [
              { "date": "2022-04-21", "date_raw": "21/04/2022", "type": "Service / Repair",
                "mileage": 12, "mileage_raw": "12 mi", "mileage_unit": "mi",
                "workshop": "Sample Motors (Main Dealer), Exampleton", "notes": "Pre-delivery inspection" },
              { "date": "2023-03-14", "date_raw": "14/03/2023", "type": "Service / Repair",
                "mileage": 9214, "mileage_raw": "9,214 mi", "mileage_unit": "mi",
                "workshop": "Sample Motors (Main Dealer), Exampleton", "notes": "Oil change service" },
              { "date": "2024-02-02", "date_raw": "02/02/2024", "type": "Service / Repair",
                "mileage": 18905, "mileage_raw": "18,905 mi", "mileage_unit": "mi",
                "workshop": "Sample Motors (Main Dealer), Exampleton", "notes": "Inspection with oil change" },
              { "date": "2024-07-15", "date_raw": "15/07/2024", "type": "Service / Repair",
                "mileage": 33600, "mileage_raw": "33,600 km", "mileage_unit": "km",
                "workshop": "Example Garage Europe, Exampleville", "notes": "Puncture repair" },
              { "date": "2024-09-11", "date_raw": "11/09/2024", "type": "Service / Repair",
                "mileage": 23410, "mileage_raw": "23,410 mi", "mileage_unit": "mi",
                "workshop": "Example Autos Service Centre, Exampleton", "notes": "Brake fluid change" },
              { "date": "2025-03-28", "date_raw": "28/03/2025", "type": "Service / Repair",
                "mileage": 29876, "mileage_raw": "29,876 mi", "mileage_unit": "mi",
                "workshop": "Example Autos Service Centre, Exampleton", "notes": "Oil change service" },
              { "date": "2026-03-06", "date_raw": "06/03/2026", "type": "Service / Repair",
                "mileage": 38120, "mileage_raw": "38,120 mi", "mileage_unit": "mi",
                "workshop": "Sample Motors (Main Dealer), Exampleton", "notes": "Inspection with oil change and pollen filter" }
            ],
            "retrieved_at": "2026-11-05T09:00:20.000Z",
            "sample": true,
            "sample_notice": "Sample data for testing. These are not the records of this or any real vehicle."
          },
          "pdf_url": "https://www.dealerpricing.co.uk/api/service-history/pdf/5a3b1e00-5a3b-4e00-8000-000000000001?t=...",
          "pdf_url_expires_in_seconds": 604800,
          "readable_until": "2026-11-12T09:00:20.000Z",
          ...
        }
      }

status moves through pending (the manufacturer is being asked) → processing (records found, being extracted) → completed, or ends as failed. Wait at least check_after_seconds between polls. Status checks do not cost anything and do not count towards your balance: reading a request you have already paid for never runs a new search. A completed request includes pdf_url when the manufacturer supplied a PDF. The link opens only that vehicle's PDF and stops working after at most 7 days (pdf_url_expires_in_seconds); call the status endpoint again for a new link, free of charge. A finished request (completed or failed) can be read for 7 days after it finished, shown as readable_until. After that the status endpoint answers 410 REQUEST_EXPIRED, any PDF link stops working, and a new request (a new, charged search) is needed. Save the records and the PDF on your side if you need them for longer.

3. Or receive a callback

Pass an https callback_url and we POST the finished request to it once: the same JSON as the status endpoint, wrapped as below. Respond with any 2xx within 10 seconds; otherwise we retry after 1, 10 and 60 minutes. Every callback is signed: verify the DP-Signature header (see webhooks) or confirm with the status endpoint using your API key before you act on the body.

POST https://example.com/hooks/dealerpricing
      DP-Signature: t=...,v1=...
      DP-Event-Id: ...
      DP-Event-Type: service_history.completed
      DP-Delivery-Attempt: 1

      { "event": "service_history.completed", "request_id": "6c1f4e2a-...", "sent_at": "...", "data": { ...status response... } }

Charging

  • The endpoint price is taken when the request is accepted (cost_pence).
  • It is refunded in full when the search finds no records (record_count: 0, including manufacturers outside the coverage list) and when the request fails because of a fault (status failed: the provider or our pipeline could not complete it, or it was abandoned after four days). refunded_pence shows the refund. Searches that return records are charged.
  • A request is charged at the price in force when it is accepted; any refund gives back exactly that amount.
  • Each new request is a fresh search and is charged; status checks and new PDF links for a request you already made are free for 7 days after it finished.
  • Up to 25 requests may be in progress on an account at once (429 beyond that).

Sandbox

Sandbox keys go through the same lifecycle so you can build the polling or callback handling properly: 202 pending first, then completed about 20 seconds later with frozen records and, for plates that have one, a pdf_url to a sample manufacturer PDF so you can test the download. Sandbox requests are free. Only the plates listed under Service history available in the sandbox registrations answer; other sandbox plates return 404.

Error Codes

The table shows the version 1 codes. Accounts created from 5 November 2026 get the more precise version 2 codes; every code in both versions, and when each account moves over, is on the error codes page. Errors sent before your key is recognised (a missing or unknown key) use version 1 unless you send the DP-Error-Codes: 2 header.

CodeHTTP StatusDescription
INVALID_API_KEY401API key is invalid or not found
INSUFFICIENT_BALANCE402Account balance too low
RATE_LIMIT_EXCEEDED429Too many requests on this key
PACKAGE_LIMIT_EXCEEDED429Your package's limit across all live keys was reached (per second, minute or day)
ENDPOINT_DAILY_CAP_REACHED429Your package's daily cap for this endpoint was reached; it resets at midnight UK time
INVALID_VRM400VRM format is invalid
VEHICLE_NOT_FOUND404No data found for this VRM (or no request with that id)
INVALID_REQUEST400A parameter is not acceptable (e.g. a VIN on a registration-only endpoint, or a non-https callback_url)
REQUEST_EXPIRED410A service history request finished more than 7 days ago and can no longer be read: make a new request
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 (except an advert or dealer id that no longer exists on the market endpoints: the lookup was made, so LISTING_NOT_FOUND and DEALER_NOT_FOUND are charged), and the error response carries the request_id and your current balance_pence.

On a monthly package your monthly fee comes back as plan credit, which pays for calls before your balance. While you have plan credit, responses also carry plan_credit_pence (what is left) and from_plan_credit_pence (how much of cost_pence it paid). A refund for a failed call goes back to whichever of the two it was paid from.