All Vehicles
Returns a list of all registered vehicles in Jersey.
GET /v1/vehicles
Query Params
Param | Desription |
---|---|
page | The page to show |
limit | The amount of entries per page |
startDate | Retrieve results after the given date |
endDate | Retrieve results before the given date |
dateType | - regInJersey - startDate and endDate checks the date the car was registered in Jersey- Anything else - startDate and endDate checks the date the car was first ever registered |
make | Search by the make of the car |
model | Search by the model of car |
fuelType | Search by the fuel type of the car. See Fuel Types below for enum values. |
color | Search by the color of the car |
Example: https://data-api.glitch.je/v1/vehicles?page=10&limit=500
- Cache: 1 day
- Rate Limit:
- Maximum of 600 requests per hour
Response
- 200 (OK)
- Schema
This is a sample response.
Status: 200 (OK)
{
"pagination": {
"page": 6,
"limit": 500,
"totalPages": 257,
"totalItems": 128003
},
"results": [
{
"make": "Lancia",
"model": "aprilia",
"color": "Grey",
"cylinderCapacity": 1418,
"weight": null,
"co2Emissions": null,
"fuelType": "PETROL",
"firstRegisteredAt": "1969-12-31T23:00:00.000Z",
"firstRegisteredInJerseyAt": "1969-12-31T23:00:00.000Z",
"hash": "121c70d140b15fc475e4141f9bf3d8a7bf1b9c1754338fd30da982c5a33cb35b"
},
{
"make": "Jaguar",
"model": "XK8 COUPE",
"color": "Green",
"cylinderCapacity": 3996,
"weight": null,
"co2Emissions": null,
"fuelType": "PETROL",
"firstRegisteredAt": "1969-12-31T23:00:00.000Z",
"firstRegisteredInJerseyAt": "1969-12-31T23:00:00.000Z",
"hash": "682e49c172c8e67a3ac09af74dfcf70433dc4da25d16aab6c8f9e421055b818a"
}
]
}
Root
See example JSON response.
Key | Type | Description |
---|---|---|
pagination | Object | See Pagination Data below |
results | Array | Array of Vehicle s. |
Pagination Data
Key | Type | Description |
---|---|---|
page | Number | The current page of results |
limit | Number | The number of results per page |
totalPages | Number | The total amount of pages based on the total results and results per page |
totalItems | Number | The total amount of results |
Vehicle
Key | Type | Description |
---|---|---|
make | String | The vehicle make |
model | String/null | The vehicle model |
type | String | The vehicle category |
color | String | The vehicle colour |
cylinderCapacity | Number/null | The vehicle cylinder capacity |
weight | String/null | The vehicle weight |
co2Emissions | Number/null | The CO2 emossions that the vehicle emits |
fuelType | String | See Fuel Types below |
firstRegisteredAt | String | The date the vehicle was first ever registered |
firstRegisteredInJerseyAt | String | The date the vehicle was first registered in Jersey |
hash | String | A SHA-256 hash of multiple properties above. This is used to cross reference vehicle information from the Search API and open data |
Enums
Fuel Types
Key | Description |
---|---|
PETROL | Petrol powered |
HEAVY_OIL | Diesel powered |
ELECTRIC | Fully electric |
HYBRID_ELECTRIC | Hybrid |
GAS | |
DIESEL_ELECTRIC | Diesel hybrid |
GAS_BI_FUEL | |
STEAM | |
UNKNOWN | The fuel type is unknown |
Sources
Source |
---|
All Vehicles Registered in Jersey on opendata.gov.je |