example-data.com
Menu
Browse docs and collections

Overview

cars / #16

2010 BMW 3 Series

BMW

USD102430.00

automatic · gas · 128574 mi · Blue

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 16,
  "make": "BMW",
  "model": "3 Series",
  "year": 2010,
  "trim": null,
  "vin": "D0FAYRFAAZHAD7NFF",
  "color": "Blue",
  "mileage": 128574,
  "price": 102430,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "suv",
  "listingType": "sale",
  "city": "Rohancester",
  "region": "Arizona",
  "countryAlpha2": "AR",
  "sellerUserId": 160,
  "isSold": false,
  "createdAt": "2024-11-27T14:12:37.228Z",
  "updatedAt": "2026-02-23T04:21:48.108Z"
}