Welcome to LogMeal API
The LogMeal API is a RESTful service that recognizes foods from images, returns ingredients and nutrition, and lets your app log intakes, track goals, and power personalized recommendations.
Main Shortcuts
Create an API key, make your first request (cURL + one language), and understand the response.
Browse endpoints, schemas, and request/response samples in the API Explorer.
What you can build: recognition, ingredients, nutrition, intakes & history, goals, quantity, barcode, favorites, occasions.
Copy‑paste code snippets and SDK helpers to accelerate your integration.
Essential Concepts
Explore the different LogMeal Subscription Plans and choose the one that meets your needs. Understand API request limits: monthly credits, daily request limits and per‑second request limits.
Roles and tokens for account admins, end-users and nutrition-related managers — who calls which endpoints and how to authenticate.
Image guidelines that improve recognition quality (size, format, lighting, etc.).
Implement a Use Case
Capture a meal photo, get top dish predictions, and let the user confirm/refine results before saving. Confirmations feed the food recognition personalization capabilities.
Retrieve standardized recipe ingredients and quantities for confirmed dishes from a food intake.
Extract per‑dish macro & micro nutrients from a confirmed intake using standardized ingredients.
Capture a depth‑based image sequence around food items to estimate their quantities using the Quantity Detection API.
Confirm how much was eaten (grams or Small/Medium/Big portion) and auto‑recalculate ingredients & nutrition.
Adapt measures to user preferences (metric/imperial, cooking measures, portions) while keeping grams as the source of truth.
Popular API Endpoints
- POST /v2/image/segmentation/complete — detect multiple food items on an image and recognize them and log a user intake.
- POST /v2/nutrition/recipe/ingredients — detect the list of ingredients and their quantities for an intake.
- POST /v2/nutrition/recipe/nutritionalInfo — detect the nutritional information for an intake (energy, carbs, protein, fats, etc. 35+ nutritional indicators).
- GET /v2/history/getIntakesList — display a food diary, retrieve the list of intakes performed by a user in a period of time.
More in the API Documentation explorer.
Updated 7 days ago
