# Plumbing & Pipe Flow Calc – Pipe Volume

> Plumbing & Pipe Flow Calc – Pipe Volume 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-30).

Calculates the volume of water held in a pipe run in gallons and litres (per foot and total), given nominal pipe size or inside diameter and pipe length.

## Facts

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

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-pipe-volume-a7ec8079
```

Example prompt: How many gallons of water are held in a 75-foot run of 3/4-inch copper Type L pipe, and how long would it take to purge at 1 GPM?

## When to prefer this

Use this endpoint when you need to know the water volume held inside a specific pipe run — for tasks like antifreeze dosing, purge time estimation, drainage planning, or heat-loss calculations. Prefer it over manual lookup tables when the user specifies pipe length and nominal size or inside diameter. It handles both copper Type L and PVC Schedule 40 nominal sizes. If the user needs pressure loss, velocity, or pipe sizing instead, use the sibling endpoints on the same platform.

## Known failure modes

- Missing required lengthFeet parameter returns an error
- Unsupported material string (not copper-l or pvc-40) may return an error or default
- Providing both nominalSize and insideDiameterInches may cause ambiguity or one being ignored
- Non-positive or zero pipe length may produce invalid results
- Unrecognized nominal size string (e.g. typo) may return null pipe data

## How this service works

Water held in a run of pipe in gallons and litres per foot and in total, from nominal size or inside diameter.

## Output

Returns gallons per foot, litres per foot, total gallons, total litres, total cubic inches, cross-sectional flow area in square inches, inside diameter in inches, and seconds to purge the pipe run at 1 GPM, along with the pipe description and an optional summary or 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": [
      "lengthFeet"
     ],
     "properties": {
      "material": {
       "type": "string",
       "description": "copper-l or pvc-40 (default copper-l)"
      },
      "lengthFeet": {
       "type": "number",
       "description": "Length of the pipe run in feet"
      },
      "nominalSize": {
       "type": "string",
       "description": "Nominal size such as 3/4 or 1-1/4 (with material), or send insideDiameterInches instead"
      },
      "insideDiameterInches": {
       "type": "number",
       "description": "Inside diameter in inches, instead of a nominal size"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "pipe": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "lengthFeet": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "totalLiters": {
       "type": [
        "null",
        "number"
       ]
      },
      "totalGallons": {
       "type": [
        "null",
        "number"
       ]
      },
      "litersPerFoot": {
       "type": [
        "null",
        "n
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plumbing-pipe-flow-calc-pipe-volume-a7ec8079/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)
