Revisoradgang Data API Developers Version 1.7.0 Help First call

Datasets

Vehicles (DMR)

The dataset dmr has vehicles of Motorregistret (DMR, the Danish register of motor vehicles). You give a registration number or a chassis number. The answer has the vehicles with that number.

Route Function Keys
POST /v1/dmr/vehicles/lookup The vehicles with one registration number or one chassis number 1
Subject Value
Dataset name dmr
Source The weekly statistics extract of Motorstyrelsen (the Danish Motor Vehicle Agency)
Mode Direct: the answer has the data
Data Not live. The service gets a new extract each week. See "The extract and extract_date"
Coverage A subset of the register. See "The subset and in_subset"
Signed declaration Not necessary. The data processing agreement (DPA) of the service covers the dataset
Persons None. See "What the dataset does not have"

The registered rights on a vehicle (the Bilbog) are in the dataset Tinglysning.

The number is in the body

curl -s -X POST "https://data-test.revisoradgang.dk/v1/dmr/vehicles/lookup" -H "Authorization: Bearer $RA_TOKEN" -H "Content-Type: application/json" -d '{"registration_number": "QQ000002"}'

The route is a POST, and the number is in the JSON body. The service has no route with a registration number or a chassis number in the address.

Reason Detail
An address goes to access logs Proxies, gateways and browsers keep the addresses of requests. A body does not go to those logs
A number can be personal data The number of the vehicle of a private owner is personal data
The same rule in our service Our application logs, error messages and usage counts hold no registration number and no chassis number

Do the same in your system: do not put a vehicle number in an address or in a log line.

Body The look-up uses
{"registration_number": "..."} The registration number
{"chassis_number": "..."} The chassis number
Both fields The chassis number. The service does not read the registration number

A chassis number stays with its vehicle. A registration number can change, and a different vehicle can get it later. Use the chassis number when you have it.

Rule for a number Detail
Spaces Ignored: QQ 000 002 is QQ000002
Lower case Accepted: qq000002 is QQ000002
Length of a registration number A maximum of 20 characters. More gives 422 invalid_registration_number
Length of a chassis number A maximum of 30 characters. More gives 422 invalid_chassis_number
No number in the body 422 vehicle_number_required

The subset and in_subset

The service does not have the complete register.

Subject Value
Vehicles in the register Approximately 14.2 million
Vehicles in the subset Approximately 6.7 million
Rule of the subset A vehicle that is registered now, or that was active in the last 5 years before the extract
Not in the subset Older vehicles that are not registered, for example a vehicle that was scrapped or exported more than 5 years ago

The answer to a number that the subset does not have is 200, not 404:

{
  "looked_up_by": "registration_number",
  "in_subset": false,
  "reason": "not_in_subset",
  "reason_text": "The vehicle is not in our subset of Motorregistret. The subset holds the vehicles that are registered now or were active in the last 5 years, as of the extract date. This does not say that the vehicle does not exist.",
  "extract_date": "2026-11-15",
  "vehicle": null,
  "multiple_matches": false,
  "other_matches": []
}
in_subset reason Meaning What to do
true null The subset has one or more vehicles with the number Use vehicle
false not_in_subset The subset does not have the number. The vehicle can exist in the register Do not conclude that the vehicle does not exist. Check the number
false not_loaded The service has no extract at this time. extract_date is null Send the request again later

Rules for your program:

The extract and extract_date

Subject Value
Source The weekly statistics extract of Motorstyrelsen
Update One new extract each week. Each new extract replaces all vehicles
Age of the data Up to one week, and more when an extract is late
extract_date of the answer The date of the extract that the answer comes from
extract_date of a vehicle The same date, for each vehicle

A change in the register after extract_date is not in the answer: a vehicle that changed its registration number or its status this week can have the old values. Show the date to your users together with the data.

One number, more than one vehicle

A vehicle that is not registered keeps its last registration number. The register can give that number to a different vehicle later. One registration number can then be on more than one vehicle.

Field Content
vehicle The vehicle that is registered now (registration_status is Registreret). When none is registered: the vehicle whose status changed last
multiple_matches true when more than one vehicle has the number
other_matches The other vehicles, the one whose status changed last first

vehicle and other_matches hold a maximum of 10 vehicles together. Read multiple_matches before you use vehicle: the vehicle that you look for can be one of other_matches. Compare the chassis number, the make and the dates with what you know.

Limits

Limit Value Above the limit
Numbers in one call 1 The service reads one number
Vehicles in one answer 10 The answer has the first 10
Characters of a registration number 20 422 invalid_registration_number
Characters of a chassis number 30 422 invalid_chassis_number

The limits of your firm (requests per minute, keys per day) are on the page Limits and quotas. A call counts as 1 key, also when the subset does not have the number.

What the dataset does not have

The extract is a statistics extract. It describes the vehicle, not the persons around it.

