example-data.com
Menu
Browse docs and collections

Overview

cars / #65

2010 BMW M3

BMW

USD110110.00

manual · hybrid · 275748 mi · Brown

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 65,
  "make": "BMW",
  "model": "M3",
  "year": 2010,
  "trim": null,
  "vin": "KSHCFHDXZMLCJ728R",
  "color": "Brown",
  "mileage": 275748,
  "price": 110110,
  "currency": "USD",
  "transmission": "manual",
  "fuelType": "hybrid",
  "bodyType": "suv",
  "listingType": "sale",
  "city": "Long Beach",
  "region": "North Dakota",
  "countryAlpha2": "SA",
  "sellerUserId": 212,
  "isSold": false,
  "createdAt": "2025-01-02T09:01:58.080Z",
  "updatedAt": "2025-06-28T19:34:42.086Z"
}