recipes
Convert Amounts
Convert amounts like "2 cups of flour to grams".
get/recipes/convert
Request
- Base URLhttps://api.spoonacular.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
No recorded changes to this operation across all 1 revision of this API.