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 | MotorAPI https://v1.motorapi.dk | Motorbay https://api.motorbay.app/v1 |
| Key | MotorAPI The X-AUTH-TOKEN header | Motorbay The X-Api-Key header |
| Plate or VIN lookup | MotorAPI GET /vehicles/{identifier}, one endpoint for both | Motorbay GET /v1/vehicles/lookup/{plateOrVin}, one endpoint for both |
| Environment | MotorAPI GET /vehicles/{identifier}/environment | Motorbay include=environmentalInformation,fuelTypes on the lookup |
| Equipment | MotorAPI GET /vehicles/{identifier}/equipment | Motorbay include=equipment on the lookup, or /v1/vehicles/{vehicleId}/equipment |
| Every vehicle with a plate | MotorAPI GET /vehicles with registration_number and optional status | Motorbay GET /v1/vehicles?registrationNumber=, a paged list |
| Many plates at once | MotorAPI One call per plate | Motorbay POST /v1/vehicles/plates, up to 500 with a result per plate |
| Errors | MotorAPI HTTP status with text in errors: 401, 403 over the account's daily limit, 404, and 503 with Retry-After | Motorbay application/problem+json with a stable code, for example VehicleNotFound |
| The extract's date | MotorAPI The documentation says how often the data is updated, but a response carries no date | Motorbay 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 | MotorAPI Yes | Motorbay Yes |
| Environment, fuels and equipment | MotorAPI Yes | Motorbay Yes |
| Technical detail: dimensions, axles, trailer, type approval | MotorAPI Partly Dimensions, axles, trailer weights, tyres and rims. No type approval | Motorbay Yes |
| Latest inspection with result and odometer | MotorAPI Yes mot_info | Motorbay Yes |
| Blocks, permits and leasing periods | MotorAPI Partly Leasing. No blocks or permits | Motorbay Yes |
| Used-car check in one call with flags by severity | MotorAPI No | Motorbay Yes /check |
| Up to 500 plates in one call | MotorAPI No | Motorbay Yes |
| Search by make, kind, usage, color and model year | MotorAPI Partly /vehicles/_search: start of the plate, make, model and status | Motorbay Yes |
| A list of every vehicle that has carried a plate | MotorAPI Yes | Motorbay Yes |
| The extract's date on every response | MotorAPI No | Motorbay Yes |
| An OpenAPI document | MotorAPI Yes OpenAPI 3.1 | Motorbay Yes |
| Stable error codes | MotorAPI No HTTP status and a text | Motorbay Yes |
| MCP server for AI agents | MotorAPI No | Motorbay Yes |
| Free lookups with no card | MotorAPI Yes 100 a day, about 3,000 a month | Motorbay Yes Free plan |
| One endpoint for a plate or a VIN | MotorAPI Yes | Motorbay Yes /lookup/{plateOrVin} |
| A registration status filter on the list | MotorAPI Yes | Motorbay Yes registrationStatus |
| Statistics: counts grouped by make, kind, model year and more | MotorAPI No | Motorbay Yes /v1/statistics/vehicles |
| Your own usage in the API, without it counting | MotorAPI Yes GET /usage | Motorbay 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 |
|---|---|
MotorAPI registration_number | Motorbay registrationNumber null when the vehicle has no plate. |
MotorAPI vin | Motorbay vin |
MotorAPI status | Motorbay 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. |
MotorAPI status_date | Motorbay statusUpdatedAt, registrationStatusUpdatedAt Closest field An instant in UTC at Motorbay. |
MotorAPI first_registration | Motorbay firstRegisteredOn A day, yyyy-mm-dd, with no time zone. |
MotorAPI type | Motorbay kind An object. Read kind.name, for example Personbil. |
MotorAPI use | Motorbay primaryUsage Read primaryUsage.name, for example Privat personkørsel. |
MotorAPI make, model, variant | Motorbay make, model, variant Objects. Read .name. |
MotorAPI model_type | Motorbay designationType Closest field |
MotorAPI color | Motorbay color Read color.name, for example Sort. |
Technical and engine
GET /v1/vehicles/{vehicleId}/technical-details and /engine
| MotorAPI | Motorbay |
|---|---|
MotorAPI model_year | Motorbay /technical-details: modelYear |
MotorAPI own_weight, total_weight | Motorbay /technical-details: ownWeight, totalWeight kg. |
MotorAPI cerb_weight, technical_total_weight | Motorbay /technical-details: minimumRoadWorthyWeight, technicalTotalWeight kg. |
MotorAPI combination_weight, max_axle_load | Motorbay /technical-details: roadTrainWeight, maximumAxleLoad kg. |
MotorAPI trailer_maxweight_withbrakes, trailer_maxweight_nobrakes | Motorbay /technical-details: couplingWeightWithBrakes, couplingWeightWithoutBrakes kg. |
MotorAPI dimensions: wheelbase, track_width_front, track_width_rear | Motorbay /technical-details: axleDistance, frontTrackWidth, rearTrackWidth mm. |
MotorAPI axels | Motorbay /technical-details: axleCount |
MotorAPI pulling_axels | Motorbay /technical-details: drivingAxles Closest field MotorAPI gives a count, Motorbay a description of the driven axles. |
MotorAPI seats | Motorbay /technical-details: minimumSeats, maximumSeats Closest field |
MotorAPI doors | Motorbay /technical-details: numberOfDoors |
MotorAPI coupling | Motorbay /technical-details: isCouplingPossible Closest field |
MotorAPI chassis_type | Motorbay /technical-details: bodyType Closest field A fixed list of values, for example sedan. |
MotorAPI engine_cylinders | Motorbay /engine: cylinderCount |
MotorAPI engine_volume | Motorbay /engine: displacement cm³. |
MotorAPI engine_power | Motorbay /engine: maximumPower kW. |
MotorAPI fuel_type | Motorbay /fuel-types: fuelType.name A list with the primary fuel first, for example Diesel. |
Environment, equipment, inspections, leasing and more
| MotorAPI | Motorbay |
|---|---|
MotorAPI /environment | Motorbay /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. |
MotorAPI /equipment | Motorbay /equipment A paged list: name, originalName and count. |
MotorAPI mot_info | Motorbay /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. |
| MotorAPI Not documented | Motorbay /engine: odometerReading Odometer in thousands of km: 228 means about 228,000 km. |
MotorAPI is_leasing, leasing_from, leasing_to | Motorbay /leasing-periods: validFromOn, validUntilOn A list of periods at Motorbay. |
| MotorAPI Not documented | Motorbay /blocking-reasons, /permits Blocks such as a total loss, and permits. |
| MotorAPI Not documented | Motorbay /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,nameandoriginalName.nameis Motorstyrelsen's Danish string, for example Personbil. - Dates: days end in
…Onand areyyyy-mm-dd. Instants end in…Atand are UTC. - Values: status and inspections use fixed values such as
registered,deregistered,approvedandperiodic. They are in the OpenAPI document. - IDs: strings. Treat them as opaque.
- Empty responses:
/inspection,/engineand/environmental-informationanswer 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.
curl -i -H "X-AUTH-TOKEN: $MOTORAPI_TOKEN" \
"https://v1.motorapi.dk/vehicles/AB12345" 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.
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
} 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/platesis 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 addincludefor what you fetched from/environmentand/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 beRateLimitExceededorQuotaExceeded, 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.