---
title: "Recipes by Ingredients API: pantry and food waste apps — Tiny Plates"
description: "Build pantry and food waste features on a recipe API. Find recipes from the ingredients someone has, see what is missing, and swap what they do not have."
url: "https://www.tinyplates.dev/use-cases/pantry-and-food-waste"
---

Pantry and food waste

# Cook from what is already in the fridge

Half a bag of spinach, two eggs and some feta should be enough for dinner. Send what someone has and get recipes they can make, with what is missing spelled out.

[Get a free API key](https://www.tinyplates.dev/sign-up)[Play Fridge Roulette](https://www.tinyplates.dev/examples/fridge-roulette)

Free plan. No credit card.

## Food goes off because nobody knows what to make

The spinach is wilting and there is a tub of ricotta with three days left. Most people do not lack ingredients; they lack an idea that uses the ones they have before they go off.

## Spin what is in the fridge

Fridge Roulette is a small game built on /pantry: type what is in your fridge, spin, and land on a recipe you can cook.

[Play the full game](https://www.tinyplates.dev/examples/fridge-roulette)

## Fridge Roulette

Live, on the real API. Go on, give it a spin.

## Recipes they can make. Not just recipes that mention spinach.

Send what someone has. maxMissing=0 keeps only the recipes they can start right now.

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

const tinyPlates = createClient({ apiKey })

const { recipes } = await tinyPlates.pantry.list({
  ingredients: ['spinach', 'ricotta', 'eggs'],
  maxMissing: 1
})
```

[Pantry search in the docs](https://www.tinyplates.dev/docs/api/pantry-recipes)

{
  "assumedIngredients": [
    "flour"
  ],
  "coverage": 0.75,
  "missingIngredients": [
    "caramel sauce",
    "chopped dark chocolate"
  ]
}

* ### Best covered first  
How much of each recipe the user can already cover.
* ### What is missing  
What to buy or swap before they start.
* ### What was assumed  
Salt, oil and the other staples, listed so you can show them.

## The endpoints

* [GET /pantry](https://www.tinyplates.dev/docs/api/pantry-recipes)Recipes from what is at hand, best covered first.
* [GET /substitutions](https://www.tinyplates.dev/docs/api/substitutions)Make do without the missing ingredient.
* [GET /ingredients/resolve](https://www.tinyplates.dev/docs/api/resolve-ingredients)Turn what people type into ingredients.
* [GET /ingredients/{id}/pairings](https://www.tinyplates.dev/docs/api/ingredient-pairings)What else would go with it.

## Tiny Plates or Spoonacular?

Spoonacular also finds recipes by ingredients, from a much larger catalogue. If the number of recipes matters most, it is a good choice. Tiny Plates tells you which staples it assumed, lets you combine pantry search with nutrition and allergen filters, and gives you substitutions for what is missing, on the free plan.

## Questions

### How do I find recipes from the ingredients I have?

Send the ingredients to /pantry. Each recipe comes back with how much of it you cover, what matched, what is missing and which common staples were assumed.

### Can I allow one or two missing ingredients?

Set maxMissing=0 for recipes that need nothing else, or maxMissing=1 or 2 to allow a quick trip to the shop.

### What about salt, oil and other staples?

Salt, pepper, water, oil, sugar and flour count as on hand by default, since most kitchens have them. Pass staples=false to count them as ingredients you need.

### Is pantry search on the free plan?

Yes. Pantry search works on the free plan, with 50 requests a day and 300 a week.

## Guides

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

* [Recipes by ingredients](https://www.tinyplates.dev/blog/recipes-by-ingredients)
* [Meal planning to reduce food waste](https://www.tinyplates.dev/blog/meal-planning-to-reduce-food-waste)
* [A random recipe API](https://www.tinyplates.dev/blog/random-recipe-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)
