Free, CORS-open JSON — use the calculator as a tool or agent
The pizza dough calculator exposes a free, read-only, CORS-open JSON endpoint so scripts, apps and AI agents can compute dough recipes programmatically.
GET https://pizza-calculator.the-bread-code.io/dough.json
Read-only GET; responds with Access-Control-Allow-Origin: * so it
can be called from the browser or any origin. No key, no sign-up.
| Param | Values | Description |
|---|---|---|
| pizzas | 1–10000 | Number of pizzas. |
| style | neapolitan · ny · roman · custom | Pizza style (sets defaults). |
| weight_per_pizza | grams | Dough-ball weight per pizza. |
| hydration | percent or decimal | Water as a baker's percentage (e.g. 60 or 0.6). |
| dough_type | yeast · sourdough | Leavening. |
| starter_percent | 1–50 | Sourdough only: starter as % of flour. |
| starter_hydration | percent | Sourdough only: starter hydration (default 100). |
GET https://pizza-calculator.the-bread-code.io/dough.json?pizzas=4&style=neapolitan&weight_per_pizza=270&hydration=60&dough_type=yeast
Returns the inputs (echoed), total dough weight, the ingredient breakdown (grams + baker's percentages), fermentation presets, and — for sourdough — the starter breakdown, and — for Neapolitan — Margherita topping amounts.
Drop the calculator into your own page with an iframe:
<iframe src="https://pizza-calculator.the-bread-code.io/embed" width="100%" height="640" style="border:0" title="Pizza Dough Calculator" loading="lazy"></iframe>
Attribution back to this site is appreciated but not required.