Catalog/geometry-angle-convert

Geometry

Angle unit conversion API

Convert an angle between degrees, radians, gradians and turns, with 0-360 and -180..180 normalization. Answers 'how many radians is 180 degrees?', 'what is this angle normalized to a principal range?'.

Price$0.01per request
MethodPOST
Route/v1/geometry/angle-convert
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
angledegreesradiansgradiansconversionnormalizeturns
API URLhttps://x402.hexl.dev/v1/geometry/angle-convert
Integration docs
Example request
{
  "value": 180,
  "from": "deg"
}
Example response
{
  "degrees": 180,
  "radians": 3.141592654,
  "gradians": 200,
  "turns": 0.5,
  "normalized0to360Deg": 180,
  "normalizedMinus180to180Deg": 180
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "number",
      "examples": [
        180
      ]
    },
    "from": {
      "type": "string",
      "enum": [
        "deg",
        "rad",
        "grad"
      ],
      "examples": [
        "deg"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}