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-04-26T17:03:32.898Z",
  "created_at": "2024-04-26T17:03:32.898Z",
  "error": "7ZYQ6Ku8v27URIQVdkuHBiBJXU",
  "id": "91db60ed-02ea-42d5-bf01-80f95e05525c",
  "input": 9,
  "input_unit": "millihertz",
  "output": 24,
  "output_unit": "megahertz",
  "started_at": "2024-04-26T17:03:32.898Z",
  "status": "failed",
  "updated_at": "2024-04-26T17:03:32.898Z",
  "user_id": "0ff50a7d-9f7b-4039-bc51-3fcf621df37a"
}