← All tool references

Construction · not_available

Asphalt Calculator

Estimate compacted asphalt volume, tonnage, truck loads, and material cost from project dimensions.

Open public tool

Overview

Category
Construction
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/asphalt-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/asphalt-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 paving length used in the calculation.
width · number · required
Enter the paving width used in the calculation.
thickness · number · required
Enter the compacted thickness used in the calculation.
density_lb_per_cubic_foot · number · required
Enter the compacted density used in the calculation.
waste_percent · number · required
Enter the waste allowance used in the calculation.
price_per_ton · number · optional
Enter the price per ton used in the calculation.
truck_capacity_tons · number · optional
Enter the truck capacity used in the calculation.
{
    "type": "object",
    "properties": {
        "length": {
            "type": "number",
            "description": "Enter the paving length used in the calculation.",
            "minimum": 0
        },
        "width": {
            "type": "number",
            "description": "Enter the paving width used in the calculation.",
            "minimum": 0
        },
        "thickness": {
            "type": "number",
            "description": "Enter the compacted thickness used in the calculation.",
            "minimum": 0
        },
        "density_lb_per_cubic_foot": {
            "type": "number",
            "description": "Enter the compacted density used in the calculation.",
            "minimum": 1
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the waste allowance used in the calculation."
        },
        "price_per_ton": {
            "type": "number",
            "description": "Enter the price per ton used in the calculation.",
            "minimum": 0
        },
        "truck_capacity_tons": {
            "type": "number",
            "description": "Enter the truck capacity used in the calculation.",
            "minimum": 0.01000000000000000020816681711721685132943093776702880859375
        }
    },
    "required": [
        "length",
        "width",
        "thickness",
        "density_lb_per_cubic_foot",
        "waste_percent"
    ],
    "additionalProperties": false
}

Output schema

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

cubic_yards · number
Compacted volume produced by the calculation.
tons_needed · number
Asphalt needed produced by the calculation.
truck_loads · number
Truck loads produced by the calculation.
estimated_material_cost · number
Estimated material cost produced by the calculation.
{
    "type": "object",
    "properties": {
        "cubic_yards": {
            "type": "number",
            "description": "Compacted volume produced by the calculation."
        },
        "tons_needed": {
            "type": "number",
            "description": "Asphalt needed produced by the calculation."
        },
        "truck_loads": {
            "type": "number",
            "description": "Truck loads produced by the calculation."
        },
        "estimated_material_cost": {
            "type": "number",
            "description": "Estimated material cost produced by the calculation."
        }
    },
    "additionalProperties": false
}

Asphalt Calculator 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/asphalt-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "length": 80,
    "width": 20,
    "thickness": 3,
    "density_lb_per_cubic_foot": 145,
    "waste_percent": 5,
    "price_per_ton": 120,
    "truck_capacity_tons": 20
}'
{
    "ok": true,
    "data": {
        "slug": "asphalt-calculator",
        "result": {
            "values": {
                "cubic_yards": 14.8149999999999995026200849679298698902130126953125,
                "tons_needed": 30.449999999999999289457264239899814128875732421875,
                "truck_loads": 2,
                "estimated_material_cost": 3654
            },
            "display": {
                "display": "14.815"
            },
            "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.