API → Unit → Convert current units
Convert a current unit value to another current unit value. This is a nice endpoint to use for helper functions.
Parameters
Name
Type
Req.
The source format of the unit.
Possible values
amperes
: Amperes <https://en.wikipedia.org/wiki/Ampere>microamperes
: Microamperes <https://en.wikipedia.org/wiki/Microampere>milliamperes
: Milliamperes <https://en.wikipedia.org/wiki/Milliampere>nanoamperes
: Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
The output format of the unit.
Possible values
amperes
: Amperes <https://en.wikipedia.org/wiki/Ampere>microamperes
: Microamperes <https://en.wikipedia.org/wiki/Microampere>milliamperes
: Milliamperes <https://en.wikipedia.org/wiki/Milliampere>nanoamperes
: Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
The initial value.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalResult of converting between units.
Object Properties
The time and date the API call was completed.
The time and date the API call was created.
The error the function returned, if any.
The unique identifier of the API call.
This is the same as the API call ID. A UUID usually v4 or v7
The input value.
The source format of the unit conversion. The valid types of current units.
Possible values
amperes
: Amperes <https://en.wikipedia.org/wiki/Ampere>microamperes
: Microamperes <https://en.wikipedia.org/wiki/Microampere>milliamperes
: Milliamperes <https://en.wikipedia.org/wiki/Milliampere>nanoamperes
: Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
The resulting value.
The output format of the unit conversion. The valid types of current units.
Possible values
amperes
: Amperes <https://en.wikipedia.org/wiki/Ampere>microamperes
: Microamperes <https://en.wikipedia.org/wiki/Microampere>milliamperes
: Milliamperes <https://en.wikipedia.org/wiki/Milliampere>nanoamperes
: Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
The time and date the API call was started.
The status of the API call. The status of an async API call.
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.
The time and date the API call was last updated.
The user ID of the user who created the API call. A UUID usually v4 or v7
$ curl "https://api.zoo.dev/unit/conversion/current/{input_unit}/{output_unit}" \
--header "Authorization: Bearer $TOKEN"
{
"completed_at": "2025-04-02T23:33:41.041Z",
"created_at": "2025-04-02T23:33:41.041Z",
"error": "mhpgEfSoRRkVdehPMnqP",
"id": "c3c62565-fbf0-4fec-b9ff-9bdd604720d5",
"input": 25,
"input_unit": "milliamperes",
"output": 7,
"output_unit": "microamperes",
"started_at": "2025-04-02T23:33:41.041Z",
"status": "uploaded",
"updated_at": "2025-04-02T23:33:41.041Z",
"user_id": "50df7283-8170-4065-a8a4-b9300f5ef069"
}