API → UnitConvert 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.

  • input_unit

    string
    required

    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>
  • output_unit

    string
    required

    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>
  • value

    number
    required

    The initial value.

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional

    Result of converting between units.

    Object Properties
    • completed_at

      string / ISO-8601
      optional

      The time and date the API call was completed.

    • created_at

      string / ISO-8601
      optional

      The time and date the API call was created.

    • error

      string
      optional

      The error the function returned, if any.

    • id

      string / UUID
      optional

      The unique identifier of the API call.

      This is the same as the API call ID. A UUID usually v4 or v7

    • input

      number
      optional

      The input value.

    • input_unit

      string
      optional

      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>
    • output

      number
      optional

      The resulting value.

    • output_unit

      string
      optional

      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>
    • started_at

      string / ISO-8601
      optional

      The time and date the API call was started.

    • status

      string
      optional

      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.
    • updated_at

      string / ISO-8601
      optional

      The time and date the API call was last updated.

    • user_id

      string / UUID
      optional

      The user ID of the user who created the API call. A UUID usually v4 or v7

get
/unit/conversion/current/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/current/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "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"
}