Geometry
Circle/ellipse/sector/annulus API
Area and perimeter/arc length for circle, ellipse (Ramanujan perimeter), sector and annulus. Answers 'what is the area of a circular sector?', 'what is an ellipse's perimeter?'.
Price$0.02per request
MethodPOST
Route/v1/geometry/circle-areas
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
circleellipsesectorannulusareaarc-lengthramanujan2d
API URL
Integration docshttps://x402.hexl.dev/v1/geometry/circle-areasExample request
{
"shape": "sector",
"radius": 2,
"angleDeg": 90
}Example response
{
"shape": "sector",
"area": 3.141592654,
"arcLength": 3.141592654,
"perimeter": 7.141592654,
"chordLength": 2.828427125
}Input schema
{
"type": "object",
"properties": {
"shape": {
"type": "string",
"enum": [
"circle",
"ellipse",
"sector",
"annulus"
],
"examples": [
"sector"
]
},
"radius": {
"type": "number",
"examples": [
2
]
},
"angleDeg": {
"type": "number",
"examples": [
90
]
},
"a": {
"type": "number"
},
"b": {
"type": "number"
},
"outerRadius": {
"type": "number"
},
"innerRadius": {
"type": "number"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}