Quickstart
Get your first successful call to LogMeal in minutes. Subscribe, create a đź”´ APIUser token, run image recognition, confirm dishes, and fetch nutritional information.
Purpose: help you ship a first successful API call and know where to go next.
An API is a simple way for your app to talk to LogMeal over the internet—your app sends a request (e.g., an image), and the API returns structured results in json format (e.g., recognized foods and nutrition).
Prerequisites
-
Create an account & subscribe — start with 🆓 Free (Trial). All features are enabled while you test.
👉 Sign up for free now at LogMeal Signup Page -
Get your first đź”´ APIUser & copy its token. After signup, by default, a testing APIUser was created for you at LogMeal Users Page.
-
Acquire or download some food images. You can download a ready-to-use sample image for testing purposes here.
Need a refresher on plans, limits, and user types? See Plans & Limits (©, (D), (S) ⏱), and User Types & Access Tokens (⚫ APICompany, 🔴 APIUser, 🔵 APIUserManager).
The 10‑minute flow
You’ll do three tiny tasks:
- Recognize an image → get imageId and dish candidates.
- Fetch ingredients information associated to the image.
- Fetch nutritional information associated to the image.
1) Recognize an image
Upload a meal photo and run the Complete Segmentation endpoint to detect dishes and regions.
- Token required: đź”´ APIUser
- Pick your preferred path:
- No code: try it in the interactive docs: POST /v2/image/segmentation/complete
- With code: paste a ready-to-run snippet: Image-based Food RecognitionOpen Recipe
Tip: If you’re unsure, start with the interactive docs to verify your token and payload, then switch to the recipe for integration.
âś… You now have an imageId to use in the next steps.
2) Fetch ingredients information and quantities
After recognition, show the list of ingredients and quantities associated to the recognized dishes.
- Token required: đź”´ APIUser
- Pick your preferred path:
- No code: try it in the interactive docs: POST /v2/nutrition/recipe/ingredients
- With code: paste a ready-to-run snippet: Retrieve Ingredients & QuantitiesOpen Recipe
3) Fetch nutritional details
Show detailed nutritional information report for the recognized image.
- Token required: đź”´ APIUser
- Pick your preferred path:
- No code: try it in the interactive docs: POST /v2/nutrition/recipe/nutritionalInfo
- With code: paste a ready-to-run snippet: Retrieve Nutritional InformationOpen Recipe
Next Steps
- Image Pre‑processing → image capture tips for higher accuracy.
- Integrate Ready-to-use Code → obtain code samples in 35+ programming languages to start your LogMeal API integration.
- User Types & Access Tokens → which token to use and when (⚫ APICompany, 🔴 APIUser, 🔵 APIUserManager).
- Plans & Limits → plan matrix and quotas. Start on 🆓 Free, then scale to Analyse, Monitor, Recommend, or Custom.
- Explore Features → overview of capabilities (dish recognition, ingredients, nutrients, leftovers, quantity, etc.).
Updated about 10 hours ago