example-data.com
Menu
Browse docs and collections

Overview

cars / #43

2017 Honda Ridgeline

Honda

USD98400.00

automatic · gas · 21359 mi · Gray

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 43,
  "make": "Honda",
  "model": "Ridgeline",
  "year": 2017,
  "trim": null,
  "vin": "EEGYM7CUSMSRRF85D",
  "color": "Gray",
  "mileage": 21359,
  "price": 98400,
  "currency": "USD",
  "transmission": "automatic",
  "fuelType": "gas",
  "bodyType": "suv",
  "listingType": "sale",
  "city": "Erynside",
  "region": "Texas",
  "countryAlpha2": "AT",
  "sellerUserId": 223,
  "isSold": true,
  "createdAt": "2024-09-03T19:25:42.985Z",
  "updatedAt": "2024-09-12T10:38:11.764Z"
}