Every recipe now has nutrition, and you can filter by it
By Chris Artmann ·
Ask a recipe API for "dinners under 600 calories with at least 30 g of protein" and you usually hit a wall. Either the API has no nutrition at all, or it only has it for some recipes, or the filter is on a plan you're not on.
As of this week, Tiny Plates does this on every plan. Every recipe gets nutrition figures. And every endpoint that returns recipes can filter by them.
curl 'https://api.tinyplates.dev/search?query=curry&minProtein=30&maxCalories=600' \
-H 'Authorization: Bearer rd_your_api_key'
That's the whole thing. Here's what you get back, and how the filters work.
What's in a recipe
You get the figures three ways. perServing is what one plate holds. perRecipe is the whole pot. per100g is handy when you want to compare dishes of different sizes. Vitamins and minerals sit under micronutrients.
"nutrition": {
"incomplete": [],
"servings": 8,
"perServing": {
"calories": { "value": 201, "unit": "kcal" },
"protein": { "value": 5.6, "unit": "g" },
"fat": { "value": 7.4, "unit": "g" },
"fiber": { "value": 3.3, "unit": "g" },
"sodium": { "value": 76, "unit": "mg" },
"sugar": { "value": 16.9, "unit": "g" }
}
}
That's a trimmed version of the example in the recipe object docs. The real response also has carbohydrates, saturated fat, cholesterol and salt.
Filtering by it
There are ten nutrients you can filter on: calories, protein, fat, saturated fat, carbohydrates, sugar, fiber, salt, sodium and cholesterol. Each one takes a minimum and a maximum, per serving. So minProtein=30, maxSugar=10, maxSodium=500 and so on. A bound of 0 counts too, so maxSugar=0 gives you recipes with no sugar.
It works on search, the recipe list, popular recipes, pantry matching and similar recipes. That means you can ask "what can I make with chicken and rice that's under 500 calories?" in one call.
curl 'https://api.tinyplates.dev/pantry?ingredients=chicken,rice&maxCalories=500' \
-H 'Authorization: Bearer rd_your_api_key'
If you don't want to pick numbers, there are presets too: high-protein, high-fiber, low-calorie and low-sodium. You can mix a preset with your own bound, and the tighter one wins.
curl 'https://api.tinyplates.dev/recipes?nutrition=high-protein,low-calorie&maxSodium=500' \
-H 'Authorization: Bearer rd_your_api_key'
The MCP tools take the same filters. So an agent can find "a high-protein vegetarian lunch" without you writing any glue code.
If a nutrient is listed in incomplete, read it as "at least this much".
The filters only return recipes that really match. A recipe that doesn't say how many servings it makes is left out, so when you filter by 600 calories, every result is under 600 calories.
For anything medical, a general recipe API isn't enough on its own. Keep a person in the loop. It's the same thing we say about allergen data.
The filtering docs have the full list of parameters and their limits. If you want to try it, grab a free key and ask for something with a lot of protein.