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/marathon-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/marathon-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.
finish_time· string · required- Enter finish time.
{
"type": "object",
"properties": {
"finish_time": {
"type": "string",
"description": "Enter finish time."
}
},
"required": [
"finish_time"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
pace_per_km· string- Pace per kilometre produced by the tool.
pace_per_mile· string- Pace per mile produced by the tool.
speed_kph· number- Average speed produced by the tool.
splits· array- Checkpoint splits produced by the tool.
{
"type": "object",
"properties": {
"pace_per_km": {
"type": "string",
"description": "Pace per kilometre produced by the tool."
},
"pace_per_mile": {
"type": "string",
"description": "Pace per mile produced by the tool."
},
"speed_kph": {
"type": "number",
"description": "Average speed produced by the tool."
},
"splits": {
"type": "array",
"description": "Checkpoint splits produced by the tool."
}
},
"additionalProperties": false
}
Marathon Pace Calculator worked 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/marathon-pace-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"finish_time": "03:55:00"
}'
{
"ok": true,
"data": {
"slug": "marathon-pace-calculator",
"result": {
"values": {
"pace_per_km": "5:34",
"pace_per_mile": "8:58",
"speed_kph": 10.773191000000000627778717898763716220855712890625,
"splits": [
{
"distance_km": 5,
"elapsed": "27:51"
},
{
"distance_km": 10,
"elapsed": "55:42"
},
{
"distance_km": 15,
"elapsed": "1:23:32"
},
{
"distance_km": 20,
"elapsed": "1:51:23"
},
{
"distance_km": 25,
"elapsed": "2:19:14"
},
{
"distance_km": 30,
"elapsed": "2:47:05"
},
{
"distance_km": 35,
"elapsed": "3:14:56"
},
{
"distance_km": 40,
"elapsed": "3:42:47"
}
]
},
"display": {
"display": "5:34"
},
"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.