---
title: "GET /api/cars/{carId}"
method: GET
path: "/api/cars/{carId}"
---

# GET /api/cars/{carId}

`GET /api/cars/{carId}`

## Request

- Base URL: `http://used-cars2-dot-<YOUR_PROJECT_ID>.appspot.com`
- URL: `http://used-cars2-dot-<YOUR_PROJECT_ID>.appspot.com/api/cars/{carId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/packtpublishing/apis/used-cars-api/docs/api/cars/:carId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets a single car by ID

## Path parameters

- `carId` string, required

## Response `200`

Car with given ID

- Car
  - `vin` string
  - `make` string
  - `model` string
  - `year` integer

## Other responses

- `404`: Car not found

---

[API](https://skmtc.dev/packtpublishing/apis/used-cars-api.md) - [All operations](https://skmtc.dev/packtpublishing/apis/used-cars-api/llms.txt) - [OpenAPI document](https://skmtc.dev/packtpublishing/apis/used-cars-api/revisions/0d888be46ae3?raw)
