---
title: "Year list for light duty cars, trucks, vans and SUVs (use /api/years/v2 instead)"
method: GET
path: "/api/years"
tags: ["Years"]
deprecated: true
---

# Year list for light duty cars, trucks, vans and SUVs (use /api/years/v2 instead)

`GET /api/years`

> **Deprecated.**

**We encourage users to begin migrating to /api/years/v2**

For complex queries you may use the json field to send an array of URL encoded JSON conditions, example:

`[{"field": "make", "op": "in", "val": ["Scion", "Tesla"]}]`

Allowed operators are: `>`, `<`, `>=`, `<=`, `in`, `not in`, `like`, `not like`, `is null` and `not null`.

Allowed search fields are: `year`, `make`, `model`, `trim`, `make_id`, and `make_model_id`.

## Query parameters

- `year` string — Value
- `make` string — Like
- `model` string — Like
- `trim` string — Like
- `make_model_id` string — Value
- `make_id` string — Value
- `description` string — Like
- `json` string — JsonSearchFilter

## Response `200`

- integer[]

## Other responses

- `400` — BadRequestException
- `405` — MethodNotAllowedException
- `429` — TooManyRequestsException - Max Per Minute: 600
- `503` — ServiceUnavailableException

---

[API](https://skmtc.net/carapi/apis/car-api-documentation.md) · [All operations](https://skmtc.net/carapi/apis/car-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carapi/car-api-documentation/revisions/5331e15a22af/schema)
