# Search versions

The main query. 56 filters that all combine, sorted and paged, returning as much of each specification as you ask for.

## Search

`GET /v1/versions`

**Request**

```bash
curl "https://autospec.launchit.ro/v1/versions?make=volkswagen&fuel=petrol&power_kw.gte=150&sort=-power_kw" \
  -H "X-API-Key: as_live_your_key"
```

Each item carries the version's identity and, unless told otherwise, four groups of its specification: `production`, `powertrain`, `output`, `body`.

**Response**

```json
{
  "items": [
    {
      "id": 1375,
      "path": "volkswagen/golf/viii-facelift-2024/1-5-etsi-116-hp-mild-hybrid-dsg",
      "slug": "1-5-etsi-116-hp-mild-hybrid-dsg",
      "name": "1.5 eTSI (116 Hp) Mild Hybrid DSG",
      "vehicle_type": "car",
      "make": { "id": 1, "path": "volkswagen", "name": "Volkswagen" },
      "model": { "id": 1, "path": "volkswagen/golf", "name": "Golf" },
      "generation": { "id": 111, "path": "volkswagen/golf/viii-facelift-2024", "name": "VIII (facelift 2024)" },
      "updated_at": "2026-09-26T20:43:13.890262",
      "production": { "start": "2024-04-01", "end": null, "in_production": true },
      "powertrain": {
        "kind": "hybrid",
        "hybrid": "mild",
        "plug_in": false,
        "fuels": ["petrol"],
        "two_stroke": null
      },
      "output": {
        "power": { "kw": 85.3, "hp": 116.0 },
        "torque": null,
        "engine_power": { "kw": 85.3, "hp": 116.0 },
        "motor_power": { "kw": 13.2, "hp": 18.0 }
      },
      "body": {
        "type": "hatchback",
        "doors": { "options": [5] },
        "seats": { "options": [5] },
        "dimensions_mm": { "length": 4282, "width": 1789, "height": 1483, "wheelbase": 2620,
                           "front_track": null, "rear_track": null, "ground_clearance": null,
                           "seat_height": null },
        "weights_kg": { "kerb": { "value": 1260 }, "max": { "value": 1840 }, "dry": null },
        "capacities_l": { "boot_min": 381, "boot_max": 1237, "fuel_tank": null }
      }
    }
  ],
  "next_cursor": "WyJpZCIsMTM3NSwxMzc1XQ",
  "limit": 1
}
```

## Choosing what comes back

`fields` names the groups to return. The identity fields always come back.

```
fields=output,efficiency     only those two groups
fields=all                   every group
```