Not in the dataset Detail
The owner and the user No name, no CVR number, no civil registration number
An address None
The price and the value None
Taxes No registration tax and no periodic tax. van_30_percent is a mark of the register for a van; it is not an amount
Insurance None
The registered rights on the vehicle They are in the Bilbog. See Tinglysning
History Only the values of the newest extract. No earlier registration numbers and no earlier owners
A search No search by make, model or a part of a number. The number must be complete
Vehicles outside the subset See "The subset and in_subset"
Technical details Only the fields of the table "Field names" below

A registration number or a chassis number of the vehicle of a private owner is personal data, although the dataset has no person. Handle the numbers under the rules of your DPA.

The test environment

The test environment (https://data-test.revisoradgang.dk) does not have the data of the register. It has 50 invented vehicles. No real vehicle can have their numbers.

Number Form in the test environment Why it is not real
Registration number QQ and 6 digits: QQ000002 to QQ000050 8 characters. A Danish registration number has a maximum of 7
Chassis number QOITEST and 10 digits: QOITEST0000000001 to QOITEST0000000050 A real VIN never has the letters I, O or Q
Test number Case
QQ000002 Two vehicles: QOITEST0000000002 is registered, QOITEST0000000001 is not. multiple_matches is true
QQ000003 One vehicle that is not registered (Afmeldt)
QQ000004 A scrapped vehicle with a block (blocks)
QQ000005 An exported vehicle
QQ000006, QQ000012 Leased vehicles (leasing_from); QQ000012 has leasing_to
QQ999999 Not in the test data: in_subset is false

The extract date of the test data is fixed: 2026-11-15.

The Bilbog part is empty in the test environment. The test environment of the source of Tinglysning does not know the invented chassis numbers. A look-up of the Bilbog for a test vehicle gives status: performed and empty lists.

Values that are not translated

Field names are English. These values stay as the register gives them, because the register defines them in Danish:

Field Examples of values
vehicle_type Personbil, Varebil
use Privat personkørsel
registration_status Registreret, Afmeldt
vehicle_status Registreret, Afmeldt, Skrottet, Eksporteret
propulsion Benzin, Diesel, El, Benzin/El
blocks Totalskadet køretøj
inspection_result Godkendt

The examples show the format. They are not a complete list. Do not make a fixed list of these values in your program: the register can add a value. A vehicle that is registered now has the registration status Registreret.

Field names: Danish and English

The register and our internal register service use Danish names. This table gives the Danish name for each field of a vehicle (vehicle and each entry of other_matches).

Danish name Field of a vehicle
koeretoej_ident vehicle_id
registreringsnummer registration_number
stelnummer chassis_number
art vehicle_type
anvendelse use
maerke make
model model
variant variant
model_aar model_year
foerste_registrering first_registration_date
registreringsstatus registration_status
registreringsstatus_dato registration_status_date
koeretoej_status vehicle_status
koeretoej_status_dato vehicle_status_date
leasing_fra leasing_from
leasing_til leasing_to
totalvaegt total_weight_kg
drivkraft propulsion
varevogn_30pct van_30_percent
blokeringer blocks
syn_dato inspection_date
syn_resultat inspection_result
udtraek_dato extract_date

vehicle_id is text, not a number: the id has 16 digits.

The fields of the answer have English names at the internal service too:

Internal name Field of the answer
looked_up_by looked_up_by
in_subset in_subset
reason reason
reason_text reason_text
extract_date extract_date
vehicles vehicle, other_matches
multiple_matches multiple_matches

The internal service gives one list, vehicles. The first entry is vehicle; the other entries are other_matches.

Field Internal value Value
looked_up_by registration registration_number
looked_up_by chassis chassis_number
reason not_in_subset not_in_subset
reason not_loaded not_loaded

Each other reason of the internal service becomes unknown.

Errors of this dataset

Status Code Cause
403 dataset_not_enabled Your firm does not have the dataset dmr
422 vehicle_number_required The body has no registration number and no chassis number
422 invalid_registration_number The registration number has more than 20 characters
422 invalid_chassis_number The chassis number has more than 30 characters
422 validation_error The body is not a JSON object, or a number is not text
429 source_rate_limited The internal service is at a limit. Wait for the time in Retry-After
502 source_unavailable The vehicle data did not answer. Send the request again later

The route does not give 404. A number that the subset does not have gives 200 with in_subset: false. No error message has the number that you sent.

All codes are on the page Errors.

Reference

POST /v1/dmr/vehicles/lookup

Look up a vehicle

Look up a vehicle by its registration number or its chassis number.

Send one number in the body. The number is not in the address, so that it does not go to the access logs of a network. When the body has both numbers, the look-up uses the chassis number. The call counts as 1 key.

The answer is 200 also when the service does not have the vehicle: read in_subset. The route does not give 404. Read extract_date: the data can be one week old.

Request body

FieldTypeContentExample
registration_numberstring or nullThe registration number. Spaces are ignored, and lower case is accepted. A maximum of 20 characters."QQ000002"
chassis_numberstring or nullThe chassis number. Spaces are ignored, and lower case is accepted. A maximum of 30 characters. When the body has both numbers, the look-up uses the chassis number."QOITEST0000000002"

Example request

curl -s -X POST "https://data-test.revisoradgang.dk/v1/dmr/vehicles/lookup" \
  -H "Authorization: Bearer $RA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"registration_number": "QQ000002"}'

Response 200

FieldTypeContentExample
looked_up_bystring: registration_number, chassis_numberThe number that the look-up used. It is chassis_number when the request had both numbers."registration_number"
in_subsetbooleantrue when the subset has one or more vehicles with the number. false says only that the vehicle is not in the subset: the subset has the vehicles that are registered now or were active in the last 5 years. It does not say that the vehicle does not exist.true
reasonstring or nullWhy in_subset is false: not_in_subset (the subset does not have the number), not_loaded (the service has no extract) or unknown. null when in_subset is true."not_in_subset"
reason_textstring or nullOne or two sentences about reason. The text can change; do not parse it."The vehicle is not in our subset of Motorregistret. The subset holds the vehicles that are registered now or were active in the last 5 years, as of the extract date. This does not say that the vehicle does not exist."
extract_datestring (date) or nullThe date of the extract of the register that the answer comes from. The service gets a new extract each week, so the data can be one week old. null only when the service has no extract."2026-11-15"
vehicleobject or nullThe vehicle with the number. When more than one vehicle has the number: the one that is registered now, or else the one whose status changed last. null when in_subset is false.
vehicle.vehicle_idstring or nullThe id of the vehicle in the register (KøretøjIdent). Text, not a number."9900000000000002"
vehicle.registration_numberstring or nullThe registration number. A vehicle that is not registered has its last number."QQ000002"
vehicle.chassis_numberstring or nullThe chassis number (for a newer vehicle: the VIN)."QOITEST0000000002"
vehicle.vehicle_typestring or nullThe type of the vehicle (art), as the register gives it."Personbil"
vehicle.usestring or nullThe use of the vehicle (anvendelse), as the register gives it."Privat personkørsel"
vehicle.makestring or nullThe make."Toyota"
vehicle.modelstring or nullThe model."Yaris"
vehicle.variantstring or nullThe variant of the model."1.5 Hybrid"
vehicle.model_yearinteger or nullThe model year.2016
vehicle.first_registration_datestring (date) or nullThe date of the first registration."2016-11-23"
vehicle.registration_statusstring or nullThe registration status, as the register gives it: Registreret for a vehicle that is registered now, for example Afmeldt for one that is not."Registreret"
vehicle.registration_status_datestring (date) or nullThe date from which registration_status applies."2016-11-23"
vehicle.vehicle_statusstring or nullThe status of the vehicle, as the register gives it, for example Registreret, Afmeldt, Skrottet or Eksporteret."Registreret"
vehicle.vehicle_status_datestring (date) or nullThe date from which vehicle_status applies."2016-11-23"
vehicle.leasing_fromstring (date) or nullThe first day of a leasing period. null when the register has none."2024-01-01"
vehicle.leasing_tostring (date) or nullThe last day of a leasing period. null when the register has none."2026-12-31"
vehicle.total_weight_kginteger or nullThe permitted total weight in kilograms (totalvægt).1574
vehicle.propulsionstring or nullThe type of propulsion (drivkraft), as the register gives it."Benzin/El"
vehicle.van_30_percentboolean or nullThe mark 30 pct. varevogn of the register for a van. It is a mark only: the data has no tax amount. null when the register gives no mark.false
vehicle.blocksarray of string or nullThe blocks on the vehicle (blokeringer), as the register gives them. null when the register gives none.["Totalskadet køretøj"]
vehicle.inspection_datestring (date) or nullThe date of the last inspection (syn) in the extract."2025-07-15"
vehicle.inspection_resultstring or nullThe result of that inspection, as the register gives it."Godkendt"
vehicle.extract_datestring (date) or nullThe date of the extract that has this vehicle."2026-11-15"
multiple_matchesbooleantrue when more than one vehicle has the number. A vehicle that is not registered keeps its last registration number, so one number can be on more than one vehicle.true
other_matchesarray of objectThe other vehicles with the number, the one whose status changed last first. vehicle and this list hold a maximum of 10 vehicles together.
other_matches[].vehicle_idstring or nullThe id of the vehicle in the register (KøretøjIdent). Text, not a number."9900000000000002"
other_matches[].registration_numberstring or nullThe registration number. A vehicle that is not registered has its last number."QQ000002"
other_matches[].chassis_numberstring or nullThe chassis number (for a newer vehicle: the VIN)."QOITEST0000000002"
other_matches[].vehicle_typestring or nullThe type of the vehicle (art), as the register gives it."Personbil"
other_matches[].usestring or nullThe use of the vehicle (anvendelse), as the register gives it."Privat personkørsel"
other_matches[].makestring or nullThe make."Toyota"
other_matches[].modelstring or nullThe model."Yaris"
other_matches[].variantstring or nullThe variant of the model."1.5 Hybrid"
other_matches[].model_yearinteger or nullThe model year.2016
other_matches[].first_registration_datestring (date) or nullThe date of the first registration."2016-11-23"
other_matches[].registration_statusstring or nullThe registration status, as the register gives it: Registreret for a vehicle that is registered now, for example Afmeldt for one that is not."Registreret"
other_matches[].registration_status_datestring (date) or nullThe date from which registration_status applies."2016-11-23"
other_matches[].vehicle_statusstring or nullThe status of the vehicle, as the register gives it, for example Registreret, Afmeldt, Skrottet or Eksporteret."Registreret"
other_matches[].vehicle_status_datestring (date) or nullThe date from which vehicle_status applies."2016-11-23"
other_matches[].leasing_fromstring (date) or nullThe first day of a leasing period. null when the register has none."2024-01-01"
other_matches[].leasing_tostring (date) or nullThe last day of a leasing period. null when the register has none."2026-12-31"
other_matches[].total_weight_kginteger or nullThe permitted total weight in kilograms (totalvægt).1574
other_matches[].propulsionstring or nullThe type of propulsion (drivkraft), as the register gives it."Benzin/El"
other_matches[].van_30_percentboolean or nullThe mark 30 pct. varevogn of the register for a van. It is a mark only: the data has no tax amount. null when the register gives no mark.false
other_matches[].blocksarray of string or nullThe blocks on the vehicle (blokeringer), as the register gives them. null when the register gives none.["Totalskadet køretøj"]
other_matches[].inspection_datestring (date) or nullThe date of the last inspection (syn) in the extract."2025-07-15"
other_matches[].inspection_resultstring or nullThe result of that inspection, as the register gives it."Godkendt"
other_matches[].extract_datestring (date) or nullThe date of the extract that has this vehicle."2026-11-15"
Example response
{
  "looked_up_by": "registration_number",
  "in_subset": true,
  "extract_date": "2026-11-15",
  "vehicle": {
    "vehicle_id": "9900000000000002",
    "registration_number": "QQ000002",
    "chassis_number": "QOITEST0000000002",
    "vehicle_type": "Personbil",
    "use": "Privat personkørsel",
    "make": "Toyota",
    "model": "Yaris",
    "variant": "1.5 Hybrid",
    "model_year": 2016,
    "first_registration_date": "2016-11-23",
    "registration_status": "Registreret",
    "registration_status_date": "2016-11-23",
    "vehicle_status": "Registreret",
    "vehicle_status_date": "2016-11-23",
    "total_weight_kg": 1574,
    "propulsion": "Benzin/El",
    "inspection_date": "2025-07-15",
    "inspection_result": "Godkendt",
    "extract_date": "2026-11-15"
  },
  "multiple_matches": true,
  "other_matches": [
    {
      "vehicle_id": "9900000000000001",
      "registration_number": "QQ000002",
      "chassis_number": "QOITEST0000000001",
      "vehicle_type": "Personbil",
      "use": "Privat personkørsel",
      "make": "Volkswagen",
      "model": "Golf",
      "variant": "1.5 TSI",
      "model_year": 2021,
      "first_registration_date": "2021-06-12",
      "registration_status": "Afmeldt",
      "registration_status_date": "2024-03-10",
      "vehicle_status": "Afmeldt",
      "vehicle_status_date": "2024-03-10",
      "total_weight_kg": 1537,
      "propulsion": "Benzin",
      "extract_date": "2026-11-15"
    }
  ]
}

Errors

StatusCodeExample message
401invalid_tokenThe token is missing, not correct, revoked or expired.
403client_suspendedThe client is suspended.
403dataset_not_enabledThe dataset is not enabled for the client.
403ip_not_allowedThe IP address of the request is not in the IP list of the token.
403origin_not_allowedThe request did not come through the public address of the service.
422invalid_chassis_numberA chassis number has a maximum of 30 characters.
422invalid_registration_numberA registration number has a maximum of 20 characters.
422validation_errorThe request is not valid. body.cvrs: Field required
422vehicle_number_requiredThe body needs `registration_number` or `chassis_number`.
429rate_limitedThe request limit is reached. Try again after the time in Retry-After.
429source_rate_limitedThe source register is at its call limit. Try again after the time in Retry-After.
500internal_errorAn internal error occurred.
502source_unavailableThe source register did not answer.