---
title: "Allergy-Friendly Recipe API: exclude allergens, filter by diet — Tiny Plates"
description: "Build allergy-friendly and diet features on a recipe API. Exclude any of the 14 EU allergens, filter by vegan, gluten-free and three more diets, and find safe swaps."
url: "https://www.tinyplates.dev/use-cases/allergy-friendly-and-diets"
---

Allergy-friendly and diets

# Recipes for people who cannot eat everything

A family with a nut allergy and a vegetarian teenager needs recipes that suit both, without reading every ingredient list. Tiny Plates lets you leave out allergens and keep to a diet in the same request.

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

Free plan. No credit card.

## Reading every ingredient list is tiring

People with allergies, and the people who cook for them, check every recipe line by line. Hidden milk in a stock, nuts in a pesto, soy in a marinade. When the household also has a vegetarian, the search gets longer.

## Filter once. Save time at every meal.

Allergens cover the 14 the EU regulates plus the US definitions of wheat and tree nuts. Diets cover vegan, vegetarian, pescatarian, gluten-free and dairy-free.

[Allergen and diet ids](https://www.tinyplates.dev/docs/api/vocabularies)

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

const tinyPlates = createClient({ apiKey })

// Listing recipes is on the Business plan.
const dinners = await tinyPlates.recipes.list({
  course: 'dinner',
  diet: 'vegetarian',
  without: ['peanuts', 'nuts-eu']
})
```

* ### Household profiles  
Each person lists what they cannot eat. Every search respects it.
* ### Menus for groups  
Menus for a school or nursery, free of what the children cannot have.
* ### “Make it dairy-free”  
A dairy-free version of any recipe, with /similar or /substitutions.

## The endpoints

* [GET /recipes?diet=vegan](https://www.tinyplates.dev/docs/api/list-recipes)Recipes for a diet, without allergens. Business plan.
* [GET /search?without=milk](https://www.tinyplates.dev/docs/api/search-recipes)Search, leaving out what people cannot eat.
* [GET /recipes/{id}/similar?diet=](https://www.tinyplates.dev/docs/api/similar-recipes)A similar recipe that fits the diet.
* [GET /substitutions](https://www.tinyplates.dev/docs/api/substitutions)Swap the one ingredient that is the problem.

## Tiny Plates or Edamam?

Edamam tags recipes with many more diet and health labels, such as keto, paleo and low-FODMAP, over a far larger index. If your users follow those diets, start there. Tiny Plates focuses on the regulated allergens and five common diets, and only puts a recipe in a diet when it is sure it fits. [The comparison](https://www.tinyplates.dev/compare/edamam) has the details.

## Questions

### How do I exclude several allergens and a diet at once?

On the Business plan, ask /recipes for diet=vegetarian&without=peanuts,nuts-eu and you get recipes that are both. On every plan, without works on a search and on pantry search, and /recipes/{id}/similar takes a diet.

### How do I find an alternative to a recipe that does not fit?

Ask /recipes/{id}/similar with a diet, such as diet=vegan, for recipes like it that fit. Or ask /substitutions what to use instead of the ingredient that is the problem.

### Which diets are supported?

Vegan, vegetarian, pescatarian, gluten-free and dairy-free. If you need labels such as keto or low-FODMAP, Edamam tags more of them.

### Is the allergen data safe to rely on?

It is informational. Anyone with an allergy should check the ingredients and labels before cooking.

## Guides

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

* [Allergen data for every recipe](https://www.tinyplates.dev/blog/allergen-data-for-every-recipe)
* [Ingredient lookup and pairings](https://www.tinyplates.dev/blog/ingredient-lookup-and-pairings)

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)
