# Plumbing & Pipe Flow Calc – Thermal Expansion

> Plumbing & Pipe Flow Calc – Thermal Expansion is a paid API for AI agents from plumbing-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates how much a pipe run lengthens or shortens due to a temperature change for copper, steel, PVC, CPVC, PEX, or ABS materials, returning results in both inches and millimeters.

## Facts

- Endpoint: GET https://plumbing-calc.x402tookit.com/thermal-expansion?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plumbing-pipe-flow-calc-thermal-expansion-010cb1a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o2bW7MQPZIYnmpRNTfRM_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability plumbing-pipe-flow-calc-thermal-expansion-010cb1a0
```

Example prompt: How much will a 75-foot run of copper pipe expand if the temperature goes from 50°F to 180°F? Give me the answer in inches and millimeters.

## When to prefer this

Choose this endpoint when you need a fast, accurate thermal expansion calculation for common plumbing pipe materials (copper, steel, PVC, CPVC, PEX, ABS) or a custom material, and you want results in both imperial (inches) and metric (mm). It is purpose-built for plumbing and HVAC pipe runs rather than generic structural or civil engineering thermal analysis tools.

## Known failure modes

- Missing required query parameters (material, lengthFeet, fromF, toF) returns an error
- Using material='custom' without providing coefficientPerF causes a validation failure
- Non-numeric values for temperature or length fields return a bad-request error
- Unrecognized material string (not one of copper/steel/pvc/cpvc/pex/abs/custom) returns an error
- Payment not included or insufficient USDC results in a 402 Payment Required response

## How this service works

How much a pipe run lengthens or shortens with temperature for copper, steel, PVC, CPVC, PEX or ABS, in inches and mm.

## Output

Returns the total length change in inches and millimeters, the temperature delta in °F, the final pipe length in feet, the linear expansion coefficient used, and an inches-per-100-feet-per-10°F reference value, along with source metadata, a summary, and any applicable disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "material",
      "lengthFeet",
      "fromF",
      "toF"
     ],
     "properties": {
      "toF": {
       "type": "number",
       "description": "Final temperature in degrees F"
      },
      "fromF": {
       "type": "number",
       "description": "Starting temperature in degrees F"
      },
      "material": {
       "type": "string",
       "description": "copper, steel, pvc, cpvc, pex, abs or custom"
      },
      "lengthFeet": {
       "type": "number",
       "description": "Pipe run length in feet"
      },
      "coefficientPerF": {
       "type": "number",
       "description": "Linear expansion coefficient per degree F, for material custom"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "changeMm": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "material": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "lengthFeet": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "changeInches": {
       "type": [
        "null",
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plumbing-pipe-flow-calc-thermal-expansion-010cb1a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plumbing-calc.x402tookit.com](https://www.zero.xyz/host/plumbing-calc.x402tookit.com/llms.txt)
