Convert mAh / Ah / Wh / kWh / J
API · /battery-api
Battery Calculator API
Battery and accumulator maths as an API, computed locally and deterministically from basic electrical relationships. The runtime endpoint estimates how long a battery will last under a given load — from the capacity (in mAh, Ah or Wh) and the load (in watts, or amps at a voltage), with adjustable depth-of-discharge and conversion efficiency — and reports the usable energy and the runtime in hours and minutes. The capacity endpoint converts a battery capacity between milliamp-hours, amp-hours, watt-hours, kilowatt-hours and joules at a given voltage. The pack endpoint builds a series/parallel cell pack (for example 3S2P): it returns the pack voltage, capacity and energy and the total cell count — series adds voltage, parallel adds capacity. The charge endpoint estimates the charge time from the capacity and the charge current (or a C-rate), with a charge efficiency and an optional from/to state-of-charge window. Everything is computed locally and deterministically, so it is instant and private. Real-world figures depend on temperature, age, C-rate and the discharge curve, so treat the results as estimates. Ideal for consumer-electronics and IoT tools, solar and off-grid sizing, drone and RC planning, UPS and backup-power sizing, and EV and battery-pack design. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is battery maths; for Ohm's-law voltage/current/resistance use an electronics API.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 82 ms
- Server probes · 24h
- Subscribers
- 4,005
- active
- Total calls
- 50
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 9,535 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 9,535 calls/month
- 2 req/sec
- Runtime + capacity + pack + charge
- No credit card
Starter
€11.05 /month
- 19,150 calls / month
- 8 requests / second
- Hard cap (429 above quota, no overage)
- 19.15k calls/month
- 8 req/sec
- mAh / Wh / J conversions
- Email support
Pro
€30.95 /month
- 241,500 calls / month
- 20 requests / second
- Hard cap (429 above quota, no overage)
- 241.5k calls/month
- 20 req/sec
- Solar / pack-design pipelines
- Priority support
Mega
€68.95 /month
- 1,250,000 calls / month
- 50 requests / second
- Hard cap (429 above quota, no overage)
- 1.25M calls/month
- 50 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Stadiums API
Stadiums and sports venues around the world as an API — 7,000+ stadiums from Wikidata with their seating capacity, country and city, geographic coordinates and year opened. Search and filter by name, country, minimum capacity and opening year (the results come back largest-first, so it doubles as a "biggest stadiums in the world" ranking), or find every stadium near any coordinate by great-circle distance. Ideal for sports, travel, ticketing, maps, trivia and matchday apps. Open data from Wikidata.
api.oanor.com/stadiums-api
Solar Resource API
Solar irradiance and agroclimatology for any location on Earth — as an API over NASA POWER (Prediction Of Worldwide Energy Resources), derived from NASA satellite and reanalysis data. Get the solar resource needed to size and assess PV and CSP systems: global (GHI), direct-normal (DNI) and diffuse horizontal irradiance, clear-sky irradiance and the clearness index — either as long-term monthly climatology normals for quick site assessment, or as a daily time series for a date range (1981-present). The same call also serves meteorology — temperature, wind speed, relative humidity and precipitation — making it ideal for solar energy, agriculture, building-energy modelling and climate work. From cloudy Berlin to the Sahara, it turns a coordinate into bankable solar and climate data. A solar-resource / agroclimatology data source — distinct from PV-system energy simulation (PVGIS) and historical-weather records. Open data from NASA POWER.
api.oanor.com/solar-api
Solar PV (PVGIS) API
Solar photovoltaic potential for any location on Earth, powered by the EU JRC PVGIS (Photovoltaic Geographical Information System). Estimate how much energy a solar PV system would produce at a given coordinate — yearly and month-by-month output in kWh, the in-plane solar irradiation and a breakdown of system losses (angle-of-incidence, spectral, temperature) — for any panel size, fixed tilt and azimuth; find the optimal panel tilt and orientation that maximises annual output; and read the long-term monthly global horizontal solar irradiation. Covers most of the world (excluding polar and open-ocean areas) from years of satellite-based solar data. Ideal for solar installers and calculators, renewable-energy planning, home-energy and roof-potential tools, and climate / sustainability apps. Open data from EU JRC PVGIS.
api.oanor.com/pvgis-api
Sunrise & Sunset API
Sunrise, sunset, solar noon, day length and the civil, nautical and astronomical twilight phases for any latitude/longitude and date — plus a multi-day range. Useful for agriculture, solar energy, photography, outdoor scheduling, smart-home automation and astronomy apps.
api.oanor.com/sunrise-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Battery Calculator API?
What's the rate limit for Battery Calculator API?
How much does Battery Calculator API cost?
Can I cancel my subscription anytime?
Is Battery Calculator API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/battery-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/battery-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/battery-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/battery-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.