← All tool references

Lifestyle · not_available

Golf Handicap Calculator

Estimate a handicap index from score differentials.

Open public tool

Overview

Category
Lifestyle
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/golf-handicap-calculator

View this descriptor as JSON

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/golf-handicap-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.

rounds · string · required
Enter adjusted score | course rating | slope.
{
    "type": "object",
    "properties": {
        "rounds": {
            "type": "string",
            "description": "Enter adjusted score | course rating | slope."
        }
    },
    "required": [
        "rounds"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

estimated_index · number
Estimated handicap index produced by the tool.
differentials · array
Score differentials produced by the tool.
rounds_used · number
Differentials used produced by the tool.
{
    "type": "object",
    "properties": {
        "estimated_index": {
            "type": "number",
            "description": "Estimated handicap index produced by the tool."
        },
        "differentials": {
            "type": "array",
            "description": "Score differentials produced by the tool."
        },
        "rounds_used": {
            "type": "number",
            "description": "Differentials used produced by the tool."
        }
    },
    "additionalProperties": false
}

Golf Handicap 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/golf-handicap-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "rounds": "88|72.1|128\n91|71.5|124\n84|72.8|133\n87|70.9|121\n85|72.0|126"
}'
{
    "ok": true,
    "data": {
        "slug": "golf-handicap-calculator",
        "result": {
            "values": {
                "estimated_index": 10.5999999999999996447286321199499070644378662109375,
                "differentials": [
                    {
                        "score": 84,
                        "rating": 72.7999999999999971578290569595992565155029296875,
                        "slope": 133,
                        "differential": 9.5
                    },
                    {
                        "score": 85,
                        "rating": 72,
                        "slope": 126,
                        "differential": 11.699999999999999289457264239899814128875732421875
                    },
                    {
                        "score": 88,
                        "rating": 72.099999999999994315658113919198513031005859375,
                        "slope": 128,
                        "differential": 14
                    },
                    {
                        "score": 87,
                        "rating": 70.900000000000005684341886080801486968994140625,
                        "slope": 121,
                        "differential": 15
                    },
                    {
                        "score": 91,
                        "rating": 71.5,
                        "slope": 124,
                        "differential": 17.800000000000000710542735760100185871124267578125
                    }
                ],
                "rounds_used": 2
            },
            "display": {
                "display": "10.6"
            },
            "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.