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-11-22T17:04:25.968Z",
  "created_at": "2024-11-22T17:04:25.968Z",
  "error": "A8Dy",
  "id": "68463c9c-0a1e-4cf6-af22-03c802a73c2c",
  "input": 12,
  "input_unit": "microhertz",
  "output": 23,
  "output_unit": "gigahertz",
  "started_at": "2024-11-22T17:04:25.968Z",
  "status": "failed",
  "updated_at": "2024-11-22T17:04:25.968Z",
  "user_id": "887c1918-6b0c-49a1-b86f-7e6a1df87135"
}