Catalog/elec-battery-runtime

Electrical

Battery runtime (Peukert) API

Estimates battery runtime under load using the Peukert equation (more accurate than naive Ah/A), plus delivered watt-hours at an optional voltage. Answers 'How long will this battery last at this load?', 'What is the Peukert-corrected runtime?'.

Price$0.06per request
MethodPOST
Route/v1/electrical/battery-runtime
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
electricalbatteryruntimepeukertamp-hourdischargeloadcapacity
API URLhttps://x402.hexl.dev/v1/electrical/battery-runtime
Integration docs
Example request
{
  "capacityAh": 100,
  "loadA": 10,
  "peukertExponent": 1.2,
  "ratedHours": 20
}
Example response
{
  "capacityAh": 100,
  "loadA": 10,
  "peukertExponent": 1.2,
  "ratedDischargeHours": 20,
  "simpleRuntimeHours": 10,
  "peukertRuntimeHours": 8.7055,
  "peukertRuntimeMinutes": 522.33,
  "formula": "t = H * (C/(I*H))^k"
}
Input schema
{
  "type": "object",
  "required": [
    "capacityAh",
    "loadA"
  ],
  "properties": {
    "capacityAh": {
      "type": "number",
      "examples": [
        100
      ]
    },
    "loadA": {
      "type": "number",
      "examples": [
        10
      ]
    },
    "peukertExponent": {
      "type": "number",
      "examples": [
        1.2
      ]
    },
    "ratedHours": {
      "type": "number",
      "examples": [
        20
      ]
    },
    "voltageV": {
      "type": "number",
      "examples": [
        12
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}