Nutrition API for Indian meals
Indian food nutrition API
Send a photo of a thali, or type what your user ate: "2 rotis, 1 katori dal tadka, jeera rice". The API returns each item with its portion in grams, calories, protein, carbs, fat and 13 micronutrients, in Hindi or 11 other languages.
The test key costs nothing. Credit packs start at $49, with no subscription.

One request, one thali photo
One entry per item on the plate
Each entry carries its portion in grams and 21 nutrients. The meal gets a grade from A to E and a one-line reason.
How does an Indian food nutrition API work from a photo?
Your app sends one photo or one line of text to a single endpoint. The scan names the dish, splits it into items and returns nutrition for each, plus a total for the meal.
The same steps apply to a thali, a bowl of rajma chawal or a restaurant plate. A user logging dal tadka and rice for lunch is one request.
Send the meal
Post a photo, or a public https link to one, to
POST /v1/scans. Or post a line of text withtype: "text", written the way your user types it.Add what you already know
The optional
contextobject carries hints from your app, such as the meal time or how much oil went in, so the scan does not have to guess them from the photo.Read the items
Each item comes back with a name, a portion, its weight in grams, 21 nutrients and a
source: matched in NutriScan's food data, found with a web lookup, or estimated.Show it, then let the user correct it
Display the meal and its grade. Ask for a confirmation on items marked
estimate, since a katori of dal in a photo is a guess about volume.
What does a request for an Indian meal look like?
A JSON body with a photo or a line of text, an optional language and an optional context object.
The sample sends a thali photo and asks for Hindi names. context is optional free text: meal_time, cooking_method (a list), oil_quantity, consumed_quantity, location (where the meal is from, up to 200 characters), goal and food_preferences. Leave out what you do not know.
curl https://platform-api.nutriscan.app/v1/scans \
-H "Authorization: Bearer $NUTRISCAN_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "meal",
"image_url": "https://example.com/thali.jpg",
"language": "hi",
"context": { "meal_time": "lunch", "location": "Pune" }
}'How do I log an Indian meal that a user typed?
Send the text with type: "text". Write the dish the way your user types it and add amounts where they gave them.
Text also covers voice logging if your app turns speech into text first. The field takes up to 2,000 characters. A short text log uses about 60 credits.
If you want typical values for a dish before you build, the site has plain pages for dal tadka, jeera rice, roti and a north Indian thali. They are written for readers, not for your code, so read the numbers from the API response.
import os, requests
resp = requests.post(
"https://platform-api.nutriscan.app/v1/scans",
headers={"Authorization": f"Bearer {os.environ['NUTRISCAN_KEY']}"},
json={
"type": "text",
"text": "2 rotis, 1 katori dal tadka, jeera rice",
"language": "en",
"context": {"meal_time": "dinner"},
},
timeout=100,
)
for item in resp.json()["items"]:
print(item["name"], item["grams"], item["calories"])What does the nutrition result look like?
The same JSON for every input: a meal with a name, a grade and totals, and an array of items.
This is the sample a test key returns, grilled chicken with rice and salad. It is not the analysis of a thali. A live scan of your own photo has the same fields, with one entry in items for every food it finds.
Units are in the field names, so protein_g is grams and sodium_mg is milligrams. The full field list is on the result page.
{
"id": "scn_Q2mX8rT4vK1pLw9eZb3nYh6A",
"status": "succeeded",
"language": "en",
"meal": {
"name": "Grilled chicken with rice and salad",
"nutri_score": "B",
"nutri_score_reason": "Lean protein and vegetables balance the rice; moderate sodium from the marinade.",
"totals": { "calories": 515, "protein_g": 51.9, "carbs_g": 47.7, "fat_g": 11.1, "…": "…" }
},
"items": [
{
"name": "Grilled chicken breast",
"portion": { "value": 150, "unit": "g", "display": "150 g" },
"grams": 150,
"calories": 248,
"source": "food_db",
"…": "…"
}
],
"test_mode": true,
"credits_used": 0
}Can the API return Indian food nutrition in Hindi?
Yes. Set language to hi and the food names and the NutriScore reason come back in Hindi.
The other languages are English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Turkish and Arabic. The API reads the first two letters of the value, and an unsupported value falls back to en. You choose the language on every request, so one app can show Hindi to one user and English to the next. A coaching app that logs meals this way is described on the fitness apps page.
Example, worked from our public pricing
What does a scan cost?
A typical meal photo uses about 65 credits, which is about $0.065. A short text log uses about 60.
1,000active users
1meal photo a day
30days
$0.065about 65 credits a photo
$1,950a month
The price depends on the work a scan takes, so a plate with many items costs more. Every result reports its exact cost in credits_used. Every scan uses at least 20 credits, and a scan that fails on our side uses none.
Packs are $49, $199 and $599, at $0.001 a credit. Credits never expire, and there is no subscription.
Pack pricesWhich limits and errors matter for meal photos?
A scan can take up to 95 seconds, photos have a size cap, and a photo with no food in it is still charged.
Scans take time
Set your HTTP timeout to at least 100 seconds. A big plate with many items takes the longest. For a person waiting on a screen, use streaming, where the detected items arrive after about 10 to 15 seconds.
Photo limits
JPEG, PNG or WebP, up to 10 MB. HEIC is not supported, so convert it on the device. An image_url must be public https, with no redirects and a 5 second fetch.
No food in the photo
The API returns 422 no_food_detected and charges for the work it used, at least 20 credits. Ask the user to retake the photo instead of retrying the same one.
60 scans a minute
The limit is per account. Past it you get 429 with Retry-After: 60. Send an Idempotency-Key header so a retry does not pay twice.
Is this an Indian food database API?
No. It is an analysis API. It reads the meal you send and returns nutrition for it, and it is not a food composition table you can search.
Someone who needs the official IFCT 2017 values per 100 g should use that dataset. The API suits the case where a user logs a mixed home-cooked or restaurant meal by photo or text.
What it does
Analyzes a photo of a plate or a typed meal and returns each item with its portion.
Returns 21 nutrients per item, a grade from A to E and the reason for it.
Answers in Hindi or 11 other languages, chosen on each request.
What it does not do
No food search endpoint, no barcode lookup and no searchable food database.
No fixed per-100 g values for a dish. A result describes the meal you sent.
Photos go in by upload or https URL, and a scan can take up to 95 seconds.
No medical advice. The numbers are estimates for food logging.
Questions about the Indian food nutrition API
Anything else, the API docs cover every field and error.
Can the API work out nutrition for an Indian meal from a photo?
Yes. Send a photo of a plate, a bowl or a thali to POST /v1/scans. The scan names the dish, lists each item and estimates its portion from the photo. Each item reports a source, so your app can ask the user to confirm the items marked estimate.
Can a user log an Indian meal by typing it?
Yes. Send a line such as "2 rotis, 1 katori dal tadka, jeera rice" with type text, and send the dish the way your user types it. A short text log uses about 60 credits.
Can results come back in Hindi?
Yes. Set language to hi and the food names and the NutriScore reason come back in Hindi. The other languages are English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Turkish and Arabic. An unsupported value falls back to en.
Does the API return IFCT 2017 values per 100 g?
No. It is an analysis API, not a food composition table, and it has no search endpoint. If you need the official IFCT 2017 values per 100 g, use that dataset. The API suits the case where a user logs a mixed home-cooked or restaurant meal by photo or text.
What does one scan cost?
A typical meal photo uses about 65 credits, which is about $0.065, and a short text log uses about 60. Every scan uses at least 20 credits. Credits come in packs from $49 and never expire. A scan that fails on our side uses no credits.
Can I try it before I buy credits?
Yes. Sign in with your email and you get a test key. It returns a fixed sample result, grilled chicken with rice and salad, in the same JSON shape as a live scan and uses no credits. It does not analyze the meal you send, so use it to build your screens.
What about packaged Indian food?
Photograph the nutrition table on the pack and send it with type label. The API has no barcode or search endpoint, so keep another source if your app scans barcodes.
Add Indian meals to your logging flow
Sign in with your email, build against the test key, and buy credits when you are ready to go live.
- Test key at sign-up
- Packs from $49
- No subscription
- Credits never expire

