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
Quick Start (first 10 min)
Create an API key, make your first request (cURL + one language), and understand the response.
API Documentation
Browse endpoints, schemas, and request/response samples in the API Explorer.
Features Overview
What you can build: recognition, ingredients, nutrition, intakes & history, goals, quantity, barcode, favorites, occasions.
Ready-to-use Code in +35 languages
Copy‑paste code snippets and SDK helpers to accelerate your integration.
Essential Concepts
Plans & Limits
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.
User Types & Access Tokens
Roles and tokens for account admins, end-users and nutrition-related managers — who calls which endpoints and how to authenticate.
Images Pre‑processing
Image guidelines that improve recognition quality (size, format, lighting, etc.).
Implement a Use Case
Image-based Food Recognition with User Confirmation
Capture a meal photo, get top dish predictions, and let the user confirm/refine results before saving.
Ingredients List Retrieval
Retrieve standardized recipe ingredients and quantities for confirmed dishes from a food intake.
Nutritional Information Retrieval
Extract per‑dish macro & micro nutrients from a confirmed intake using standardized ingredients.
Food Quantity Detection
Capture a depth‑based image sequence around food items to estimate their quantities using the Quantity Detection API.
Food Quantity Confirmation
Confirm how much was eaten (grams or Small/Medium/Big portion) and auto‑recalculate ingredients & nutrition.
Units of Measurement & User Preferred Measurements
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 about 10 hours ago