# Pet Care Calc – Aquarium Water Change Nitrate Calculator

> Pet Care Calc – Aquarium Water Change Nitrate Calculator is a paid API for AI agents from pet-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates nitrate concentration remaining after partial water changes, how many changes are needed to reach a target PPM, and the volume of water exchanged per change.

## Facts

- Endpoint: GET https://pet-calc.x402tookit.com/water-change?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/pet-care-calc-aquarium-water-change-nitrate-calculator-4ac36ea5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GLGu3jrVSurX_NXVG7uaY

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 pet-care-calc-aquarium-water-change-nitrate-calculator-4ac36ea5
```

Example prompt: My 75-gallon aquarium currently has 80 ppm nitrate and I do 30% water changes — my tap water has 5 ppm nitrate. How many changes will it take to get below 20 ppm, and how many gallons am I changing each time?

## When to prefer this

Choose this endpoint when you need to compute aquarium nitrate dynamics from partial water changes — specifically when the user has a tank volume, a known starting nitrate level, and a change percentage, and wants either a projection over multiple changes or the number of changes to reach a safe level. Prefer over generic chemistry calculators because it natively handles tap-water nitrate offsets, multi-change projections, and outputs volume in the user's own units (gallons or litres).

## Known failure modes

- Missing required parameters (tankVolume, changePercent, startPpm) returns a validation error
- changePercent outside 1–90 range may return an error or unexpected result
- Negative or zero tankVolume causes computation failure
- Network or payment (x402) failure results in HTTP 402 or 5xx with no data
- If targetPpm is not supplied, changesNeededForTarget will be null

## How this service works

Nitrate left after partial water changes, changes needed to reach a target, and the litres or gallons per change.

## Output

Returns the nitrate concentration after the specified number of water changes, the fraction of water kept, the percent reduction achieved, the volume of water changed per change, how many changes are needed to reach the target PPM, and optionally a per-change projection array showing PPM at each step. Also includes contextual summary text, disclaimer, and metadata fields.

## 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": [
      "tankVolume",
      "changePercent",
      "startPpm"
     ],
     "properties": {
      "tapPpm": {
       "type": "number",
       "description": "Concentration in the replacement water (default 0; tap water can carry nitrate)"
      },
      "changes": {
       "type": "integer",
       "description": "A number of changes to project (default 1)"
      },
      "startPpm": {
       "type": "number",
       "description": "Starting concentration, for example nitrate in ppm (mg/L)"
      },
      "targetPpm": {
       "type": "number",
       "description": "A target concentration, to count the changes needed"
      },
      "tankVolume": {
       "type": "number",
       "description": "Tank water volume (gallons or litres; the answer uses the same unit)"
      },
      "changePercent": {
       "type": "number",
       "description": "Share of the water replaced per change, 1 to 90 percent"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "tapPpm": {
       "type": [
        "null",
        "number"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pet-care-calc-aquarium-water-change-nitrate-calculator-4ac36ea5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pet-calc.x402tookit.com](https://www.zero.xyz/host/pet-calc.x402tookit.com/llms.txt)
