Preparations
Roasted and raw can differ, but only where a cited source says how.
A Preparation is a way of cooking or processing a Food, such as roasting or fermenting. Acidex curates the list.
The list
GET/v1/preparations
Returns every Preparation as { id, name, description, appliesTo }. appliesTo lists the categories whose Foods it applies to. Each Food also lists its own Preparations as preparations: [{ id, name }], in search results and in GET /v1/foods/:id.
A Food with a Preparation
GET/v1/foods/:id?preparation=roasted
- A Trigger Factor with a sourced Preparation effect takes the effect’s value, source and confidence. The source is a peer-reviewed study or a clinical guideline:
{ type: "peer-reviewed" | "clinical-guideline", citation, dataset, version }. - Every other factor keeps the Food’s own value, including unknown ones. A Preparation never estimates a value.
- Each value has
preparationApplied: true | false, saying which of the two it is. preparationis{ id, name, applied, adjustedFactors }. When no effect is sourced for this Food,appliedisfalse,adjustedFactorsis empty, and anotesays the Trigger Profile is the Food’s own, unchanged.
Two sourced Preparation effects exist so far, both for Foundation Foods and both from peer-reviewed studies: fermented “Cabbage, green, raw” (pH 3.74) and fermented “Cucumber, with peel, raw” (pH 3.30). Every other Food and Preparation returns applied: false. This is GET /v1/foods/:id?preparation=fermented for the cabbage:
{
"id": "food_d98a28af9ac759b0",
"name": "Cabbage, green, raw",
"preparation": { "id": "fermented", "name": "Fermented", "applied": true, "adjustedFactors": ["acidity"] },
"triggerProfile": [
{ "factor": "acidity", "kind": "pH", "status": "known", "value": 3.74, "confidence": "medium",
"preparationApplied": true,
"source": {
"type": "peer-reviewed",
"citation": "Major N, Bažon I, Išić N, Kovačević TK, Ban D, Radeka S, Goreta Ban S. Bioactive Properties, Volatile Compounds, and Sensory Profile of Sauerkraut Are Dependent on Cultivar Choice and Storage Conditions. Foods. 2022;11(9):1218. doi:10.3390/foods11091218. Brine pH of spontaneously fermented white cabbage (2.5% NaCl, 18 °C) on day 37.",
"dataset": "acidex-starter-set",
"version": "2026-11-26"
} },
{ "factor": "fat", "kind": "amount_per_100g", "unit": "g", "status": "known", "value": 0.228, "confidence": "high",
"preparationApplied": false, "source": { "dataset": "usda-fdc-foundation", "version": "2026-10-29", … } },
{ "factor": "caffeine", "kind": "amount_per_100g", "status": "unknown", "preparationApplied": false },
…
]
}
Raw, the same Food’s Acidity is 6.13, from the FDA pH table’s “Cabbage, Green” range of 5.50 to 6.75.
When applied is false, tell your users the Preparation wasn’t accounted for. Don’t let them assume it was.
A Preparation that isn’t on the list, or that doesn’t apply to the Food, gets 400 with validation_error and field: "preparation".
In a Combination, each item’s optional preparationId follows the same rules. See Evaluating a Combination.