API → UnitConvert frequency units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • gigahertz:  Gigahertz <https://en.wikipedia.org/wiki/Hertz>
    • hertz:  Hertz <https://en.wikipedia.org/wiki/Hertz>
    • kilohertz:  Kilohertz <https://en.wikipedia.org/wiki/Hertz>
    • megahertz:  Megahertz <https://en.wikipedia.org/wiki/Hertz>
    • microhertz:  Microhertz <https://en.wikipedia.org/wiki/Hertz>
    • millihertz:  Millihertz <https://en.wikipedia.org/wiki/Hertz>
    • nanohertz:  Nanohertz <https://en.wikipedia.org/wiki/Hertz>
    • terahertz:  Terahertz <https://en.wikipedia.org/wiki/Hertz>
  • output_unit

    string
    required
    Possible values
    • gigahertz:  Gigahertz <https://en.wikipedia.org/wiki/Hertz>
    • hertz:  Hertz <https://en.wikipedia.org/wiki/Hertz>
    • kilohertz:  Kilohertz <https://en.wikipedia.org/wiki/Hertz>
    • megahertz:  Megahertz <https://en.wikipedia.org/wiki/Hertz>
    • microhertz:  Microhertz <https://en.wikipedia.org/wiki/Hertz>
    • millihertz:  Millihertz <https://en.wikipedia.org/wiki/Hertz>
    • nanohertz:  Nanohertz <https://en.wikipedia.org/wiki/Hertz>
    • terahertz:  Terahertz <https://en.wikipedia.org/wiki/Hertz>
  • value

    number
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • completed_at

      string / ISO-8601
      optional
    • created_at

      string / ISO-8601
      optional
    • error

      string
      optional
    • id

      string / UUID
      optional
    • input

      number
      optional
    • input_unit

      string
      optional
      Possible values
      • gigahertz:  Gigahertz <https://en.wikipedia.org/wiki/Hertz>
      • hertz:  Hertz <https://en.wikipedia.org/wiki/Hertz>
      • kilohertz:  Kilohertz <https://en.wikipedia.org/wiki/Hertz>
      • megahertz:  Megahertz <https://en.wikipedia.org/wiki/Hertz>
      • microhertz:  Microhertz <https://en.wikipedia.org/wiki/Hertz>
      • millihertz:  Millihertz <https://en.wikipedia.org/wiki/Hertz>
      • nanohertz:  Nanohertz <https://en.wikipedia.org/wiki/Hertz>
      • terahertz:  Terahertz <https://en.wikipedia.org/wiki/Hertz>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • gigahertz:  Gigahertz <https://en.wikipedia.org/wiki/Hertz>
      • hertz:  Hertz <https://en.wikipedia.org/wiki/Hertz>
      • kilohertz:  Kilohertz <https://en.wikipedia.org/wiki/Hertz>
      • megahertz:  Megahertz <https://en.wikipedia.org/wiki/Hertz>
      • microhertz:  Microhertz <https://en.wikipedia.org/wiki/Hertz>
      • millihertz:  Millihertz <https://en.wikipedia.org/wiki/Hertz>
      • nanohertz:  Nanohertz <https://en.wikipedia.org/wiki/Hertz>
      • terahertz:  Terahertz <https://en.wikipedia.org/wiki/Hertz>
    • started_at

      string / ISO-8601
      optional
    • status

      string
      optional
      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
    • user_id

      string / UUID
      optional
get
/unit/conversion/frequency/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/frequency/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-09-19T16:12:33.801Z",
  "created_at": "2024-09-19T16:12:33.801Z",
  "error": "hyE7Lwy3DXvrD4fpTtL2",
  "id": "70627d4d-e091-4de7-97d5-871e04a486a0",
  "input": 7,
  "input_unit": "hertz",
  "output": 20,
  "output_unit": "terahertz",
  "started_at": "2024-09-19T16:12:33.801Z",
  "status": "in_progress",
  "updated_at": "2024-09-19T16:12:33.801Z",
  "user_id": "41ef5502-acdc-4432-b8dc-945fb78d15b7"
}