# Coffee Brew Calculator

> Coffee Brew Calculator is a paid API for AI agents from cooking-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates coffee-to-water ratios, water or coffee grams, and rough caffeine estimates for multiple brew methods including drip, pour-over, French press, espresso, and cold brew.

## Facts

- Endpoint: GET https://cooking-calc.x402tookit.com/coffee-brew?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/coffee-brew-calculator-3f18bbf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BLBG_z1fMeu0xamABuROg

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 coffee-brew-calculator-3f18bbf7
```

Example prompt: How many grams of coffee do I need to brew 600ml of water using a pour-over method, and roughly how much caffeine will that have?

## When to prefer this

Choose this endpoint when you need precise coffee-to-water ratio calculations for a specific brew method with caffeine context. It covers a wide range of methods (drip, pour-over, french press, aeropress, moka, cold brew, cold brew concentrate, SCA golden cup, espresso) in a single call, and returns both volume math and nutrition-adjacent caffeine estimates — making it ideal for recipe planning, barista tooling, or health-conscious brewing apps.

## Known failure modes

- Missing required 'method' query parameter returns an error
- Neither coffeeG nor waterMl provided — endpoint requires at least one
- coffeeG or waterMl out of allowed range (coffeeG 1-2000g, waterMl 10-20000mL) causes rejection
- espressoYieldRatio outside 1.5-3 range for espresso method
- Invalid brew method enum value causes an error
- Payment not completed (x402) results in 402 response before calculation

## How this service works

Coffee grams for your water (or water for your grams) by method: drip, pour-over, press, espresso, cold brew; rough caffeine.

## Output

Returns the calculated coffee grams and/or water volume in mL for the chosen brew method, the ratio string and grams-per-litre figure, approximate brewed liquid volume, a low/typical/high caffeine estimate in mg, caffeine per 240ml serving, and the FDA daily guidance for healthy adults. May include a source citation, disclaimer, and any degraded-mode flags.

## 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": [
      "method"
     ],
     "properties": {
      "method": {
       "type": "string",
       "description": "drip, pour-over, french-press, aeropress, moka, cold-brew, cold-brew-concentrate, sca-golden-cup or espresso"
      },
      "coffeeG": {
       "type": "number",
       "description": "Or ground coffee in grams, 1 to 2000"
      },
      "waterMl": {
       "type": "number",
       "description": "Water in mL, 10 to 20000 (give this or coffeeG)"
      },
      "espressoYieldRatio": {
       "type": "number",
       "description": "espresso only: liquid out per gram in, 1.5 to 3 (default 2)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "ratio": {
       "type": [
        "null",
        "string"
       ]
      },
      "method": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "coffeeG": {
       "type": [
        "null",
        "number"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "waterMl": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "gramsPerLitre": {
       "type": [
        "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coffee-brew-calculator-3f18bbf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cooking-calc.x402tookit.com](https://www.zero.xyz/host/cooking-calc.x402tookit.com/llms.txt)
