Overview
- Category
- Health
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/pace-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/pace-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
distance· number · required- Enter the distance used in the calculation.
distance_unit· string · required-
Choose the distance unit that matches the calculation. Accepted values:
km, mi, m. hours· number · required- Enter the hours used in the calculation.
minutes· number · required- Enter the minutes used in the calculation.
seconds· number · required- Enter the seconds used in the calculation.
{
"type": "object",
"properties": {
"distance": {
"type": "number",
"description": "Enter the distance used in the calculation.",
"minimum": 0.001000000000000000020816681711721685132943093776702880859375
},
"distance_unit": {
"type": "string",
"description": "Choose the distance unit that matches the calculation.",
"enum": [
"km",
"mi",
"m"
]
},
"hours": {
"type": "number",
"description": "Enter the hours used in the calculation.",
"minimum": 0,
"maximum": 99
},
"minutes": {
"type": "number",
"description": "Enter the minutes used in the calculation.",
"minimum": 0,
"maximum": 59
},
"seconds": {
"type": "number",
"description": "Enter the seconds used in the calculation.",
"minimum": 0,
"maximum": 59
}
},
"required": [
"distance",
"distance_unit",
"hours",
"minutes",
"seconds"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
pace_per_km· string- Pace per kilometer produced by the calculation.
pace_per_mile· string- Pace per mile produced by the calculation.
speed_kph· number- Average speed produced by the calculation.
speed_mph· number- Average speed in mph produced by the calculation.
{
"type": "object",
"properties": {
"pace_per_km": {
"type": "string",
"description": "Pace per kilometer produced by the calculation."
},
"pace_per_mile": {
"type": "string",
"description": "Pace per mile produced by the calculation."
},
"speed_kph": {
"type": "number",
"description": "Average speed produced by the calculation."
},
"speed_mph": {
"type": "number",
"description": "Average speed in mph produced by the calculation."
}
},
"additionalProperties": false
}
Pace Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/pace-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"distance": 5,
"distance_unit": "km",
"hours": 0,
"minutes": 25,
"seconds": 0
}'
{
"ok": true,
"data": {
"slug": "pace-calculator",
"result": {
"values": {
"pace_per_km": "5:00",
"pace_per_mile": "8:03",
"speed_kph": 12,
"speed_mph": 7.45600000000000040500935938325710594654083251953125
},
"display": {
"display": "5:00"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.