South Star

Cooking Units Converter Cups Grams Recipes API

Free tier included · Data
Convert cooking units to grams, parse recipe phrases with fractions, and handle batch conversions for US, UK, and metric systems.

Cooking Units Converter API solves the perennial headache of scaling and internationalizing recipes by converting between weight, volume, and temperature units. Whether you need to translate US cup measurements into grams for an EU audience, convert tablespoons to milliliters, or switch between Celsius and Fahrenheit, this API handles it with a bundled density table of around 45 common ingredients. It features advanced endpoints like `/convert/full` for weight-volume-temperature conversions, `/batch/convert` to parse and convert up to 100 recipe ingredient lines in a single call, and `/parse` to interpret natural language recipe phrases with mixed and unicode fractions.

It supports US, UK, and metric cup systems, lets you inspect supported units and grouped categories via `/units`, and provides detailed ingredient records including variants, aliases, and density values through `/ingredients/full`.

Honest limits: densities are USDA-like approximations based on USDA FoodData Central SR Legacy household portions and the King Arthur ingredient weight chart. The API is offline, stateless, and relies entirely on embedded constants with no external database lookups or request logging.

Endpoints

MethodPathWhat it does
GET/convertConvert volume and weight units to grams for a specific ingredient using a bundled density table.
GET/parseParse a natural language recipe phrase (including mixed and unicode fractions) into structured quantities, units, and ingredients.
GET/ingredientsList all supported ingredients available in the internal density table.
GET/unitsReturns all supported weight, volume, and temperature units grouped by category, along with cup/spoon ml sizes per system.
GET/convert/fullConvert between any supported units including temperature (°C↔°F), weight↔weight, volume↔volume, and volume↔weight with optional ingredient density.
GET/ingredients/fullReturns the full list of ingredients with density values, aliases, sources, and subtype variants (such as bread flour, cake flour, etc.).
GET/batch/convertParse and convert up to 100 recipe ingredient lines in a single API call.

Quick start

curl -X GET "https://cooking.p.rapidapi.com/convert?amount=1.5&unit=cup&ingredient=flour&system=us" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: cooking.p.rapidapi.com"

FAQ

Are the ingredient densities exact for all brands?

Densities are USDA-like approximations based on USDA FoodData Central SR Legacy household portions and the King Arthur ingredient weight chart. They provide reliable averages for recipe scaling and conversion.

Can I convert temperatures as well as weights and volumes?

Yes! Use the `/convert/full` endpoint to seamlessly convert between Celsius (°C) and Fahrenheit (°F), alongside weight and volume conversions.

How many recipe lines can I process at once?

The `/batch/convert` endpoint accepts up to 100 newline-separated recipe phrases in a single request, making it ideal for processing entire recipe lists or ingredient shopping guides.

Does this API store or log any user data?

No. The API is entirely offline, stateless, and performs all computations in-memory using bundled constants without maintaining request logs or external storage.

Try Cooking Units Converter Cups Grams Recipes free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs