← All tool references

Converters · not_available

Inches to Centimeters Converter

Convert inches to centimeters and millimeters.

Open public tool

Overview

Category
Converters
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/inches-to-centimeters-converter

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/inches-to-centimeters-converter/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.

inches · number · required
Enter inches for this calculation.
{
    "type": "object",
    "properties": {
        "inches": {
            "type": "number",
            "description": "Enter inches for this calculation."
        }
    },
    "required": [
        "inches"
    ],
    "additionalProperties": false
}

Output schema

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

centimeters · number
Centimeters calculated by the tool.
millimeters · number
Millimeters calculated by the tool.
meters · number
Meters calculated by the tool.
{
    "type": "object",
    "properties": {
        "centimeters": {
            "type": "number",
            "description": "Centimeters calculated by the tool."
        },
        "millimeters": {
            "type": "number",
            "description": "Millimeters calculated by the tool."
        },
        "meters": {
            "type": "number",
            "description": "Meters calculated by the tool."
        }
    },
    "additionalProperties": false
}

Inches to Centimeters Converter 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/inches-to-centimeters-converter/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "inches": 12
}'
{
    "ok": true,
    "data": {
        "slug": "inches-to-centimeters-converter",
        "result": {
            "values": {
                "centimeters": 30.480000000000000426325641456060111522674560546875,
                "millimeters": 304.80000000000001136868377216160297393798828125,
                "meters": 0.304800000000000015365486660812166519463062286376953125
            },
            "display": {
                "display": "30.48"
            },
            "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.