← All tool references

Travel & Auto · not_available

Travel Budget Calculator

Build a category-level travel budget and per-traveler total.

Open public tool

Overview

Category
Travel & Auto
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/travel-budget-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/travel-budget-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.

travelers · number · required
Enter travelers.
days · number · required
Enter trip days.
transportation · number · required
Enter transportation.
lodging · number · required
Enter lodging total.
food_per_person_day · number · required
Enter food per person per day.
activities · number · required
Enter activities.
other · number · required
Enter other costs.
{
    "type": "object",
    "properties": {
        "travelers": {
            "type": "number",
            "description": "Enter travelers."
        },
        "days": {
            "type": "number",
            "description": "Enter trip days."
        },
        "transportation": {
            "type": "number",
            "description": "Enter transportation.",
            "minimum": 0
        },
        "lodging": {
            "type": "number",
            "description": "Enter lodging total.",
            "minimum": 0
        },
        "food_per_person_day": {
            "type": "number",
            "description": "Enter food per person per day.",
            "minimum": 0
        },
        "activities": {
            "type": "number",
            "description": "Enter activities.",
            "minimum": 0
        },
        "other": {
            "type": "number",
            "description": "Enter other costs.",
            "minimum": 0
        }
    },
    "required": [
        "travelers",
        "days",
        "transportation",
        "lodging",
        "food_per_person_day",
        "activities",
        "other"
    ],
    "additionalProperties": false
}

Output schema

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

total_budget · number
Total budget produced by the tool.
per_traveler · number
Per traveler produced by the tool.
per_day · number
Per trip day produced by the tool.
categories · array
Budget categories produced by the tool.
{
    "type": "object",
    "properties": {
        "total_budget": {
            "type": "number",
            "description": "Total budget produced by the tool."
        },
        "per_traveler": {
            "type": "number",
            "description": "Per traveler produced by the tool."
        },
        "per_day": {
            "type": "number",
            "description": "Per trip day produced by the tool."
        },
        "categories": {
            "type": "array",
            "description": "Budget categories produced by the tool."
        }
    },
    "additionalProperties": false
}

Travel Budget 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/travel-budget-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "travelers": 2,
    "days": 7,
    "transportation": 900,
    "lodging": 1200,
    "food_per_person_day": 65,
    "activities": 450,
    "other": 200
}'
{
    "ok": true,
    "data": {
        "slug": "travel-budget-calculator",
        "result": {
            "values": {
                "total_budget": 3660,
                "per_traveler": 1830,
                "per_day": 522.8600000000000136424205265939235687255859375,
                "categories": [
                    {
                        "category": "Transportation",
                        "amount": 900
                    },
                    {
                        "category": "Lodging",
                        "amount": 1200
                    },
                    {
                        "category": "Food",
                        "amount": 910
                    },
                    {
                        "category": "Activities",
                        "amount": 450
                    },
                    {
                        "category": "Other",
                        "amount": 200
                    }
                ]
            },
            "display": {
                "display": "3660"
            },
            "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.