Website

Read all versions from model

Last update: 11.12.2023

Returns list of all versions from model.

GET: https://www.autovit.ro/api/open/categories/:category_id/models/:brand_code/versions/:model_code

Permission: read

Header

Field Type Description
User-Agent string Account email.

Query Param

Field Type Description
category_id Number Category Id. Category unique ID.
brand_code String Brand Slug.
model_code String Model Slug.
year optional Number Optional parameter to specify which year to look for
fuel_type optional String Optional parameter to specify which fuel_type to look for
engine_power optional Number Optional parameter to specify which engine_power to look for
engine_capacity optional Number Optional parameter to specify which engine_capacity to look for
door_count optional Number Optional parameter to specify which door_count to look for
gearbox optional String Optional parameter to specify which gearbox to look for (manual or automatic)
page optional Number Optional parameter. Allows requesting specific page results
limit optional Number Optional parameter. Allows limitation results for one request
is_imported_car optional Boolean Optional parameter to specify if the vehicle is imported (0 or 1)
v optional Number Optional parameter to specify which version to use (2 - for new version; anything else for OLD version)

Example request:
		HTTP/1.1 GET /categories/29/models/ford/versions/focus?fuel_type=diesel&door_count=4&engine_power=150&engine_capacity=1997&year=2018&gearbox=automatic&is_imported_car=1&v=2

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard

200

Field Type Description
options Object document containing all version keys and associated labels in a per language basis
Success response:
		HTTP/1.1 200 OK

{
    "options": {
        "ver-2-0-tdci": {
            "ro": "2.0 TDCi",
            "en": "2.0 TDCi"
        },
        "ver-2-0-tdci-powershift": {
            "ro": "2.0 TDCi Powershift",
            "en": "2.0 TDCi Powershift"
        },
        "other": {
            "ro": "Alt motiv",
            "en": "Other"
        }
    }
}			
		
Copied to clipboard