example-data.com
Menu
Browse docs and collections

Overview

cars / #54

2022 BMW i4

BMW

USD76030.00

automatic · gas · 74437 mi · Yellow

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/cars/54" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/cars/54"
);
const car = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/cars.d.ts https://example-data.com/types/cars.d.ts
import type { Car } from "./types/cars";

const res = await fetch(
  "https://example-data.com/api/v1/cars/54"
);
const car = (await res.json()) as Car;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/cars/54"
)
car = res.json()

Response

{
  "id": 54,
  "make": "BMW",
  "model": "i4",
  "year": 2022,
  "trim": null,
  "vin": "NBD42ALKWZTMYN6XZ",
  "color": "Yellow",
  "mileage": 74437,
  "price": 76030,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "sedan",
  "listingType": "sale",
  "city": "Fort Virginie",
  "region": "Mississippi",
  "countryAlpha2": "CO",
  "sellerUserId": 187,
  "isSold": false,
  "createdAt": "2026-04-08T00:17:24.435Z",
  "updatedAt": "2026-05-15T00:20:58.667Z"
}