example-data.com
Menu
Browse docs and collections

Overview

cars / #156

2025 BMW X5

BMW

USD53940.00

automatic · gas · 1145 mi · Brown

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/cars/156"
);
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/156"
);
const car = (await res.json()) as Car;

Python example

import requests

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

Response

{
  "id": 156,
  "make": "BMW",
  "model": "X5",
  "year": 2025,
  "trim": null,
  "vin": "WTBFB2HWHUSKP1S9Z",
  "color": "Brown",
  "mileage": 1145,
  "price": 53940,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "suv",
  "listingType": "sale",
  "city": "Dachbury",
  "region": "Ohio",
  "countryAlpha2": "NG",
  "sellerUserId": 64,
  "isSold": false,
  "createdAt": "2025-10-26T02:08:03.452Z",
  "updatedAt": "2026-04-06T05:14:14.963Z"
}