Switch from MotorAPI.dk to Motorbay: endpoints, fields and a checklist

You call MotorAPI.dk today and are considering moving plate and VIN lookups to Motorbay. Here are the differences in access and endpoints, what MotorAPI's documentation says about fields, where the fields live at Motorbay, code before and after, and a plan for switching without guessing.

By · Last checked

Who this is for and what changes

This guide is for you if you call MotorAPI for plate or VIN lookups and want to move to Motorbay. Two things change in your code: the address and the key, and that environment and equipment come with include in the same response instead of from endpoints of their own. The lookup still takes a plate or a VIN.

We read MotorAPI's documentation and front page on 6 Nov 2026, and everything here about MotorAPI comes from there. Motorbay is a REST API for Danish vehicle data from Motorstyrelsen's public weekly extract. The Danish Motor Register as an API explains what the extract is. Every Motorbay field and path we name is in the OpenAPI document, which is the API's contract.

What changes from MotorAPI to Motorbay MotorAPI Motorbay
Base URL https://v1.motorapi.dk https://api.motorbay.app/v1
Key The X-AUTH-TOKEN header The X-Api-Key header
Plate or VIN lookup GET /vehicles/{identifier}, one endpoint for both GET /v1/vehicles/lookup/{plateOrVin}, one endpoint for both
Environment GET /vehicles/{identifier}/environment include=environmentalInformation,fuelTypes on the lookup
Equipment GET /vehicles/{identifier}/equipment include=equipment on the lookup, or /v1/vehicles/{vehicleId}/equipment
Every vehicle with a plate GET /vehicles with registration_number and optional status GET /v1/vehicles?registrationNumber=, a paged list
Many plates at once One call per plate POST /v1/vehicles/plates, up to 500 with a result per plate
Errors HTTP status with text in errors: 401, 403 over the account's daily limit, 404, and 503 with Retry-After application/problem+json with a stable code, for example VehicleNotFound
The extract's date The documentation says how often the data is updated, but a response carries no date The Motorbay-Data-As-Of header on every response and GET /v1/dataset

What each one offers

MotorAPI's documentation and OpenAPI document describe plate or VIN lookups with technical detail, the latest inspection and leasing, environment, equipment, a list per plate, a search on the start of a plate and a usage endpoint. About the data, MotorAPI writes that it comes from Motorstyrelsen's extract, which is published about once a week and imported the same night. Motorbay also imports Motorstyrelsen's weekly extract as it is, puts the extract's date on every response, and adds use cases such as the used-car check and batch lookups on top.

Feature MotorAPI Motorbay
Basic data: make, model, variant, status, weight and engine Yes Yes
Environment, fuels and equipment Yes Yes
Technical detail: dimensions, axles, trailer, type approval Partly Dimensions, axles, trailer weights, tyres and rims. No type approval Yes
Latest inspection with result and odometer Yes mot_info Yes
Blocks, permits and leasing periods Partly Leasing. No blocks or permits Yes
Used-car check in one call with flags by severity No Yes /check
Up to 500 plates in one call No Yes
Search by make, kind, usage, color and model year Partly /vehicles/_search: start of the plate, make, model and status Yes
A list of every vehicle that has carried a plate Yes Yes
The extract's date on every response No Yes
An OpenAPI document Yes OpenAPI 3.1 Yes
Stable error codes No HTTP status and a text Yes
MCP server for AI agents No Yes
Free lookups with no card Yes 100 a day, about 3,000 a month Yes Free plan
One endpoint for a plate or a VIN Yes Yes /lookup/{plateOrVin}
A registration status filter on the list Yes Yes registrationStatus
Statistics: counts grouped by make, kind, model year and more No Yes /v1/statistics/vehicles
Your own usage in the API, without it counting Yes GET /usage Yes GET /v1/usage

Data is data as of the extract's date, not real-time, and every Motorbay response has the Motorbay-Data-As-Of header with the time of the extract you are getting. If two values don't come from the same date, they can differ. That is the first thing to look for when you compare. Motorstyrelsen gives no support on using the extract and can't guarantee that the updates happen. Motorbay is not affiliated with Motorstyrelsen. Motorbay serves technical data about vehicles, not about people.

Field map: from MotorAPI to Motorbay

MotorAPI's documentation now describes the response fields in its Vehicle model, and the table below follows it. It shows the fields most people use and those with a counterpart at Motorbay, so also check the fields against the responses you have stored yourself. Where it says Closest field, it is the best match, but neither source says it is the same thing.

The vehicle

