example-data.com
Menu
Browse docs and collections

Overview

cars / #10

2016 Tesla Model S

Tesla

USD8750.00

automatic · gas · 127491 mi · Beige

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 10,
  "make": "Tesla",
  "model": "Model S",
  "year": 2016,
  "trim": "LX",
  "vin": "438APNUUT4G8DTG29",
  "color": "Beige",
  "mileage": 127491,
  "price": 8750,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "truck",
  "listingType": "sale",
  "city": "West Asiacester",
  "region": "Mississippi",
  "countryAlpha2": "NZ",
  "sellerUserId": 209,
  "isSold": true,
  "createdAt": "2024-05-25T09:27:28.944Z",
  "updatedAt": "2025-02-04T06:18:04.820Z"
}