Skip to content

Years

GET Auth required

Returns available model years for street motorcycles. The demo dataset covers years 2015–2020. To access the full range from 1930 to today, subscribe and include a valid JWT.

The type parameter is required and must be set to street_motorcycle.

Terminal window
curl "https://carapi.app/api/years/powersports?type=street_motorcycle" \
-H "Authorization: Bearer YOUR_JWT_TOKEN_HERE"
[
2020,
2019,
2018,
2017,
2016,
2015
]
Terminal window
curl "https://carapi.app/api/years/powersports?type=street_motorcycle&make=Harley+Davidson&json=[{\"field\":\"make\",\"op\":\"in\",\"val\":[\"Kawasaki\",\"Harley Davidson\"]}]" \
-H "Authorization: Bearer YOUR_JWT_TOKEN_HERE"