GET /v1/vehicles/plate/{plate} and /vin/{vin}

MotorAPI Motorbay
registration_number registrationNumber null when the vehicle has no plate.
vin vin
status status, registrationStatus Closest field MotorAPI's example shows Registreret. Motorbay has the vehicle's status and its registration status apart, with fixed values such as registered.
status_date statusUpdatedAt, registrationStatusUpdatedAt Closest field An instant in UTC at Motorbay.
first_registration firstRegisteredOn A day, yyyy-mm-dd, with no time zone.
type kind An object. Read kind.name, for example Personbil.
use primaryUsage Read primaryUsage.name, for example Privat personkørsel.
make, model, variant make, model, variant Objects. Read .name.
model_type designationType Closest field
color color Read color.name, for example Sort.

Technical and engine

GET /v1/vehicles/{vehicleId}/technical-details and /engine

MotorAPI Motorbay
model_year /technical-details: modelYear
own_weight, total_weight /technical-details: ownWeight, totalWeight kg.
cerb_weight, technical_total_weight /technical-details: minimumRoadWorthyWeight, technicalTotalWeight kg.
combination_weight, max_axle_load /technical-details: roadTrainWeight, maximumAxleLoad kg.
trailer_maxweight_withbrakes, trailer_maxweight_nobrakes /technical-details: couplingWeightWithBrakes, couplingWeightWithoutBrakes kg.
dimensions: wheelbase, track_width_front, track_width_rear /technical-details: axleDistance, frontTrackWidth, rearTrackWidth mm.
axels /technical-details: axleCount
pulling_axels /technical-details: drivingAxles Closest field MotorAPI gives a count, Motorbay a description of the driven axles.
seats /technical-details: minimumSeats, maximumSeats Closest field
doors /technical-details: numberOfDoors
coupling /technical-details: isCouplingPossible Closest field
chassis_type /technical-details: bodyType Closest field A fixed list of values, for example sedan.
engine_cylinders /engine: cylinderCount
engine_volume /engine: displacement cm³.
engine_power /engine: maximumPower kW.
fuel_type /fuel-types: fuelType.name A list with the primary fuel first, for example Diesel.

Environment, equipment, inspections, leasing and more

MotorAPI Motorbay
/environment /environmental-information, /fuel-types Emissions, particle filter, consumption and CO₂ per fuel. Don't use co2Emission from /environmental-information for cars, it is a figure for lorries in g/tkm.
/equipment /equipment A paged list: name, originalName and count.
mot_info /inspection Latest inspection: inspectedOn, type, result and odometerReading. MotorAPI's mileage is in km, Motorbay's odometerReading in thousands of km. next_inspection_date is, in MotorAPI's own words, calculated by MotorAPI, not registered in the register, and an estimate.
Not documented /engine: odometerReading Odometer in thousands of km: 228 means about 228,000 km.
is_leasing, leasing_from, leasing_to /leasing-periods: validFromOn, validUntilOn A list of periods at Motorbay.
Not documented /blocking-reasons, /permits Blocks such as a total loss, and permits.
Not documented /check Status, blocks, traffic damage, a re-stamped VIN, active leasing and the latest inspection in one response.

Formats at Motorbay

  • Names: camelCase. Kind, usage, make, model, variant, color and emission standard are objects with id, name and originalName. name is Motorstyrelsen's Danish string, for example Personbil.
  • Dates: days end in …On and are yyyy-mm-dd. Instants end in …At and are UTC.
  • Values: status and inspections use fixed values such as registered, deregistered, approved and periodic. They are in the OpenAPI document.
  • IDs: strings. Treat them as opaque.
  • Empty responses: /inspection, /engine and /environmental-information answer 204 with no content when there is nothing to show.

The two describe a plate lookup differently. MotorAPI describes /vehicles/{identifier} as a lookup by exact plate or VIN, and doesn't say which vehicle it returns when the plate has been on several. Motorbay returns the vehicle registered with the plate now, and if none is, the one with the newest registration status date, whose registrationStatus says it isn't registered. So include deregistered and reused plates in your sample.

A plate lookup before and after

The examples use the plate AB12345 as a placeholder. First curl. At Motorbay /lookup takes a plate or a VIN, as MotorAPI does, and include puts environment and equipment in the same response. That is one call and one request.

GETPlate lookup at MotorAPI with curl
curl -i -H "X-AUTH-TOKEN: $MOTORAPI_TOKEN" \
  "https://v1.motorapi.dk/vehicles/AB12345"
