v1

latestOpenAPI 3.0.0spoonacular API Terms2026-07-139901.1 MB
recipes

Convert Amounts

Convert amounts like "2 cups of flour to grams".

get/recipes/convert

Query parameters

ingredientNamestring required
Example:flour

The ingredient which you want to convert.

sourceAmountnumber required
Example:2.5

The amount from which you want to convert, e.g. the 2.5 in "2.5 cups of flour to grams".

sourceUnitstring required
Example:cups

The unit from which you want to convert, e.g. the grams in "2.5 cups of flour to grams". You can also use "piece", e.g. "3.4 oz tomatoes to piece"

targetUnitstring required
Example:grams

The unit to which you want to convert, e.g. the grams in "2.5 cups of flour to grams". You can also use "piece", e.g. "3.4 oz tomatoes to piece"

Response

Success

sourceAmountnumber required
sourceUnitstring required
targetAmountnumber required
targetUnitstring required
answerstring required