{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketcheck/json-schema/marketcheck-historical-listing-schema.json",
  "title": "HistoricalListing",
  "description": "Historical listing record for a vehicle",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketcheck-history-api-openapi.yml#/components/schemas/HistoricalListing",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "vin": {
      "type": "string"
    },
    "price": {
      "type": "number",
      "description": "Listed price at time of listing"
    },
    "miles": {
      "type": "integer",
      "description": "Odometer reading at time of listing"
    },
    "scraped_at": {
      "type": "integer",
      "description": "Unix timestamp when listing was scraped"
    },
    "last_seen_at": {
      "type": "integer",
      "description": "Unix timestamp when listing was last seen"
    },
    "first_seen_at": {
      "type": "integer",
      "description": "Unix timestamp when listing was first seen"
    },
    "dealer_id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "seller_type": {
      "type": "string",
      "enum": [
        "dealer",
        "private",
        "auction"
      ]
    }
  }
}