The groups are `production`, `powertrain`, `output`, `engine`, `electric`, `transmission`, `performance`, `efficiency`, `emissions`, `body`, `chassis`, `features`, `notes`. [Version detail](https://autospec.launchit.ro/docs/version) shows what each one holds.

`shape=flat` returns one level of plain values instead of nested groups, in canonical units, which suits a spreadsheet or a table. See [Version detail](https://autospec.launchit.ro/docs/version).

## Filters

Filters combine with AND. A comma inside one means OR. Numbers and dates take `.gt`, `.gte`, `.lt`, `.lte` and `.between=low,high`. Closed lists are in the [vocabularies](https://autospec.launchit.ro/docs/vocabularies).

| Filter | Type | Operators | Meaning |
|---|---|---|---|
| `tier` | one of `make_tier` | `=` `.not` | Only versions from makes of this kind: mainstream, luxury, exotic or specialist. A comma means any of several. `.not` leaves those kinds out instead. |
| `market` | one of `market` | `=` | Only versions from makes sold in this market, now or in the past, such as europe. A comma means any of several. |
| `vehicle_type` | one of `vehicle_type` | `=` | Which kind of version: car or motorcycle. A comma means either. Left out, it is car. |
| `make` | custom | `=` | Make id or slug. A comma means any of several. |
| `model` | custom | `=` | Model id. A comma means any of several. |
| `generation` | custom | `=` | Generation id. A comma means any of several. |
| `q` | text | `=` | Matches the version name. |
| `year` | custom | `=` `.between` `.gte` `.lte` | In production at some point in this year (or span). |
| `in_production` | custom | `=` | true: still being built. false: production has ended. |
| `production_start` | date | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Production start date. |
| `production_end` | date | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Production end date. |
| `powertrain_kind` | one of `powertrain_kind` | `=` | A comma means any of several. |
| `hybrid` | one of `hybrid` | `=` | A comma means any of several. |
| `plug_in` | bool | `=` | Anything that plugs in. |
| `fuel` | one of `fuel` | `=` | Takes this fuel. A comma means any of several. |
| `two_stroke` | bool | `=` |  |
| `power_kw` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | System power. |
| `power_hp` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | System power in hp. |
| `torque_nm` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | System torque. |
| `displacement_cc` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Engine displacement. |
| `cylinders` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Number of cylinders. |
| `cylinder_layout` | one of `cylinder_layout` | `=` | A comma means any of several. |
| `aspiration` | one of `aspiration` | `=` | A comma means any of several. |
| `injection` | one of `injection` | `=` | A comma means any of several. |
| `battery_net_kwh` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Usable battery capacity. |
| `battery_chemistry` | one of `battery_chemistry` | `=` | A comma means any of several. |
| `transmission` | one of `transmission` | `=` | A comma means any of several. |
| `gears` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Number of gears. |
| `drive` | one of `drive` | `=` | A comma means any of several. |
| `final_drive` | one of `final_drive` | `=` | A comma means any of several. |
| `cooling` | one of `cooling` | `=` | A comma means any of several. |
| `seat_height_mm` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Seat height of a motorcycle. |
| `dry_weight_kg` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Weight without fuel and fluids. |
| `top_speed_kmh` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Top speed. |
| `accel_0_100_s` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | 0-100 km/h. |
| `electric_range_km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred electric range figure. |
| `fuel_consumption_l_100km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred consumption, liquid fuels. |
| `fuel_consumption_kg_100km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred consumption, CNG and hydrogen. |
| `fuel_consumption_urban_l_100km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred urban consumption, liquid fuels. |
| `fuel_consumption_extra_urban_l_100km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred extra-urban consumption, liquid fuels. |
| `energy_consumption_kwh_100km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred energy consumption. |
| `co2_g_km` | number | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Preferred CO2 figure. |
| `emission_family` | one of `emission_family` | `=` | A comma means any of several. |
| `emission_level` | text | `=` | Matches the level: 6, 5, IV. |
| `body_type` | one of `body` | `=` | A comma means any of several. |
| `doors` | int list | `=` | Offered with this many doors. |
| `seats` | int list | `=` | Offered with this many seats. |
| `length_mm` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Length. |
| `width_mm` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Width. |
| `height_mm` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Height. |
| `wheelbase_mm` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Wheelbase. |
| `kerb_weight_kg` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Kerb weight (the lower figure of a range). |
| `boot_min_l` | integer | `=` `.gt` `.gte` `.lt` `.lte` `.between` | Boot, seats up. |
| `front_suspension` | one of `suspension` | `=` | A comma means any of several. |
| `rear_suspension` | one of `suspension` | `=` | A comma means any of several. |
| `feature` | one of `feature` | `=` | Has this feature. A comma means any of several. |

## Cars and motorcycles

A search answers with cars unless it says otherwise. `vehicle_type=motorcycle` searches motorcycles, and `vehicle_type=car,motorcycle` searches both. Each version says which it is in `vehicle_type`. `final_drive`, `cooling`, `seat_height_mm` and `dry_weight_kg` are the filters motorcycles add.

`market=europe` and `tier=mainstream,luxury` (or `tier.not=exotic,specialist`) narrow the list by the make each record belongs to: where it is sold, and what kind of maker it is. See [makes](https://autospec.launchit.ro/docs/makes).

## Sorting

Sort by `id`, `name`, `production_start`, `power_kw`, `torque_nm`, `top_speed_kmh`, `accel_0_100_s`, `kerb_weight_kg`, `length_mm`, `battery_net_kwh`, `electric_range_km`, `co2_g_km`, with `-` in front to reverse: `sort=-power_kw`. Versions with no value for the sort key come last.

## Test-cycle figures

Range, consumption, energy use and CO2 are measured under a test cycle, and a version can carry several figures for one measure. The filters and sort keys for them (`co2_g_km`, `electric_range_km`, `fuel_consumption_l_100km` and the rest) use the **preferred** figure: the one from the best-ranked cycle. [Units & figures](https://autospec.launchit.ro/docs/units) explains the ranking.

## Examples

```
Diesel estates built in 2018 with at least 140 kW
/v1/versions?fuel=diesel&body_type=wagon&year=2018&power_kw.gte=140

Electric cars with 500 km of range or more, longest first
/v1/versions?powertrain_kind=electric&electric_range_km.gte=500&sort=-electric_range_km

Shaft-driven motorcycles with a seat no higher than 800 mm
/v1/versions?vehicle_type=motorcycle&final_drive=shaft&seat_height_mm.lte=800

Naked bikes sold in 2022, most powerful first
/v1/versions?vehicle_type=motorcycle&body_type=naked&year=2022&sort=-power_kw

Everything in one generation, as a flat table
/v1/versions?generation=111&shape=flat&limit=200
```
