{
  "name": "Battery sizing JSON endpoint",
  "description": "Returns daily watt-hours, system-loss buffer, required amp-hours, battery count, and series/parallel layout from either dailyWh or appliance loads.",
  "publisher": {
    "name": "OffGridRVHub",
    "url": "https://www.offgridrvhub.com"
  },
  "source": {
    "endpoint": "https://www.offgridrvhub.com/tools/api/battery.json",
    "fullCalculator": "https://www.offgridrvhub.com/tools/battery-calculator",
    "assumptions": "https://www.offgridrvhub.com/tools/calculator-assumptions",
    "documentation": "https://www.offgridrvhub.com/tools/calculator-api"
  },
  "caveat": "This is a planning estimate for RV education and comparison. It is not electrical, plumbing, safety, or installation advice.",
  "input": {
    "appliances": [
      {
        "name": "12V fridge",
        "watts": 60,
        "hoursPerDay": 12
      },
      {
        "name": "Laptop",
        "watts": 90,
        "hoursPerDay": 6
      },
      {
        "name": "Lights",
        "watts": 30,
        "hoursPerDay": 5
      }
    ],
    "batteryVoltage": 12,
    "batteryType": "lithium",
    "autonomyDays": 2
  },
  "result": {
    "dailyUsageWh": 1410,
    "adjustedDailyUsageWh": 1580,
    "systemLossWh": 170,
    "requiredAh": 300,
    "recommendedBatteryCount": 3,
    "dailyAmpHours": 135,
    "usableStorageKwh": 3.2,
    "seriesCount": 1,
    "parallelStrings": 3
  }
}