Pizza Dough Calculator API

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.

Endpoint

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.

Query parameters

ParamValuesDescription
pizzas1–10000Number of pizzas.
styleneapolitan · ny · roman · customPizza style (sets defaults).
weight_per_pizzagramsDough-ball weight per pizza.
hydrationpercent or decimalWater as a baker's percentage (e.g. 60 or 0.6).
dough_typeyeast · sourdoughLeavening.
starter_percent1–50Sourdough only: starter as % of flour.
starter_hydrationpercentSourdough only: starter hydration (default 100).

Example

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.

Embed the calculator

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.