API → Unit → Convert energy units
Parameters
Name
Type
Req.
Possible values
btu
: British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit>electronvolts
: Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt>joules
: Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule>kilocalories
: Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie>kilowatt_hours
: Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour>watt_hours
: Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour>
Possible values
btu
: British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit>electronvolts
: Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt>joules
: Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule>kilocalories
: Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie>kilowatt_hours
: Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour>watt_hours
: Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour>
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
btu
: British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit>electronvolts
: Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt>joules
: Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule>kilocalories
: Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie>kilowatt_hours
: Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour>watt_hours
: Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour>
Possible values
btu
: British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit>electronvolts
: Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt>joules
: Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule>kilocalories
: Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie>kilowatt_hours
: Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour>watt_hours
: Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour>
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
get
/unit/conversion/energy/{input_unit}/{output_unit}$ curl "https://api.zoo.dev/unit/conversion/energy/{input_unit}/{output_unit}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2024-09-07T21:57:19.183Z",
"created_at": "2024-09-07T21:57:19.183Z",
"error": "k9DEZT4oFuBJughFKqN5",
"id": "ea65ac15-db2b-4422-8cdd-4b2c963d2387",
"input": 27,
"input_unit": "electronvolts",
"output": 4,
"output_unit": "watt_hours",
"started_at": "2024-09-07T21:57:19.183Z",
"status": "queued",
"updated_at": "2024-09-07T21:57:19.183Z",
"user_id": "56fc5d01-948a-4edb-8436-1f3f86618493"
}