example-data.com
Menu
Browse docs and collections

Overview

cars / #70

2024 Tesla Model X

Tesla

USD370.00

automatic · gas · 40393 mi · Green

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 70,
  "make": "Tesla",
  "model": "Model X",
  "year": 2024,
  "trim": null,
  "vin": "5885HYPT3JWXXG1J0",
  "color": "Green",
  "mileage": 40393,
  "price": 370,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "sedan",
  "listingType": "rent",
  "city": "Oklahoma City",
  "region": "Texas",
  "countryAlpha2": "FR",
  "sellerUserId": 158,
  "isSold": false,
  "createdAt": "2025-04-02T20:54:54.069Z",
  "updatedAt": "2025-04-20T05:17:00.475Z"
}