← All tool references

Construction · execute

Square Footage Calculator

Calculate the area and perimeter of one rectangular room or surface in feet or meters, with both ft² and m² results.

Open public tool

Overview

Category
Construction
API mode
execute
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/square-footage-calculator

View this descriptor as JSON

Execute availability

This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.

POST /api/v1/tools/square-footage-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.

length · number · required
Enter the measured length in the unit shown; use the finished dimension rather than a nominal size.
width · number · required
Enter the measured width in the unit shown, using the same measurement basis as length.
unit · string · required
Choose the unit used by the values you entered. Accepted values: ft, m.
{
    "type": "object",
    "properties": {
        "length": {
            "type": "number",
            "description": "Enter the measured length in the unit shown; use the finished dimension rather than a nominal size."
        },
        "width": {
            "type": "number",
            "description": "Enter the measured width in the unit shown, using the same measurement basis as length."
        },
        "unit": {
            "type": "string",
            "enum": [
                "ft",
                "m"
            ],
            "description": "Choose the unit used by the values you entered."
        }
    },
    "required": [
        "length",
        "width",
        "unit"
    ],
    "additionalProperties": false
}

Output schema

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

square_feet · number
Browser-calculated square feet.
square_meters · number
Browser-calculated square meters.
{
    "type": "object",
    "properties": {
        "square_feet": {
            "type": "number",
            "description": "Browser-calculated square feet."
        },
        "square_meters": {
            "type": "number",
            "description": "Browser-calculated square meters."
        }
    },
    "additionalProperties": false
}

12 ft × 10 ft room

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/square-footage-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "length": 12,
    "width": 10,
    "unit": "ft"
}'
{
    "ok": true,
    "data": {
        "slug": "square-footage-calculator",
        "result": {
            "values": {
                "square_feet": 120,
                "square_meters": 11.1500000000000003552713678800500929355621337890625
            },
            "display": {
                "display": "120"
            },
            "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.