{
  "openapi": "3.1.0",
  "info": {
    "title": "unitpriceindex.com Public Unit-Price & Deal Crash JSON API",
    "version": "1.0.0",
    "description": "Zero-auth static edge JSON API exposing hourly normalized unit prices ($/Wh, $/TB, $/VRAM-GB-hr, $/1M tokens, $/GB RAM) and 90-day median price crashes across 32 hardware and cloud categories. Last compiled: 2026-12-05T16:00:22Z."
  },
  "servers": [
    {
      "url": "https://unitpriceindex.com"
    }
  ],
  "paths": {
    "/api/v1/index.json": {
      "get": {
        "operationId": "listUnitPriceNiches",
        "summary": "List all 32 unit-price categories, floor unit prices, and JSON endpoint URLs.",
        "responses": {
          "200": {
            "description": "Master index of unit-price categories"
          }
        }
      }
    },
    "/api/v1/deals.json": {
      "get": {
        "operationId": "getPriceCrashes",
        "summary": "Get top in-stock items furthest below their 90-day rolling median price.",
        "responses": {
          "200": {
            "description": "Sorted array of 90-day price crashes with deal_url"
          }
        }
      }
    },
    "/api/v1/{niche_id}.json": {
      "get": {
        "operationId": "getNicheUnitPrices",
        "summary": "Get normalized unit-price listings sorted cheapest-first for a specific category.",
        "parameters": [
          {
            "name": "niche_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "3d-printers",
                "ai-homelab-hardware",
                "air-purifiers-cadr",
                "astrophotography",
                "cloud-gpus",
                "cloud-vps",
                "cnc-routers",
                "ebikes",
                "espresso",
                "ev-chargers",
                "gaming-monitors",
                "generators",
                "golf-irons",
                "grow-lights",
                "home-gym",
                "homelab-networking",
                "laser-engravers",
                "lifepo4-solar",
                "llm-apis",
                "managed-db",
                "mini-pcs",
                "mini-splits",
                "object-storage",
                "pokemon-tcg",
                "proxy-bandwidth",
                "robot-vacuums",
                "sim-racing",
                "solar-panels",
                "speech-apis",
                "subwoofers-cea2010",
                "thermal-optics",
                "welders"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized listings for the requested niche"
          }
        }
      }
    }
  }
}