Skip to main content
With our search for vehicles you can query by 197 fields relating to vehicles in Sweden. We provide an easy to use search API based on Typesense lightning-fast search database. That means that all features described in Typesense API version 29 is available in our API. Data is continuously reindexed as new data arrives. We today provide six rich search collections: With our search for vehicles you can query (query_by) based on a number fields listed in the next chapter. Examples on what you can query on:
  • Manufacturer
  • Licence plate
  • Model
  • Type
The response model (schema) depends on your query and if you use faceting. If you do plain search we have added to our OpenAPI Schema the default response model.

OpenAPI Schema

Look for the model name TypesenseTransportstyrelsenDocument in the schema definition.

Fields indexed

The following fields are currently indexed in memory. These can be used in the query_by and filter_by parameter.

Types and mappings

Status

Contains information about the status of the vehicle.

Vehicle types

Contains information about the vehicle type (Swedish: fordonsslag).

Vehicle classes

Contains information about the vehicle class (Swedish: Fordonsslagsklass).

Fuel codes

Contains a description of the fuel types the vehicle support.

Fuel combination code

Contains a description of fuel combinations.

Gearbox codes

Contains a description of the gearbox of the vehicle.

Coupling codes

Contains a description of the couplings available on the vehicle (Swedish: kopplingsanordning).

Area of use codes

Contains a description of the areas of usage of the vehicle.

Electric vehicle configuration

Contains a description of how the electric vehicle is configured.

Examples

We have put together a few example of how you can use search for vehicles to easy find data. Please note the last example were we show how you include company information.

Search for a licence plate

Freetext search, for this case it may be better to use filter_by=licencePlate:=YXD972 instead of q=YXD972.
cURL

Search for vin

Search for vin (vehicle identification number).
cURL

Search for fabric

Searches for fabric, Volkswagen.
cURL