GETPlate lookup at Motorbay with curl
curl -i -H "X-Api-Key: $MOTORBAY_API_KEY" \
  "https://api.motorbay.app/v1/vehicles/lookup/AB12345?include=environmentalInformation,fuelTypes,equipment"

Then JavaScript with fetch. Both functions return null when the plate isn't found. At MotorAPI, 403 means the account's daily limit is reached, and 503 with Retry-After means their lookup is down right now, so the old code stops on 403 and otherwise checks res.ok. At Motorbay the code waits for Retry-After once on RateLimitExceeded (60 a minute per key) and gives up on QuotaExceeded, because the month's requests are then used.

GETPlate lookup at MotorAPI with fetch
async function lookupPlate(plate) {
  const res = await fetch("https://v1.motorapi.dk/vehicles/" + encodeURIComponent(plate), {
    headers: { "X-AUTH-TOKEN": process.env.MOTORAPI_TOKEN },
  });
  if (res.status === 404) return null;
  if (res.status === 403) throw new Error("MotorAPI: daily limit reached");
  if (!res.ok) throw new Error("MotorAPI: HTTP " + res.status); // 503 says Retry-After
  return res.json(); // the whole object, with the field names you use today
}
GETPlate lookup at Motorbay with fetch
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

async function lookupPlate(plate, retried = false) {
  const res = await fetch("https://api.motorbay.app/v1/vehicles/plate/" + encodeURIComponent(plate), {
    headers: { "X-Api-Key": process.env.MOTORBAY_API_KEY },
  });
  if (res.status === 404) return null; // VehicleNotFound
  if (res.status === 429) {
    const problem = await res.json();
    if (problem.code === "QuotaExceeded" || retried) throw new Error("Motorbay: " + problem.code);
    await sleep(Number(res.headers.get("Retry-After") ?? 1) * 1000);
    return lookupPlate(plate, true);
  }
  if (!res.ok) throw new Error("Motorbay: HTTP " + res.status);
  const vehicle = await res.json();
  return {
    id: vehicle.id, // use it for /engine, /equipment and the other sub-resources
    plate: vehicle.registrationNumber,
    vin: vehicle.vin,
    registrationStatus: vehicle.registrationStatus, // 'registered', 'deregistered', ...
    make: vehicle.make.name,
    model: vehicle.model?.name ?? null,
  };
}

Plates are reused, so a plate can have been on several vehicles. To see them all, use GET /v1/vehicles?registrationNumber=.

Price at your volume

MotorAPI shows its prices on its front page, along with how lookups are counted and billed. Read them there for the current figures. The front page also offers 100 free lookups a day, about 3,000 a month. Which plans Motorbay has, and what they cost, is on Motorbay's pricing page.

At Motorbay you start free with no card, and the paid plans have a set price per month with requests included and then a set price per request. The prices and a calculator are on the pricing page, and they are read from the API, so they aren't typed here.

  • One call is one request. With include, a lookup with environment and equipment is still one request. If you look up many plates, POST /v1/vehicles/plates is one call for up to 500.
  • Call only the endpoints you use. If you only need make, model and VIN, the plate lookup is enough.
  • Enter the numbers in the calculator. Take the number of calls per month from your own log, not from an estimate.

Switch in an afternoon: checklist

Run both APIs side by side until you have seen that the differences are the ones you expect.

  • Create an account and an API key, and run the curl example with a plate from your own tests.
  • Put the lookup in one place. Write a function that returns your own field names, so the rest of your code knows neither MotorAPI's nor Motorbay's names.
  • Pair the fields with the table and the steps above, and add only the sub-endpoints you use.
  • **Change the address to /v1/vehicles/lookup/,** which takes a plate or a VIN, and add include for what you fetched from /environment and /equipment.
  • **Read registrationStatus,** so deregistered vehicles aren't treated as registered.
  • Run both in parallel. Look up a sample of a few hundred plates from your own log at both, and compare field by field.
  • Sort the differences. Typical causes are the extract's date, thousands of km, the spelling of emission standards and equipment, and plates with several vehicles.
  • Handle 404, 429 and 204. 404 is VehicleNotFound, 429 can be RateLimitExceeded or QuotaExceeded, and 204 means the sub-resource is empty.
  • **Store Motorbay-Data-As-Of** next to what you store, so you know how old your data is.
  • Move traffic gradually, for example behind a feature flag, and leave the MotorAPI key in place until at least one new extract has arrived.

The sources are Motorstyrelsen's own pages, Motorstyrelsen's extract and Motorbay's API docs.