Skip to content

Use Case Guide

Recipe API for Meal Planning Apps

Meal planning breaks when recipe data is inconsistent — missing nutrition, unstructured instructions, no dietary flags. Recipe API returns a complete schema on every response: filter by macros, dietary tags, and ingredients, then render structured cooking phases directly in your UI.

Every successful call uses one request. Commercial use and caching start on Developer.

  • Search, filters, and generation
  • 32 USDA-backed nutrients
  • One consistent schema
  • No attribution required

Typical Builder Journey

1. Build discovery and filtering
Start with categories, cuisines, dietary flags, and nutrition ranges.
GET /api/v1/recipes?dietary=Vegetarian&max_calories=550
2. Add ingredient-aware planning
Use ingredient IDs to filter recipe pools and match pantry constraints.
GET /api/v1/recipes?ingredients=id1,id2
3. Personalize with generation
Generate new recipes for user goals and household restrictions.
POST /api/v1/generate
4. Scale with clear rights
Choose plans aligned with no-attribution usage, caching rights, and long-term application persistence.

Meal Planning Query & Sample Response

Find dinner recipes that fit calorie and protein constraints, then inspect the returned card.

curl -s "https://recipe-api.com/api/v1/recipes?category=Dinner&max_calories=600&min_protein=30&dietary=Gluten-Free&page=1&per_page=20" \
  -H "X-API-Key: $RECIPE_API_KEY"
GET /api/v1/recipes — sample card
{
  "data": [
    {
      "id": "a066f472-ed0c-46ea-8e2c-a0053c3183a8",
      "name": "Texas Chili con Carne",
      "category": "Dinner",
      "cuisine": "American",
      "dietary": { "flags": ["Gluten-Free", "Dairy-Free"], "not_suitable_for": [] },
      "nutrition_summary": { "calories": 569.02, "protein_g": 44.14, "carbohydrates_g": 5.59, "fat_g": 41.99 }
    }
  ],
  "meta": { "total": 156, "page": 1, "per_page": 20, "total_capped": false }
}

Related Guides

Start Building

Complete schema on every response. Filter by macros, dietary tags, and ingredients out of the box.