---
title: "Recipe API for Nutrition and Fitness Apps: filter by macros — Tiny Plates"
description: "Build nutrition and fitness features on a recipe API. Find recipes by calories, protein, fiber and seven more nutrients per serving, then scale them or find similar ones."
url: "https://www.tinyplates.dev/use-cases/nutrition-and-fitness"
---

Nutrition and fitness

# Recipes that fit the macros

People tracking what they eat do not want a recipe and a calculator. They want dinner that already fits: under 600 kcal, at least 35 g of protein. Tiny Plates filters every recipe search on ten nutrients per serving.

[Get a free API key](https://www.tinyplates.dev/sign-up)[See the nutrition data](https://www.tinyplates.dev/products/nutrition)

Free plan. No credit card.

## Tracking is the easy part

Fitness and nutrition apps are good at counting what someone ate. They are weaker at the next question: what should I cook tonight that fits what is left of my day?

## Count less. Cook what fits.

Filter recipes by nutrients per serving, instead of searching and checking them one by one. Presets cover the common goals in one word.

[Nutrition filters in the docs](https://www.tinyplates.dev/docs/filtering)

```
import { createClient } from 'tiny-plates'

const tinyPlates = createClient({ apiKey })

const { results } = await tinyPlates.search({
  query: 'quick lunch',
  minProtein: 35,
  maxCalories: 600
})
```

* ### What is left of today  
Dinner ideas that fit the calories and protein someone has left.
* ### Meal prep  
A high-protein plan for the whole week.
* ### A lighter favourite  
The lasagne a user loves, found again with fewer calories.

## The endpoints

* [GET /search?minProtein=35](https://www.tinyplates.dev/docs/api/search-recipes)Search within nutrient limits.
* [GET /recipes?nutrition=high-fiber](https://www.tinyplates.dev/docs/api/list-recipes)Breakfasts, lunches or snacks by nutrients. Business plan.
* [GET /recipes/{id}/similar](https://www.tinyplates.dev/docs/api/similar-recipes)A healthier take on a favourite.
* [GET /recipes/{id}?servings=1](https://www.tinyplates.dev/docs/api/get-recipe)Portions scaled, nutrition with them.

## What to pair it with

Tiny Plates covers recipes. It has no packaged foods or barcodes, so a food log needs a food database next to it, such as USDA FoodData Central or Open Food Facts. If your users enter their own recipes and want them analyzed, Edamam’s nutrition analysis API does that. [Nutrition APIs compared](https://www.tinyplates.dev/blog/nutrition-apis-compared) goes through the options.

The figures are general information, not medical or dietary advice.

## Questions

### How do I find high-protein, low-calorie recipes?

Add minProtein and maxCalories to any search, or use a preset: high-protein is at least 20 g per serving, low-calorie at most 400 kcal, high-fiber at least 5 g and low-sodium at most 140 mg.

### Can I look up packaged foods or scan barcodes?

No. Tiny Plates covers recipes, not packaged foods or barcodes. For a food log, pair it with a food database such as USDA FoodData Central or Open Food Facts.

### Can I suggest a similar recipe with better macros?

Yes. /recipes/{id}/similar returns recipes like one the user already likes, and takes the same nutrition filters, so you can find a lighter or higher-protein version.

### Can I use the figures for medical diets?

The figures are general information, not medical or dietary advice for a person.

## Guides

Longer reads on the blog, with code you can copy.

* [Nutrition APIs compared](https://www.tinyplates.dev/blog/nutrition-apis-compared)
* [Free food APIs](https://www.tinyplates.dev/blog/free-food-apis)
* [Meal plan APIs](https://www.tinyplates.dev/blog/meal-plan-api)

recipes

12,000+

EU allergens, plus 2 from the US

14

nutrient filters

10

diets

5

languages

3

MCP tools

12

## Real recipes. Ready for your app.

The free plan gives you 50 requests a day and 300 a week. Paid plans start at $5 a month.

[Get a free API key](https://www.tinyplates.dev/sign-up)[Quickstart](https://www.tinyplates.dev/docs/quickstart)

No credit card. [See pricing](https://www.tinyplates.dev/pricing)
