Skip to content

NutriScan API docs ​

The NutriScan API turns a meal photo, a photo of a pack's nutrition label or a line of text into the dish name, every item with its portion, 21 nutrients per item and a NutriScore from A to E. It is the same meal scan that runs inside the NutriScan app, served over HTTPS. JSON goes in, JSON comes out. The Nutrition API overview explains what product teams build with it, and Nutrition API pricing lists the credit packs.

Base URL ​

Every path in these docs starts fromhttps://platform-api.nutriscan.app/v1

So "create a scan" is POST https://platform-api.nutriscan.app/v1/scans. Send Content-Type: application/json on every request with a body, and your key as a bearer token in the Authorization header.

Endpoints ​

Method and pathWhat it does
POST /scansRuns a scan on a meal photo, a label photo or text and returns the result. Add "stream": true to get progress events.
GET /scans/{id}Returns a past scan by its id, for scans made with your account.
GET /usageReturns your credits: credits_left, credits_balance, credits_held (held by scans running now), credits_purchased, credits_used, scans_charged and can_scan.

Most integrations only ever call POST /scans. The other two help when a streamed connection drops or when you want to show the balance in your own admin screen.

A first request ​

bash
curl https://platform-api.nutriscan.app/v1/scans \
  -H "Authorization: Bearer $NUTRISCAN_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "text", "text": "200 g low-fat quark", "language": "de" }'

The response has a meal object (name, NutriScore, reason, totals) and an items list (one entry per food). The result lists every field.

Keys and the console ​

Sign-up, keys, a playground, usage and billing live in the console at platform.nutriscan.app. You sign in with a 6-digit code sent to your email.

  • Test keys (ns_test_…) come with every new account at no cost. They return a fixed sample result and use no credits.
  • Live keys (ns_live_…) run real scans and use credits from your balance. You buy credits as prepaid packs, see pricing.

Keep keys on your server. Authentication explains why.

How to read these docs ​

  1. Quickstart: first scan in curl, Python and Node.
  2. Authentication: test and live keys, the bearer header.
  3. Create a scan: every request field, the three inputs, context hints and idempotency.
  4. Streaming: progress events for slow plates.
  5. The result: every field in the response.
  6. Errors and limits: status codes, what to do about each, and the numbers to design around.

Common questions about the API ​

Does the NutriScan API have a food search or barcode endpoint?

No. The API reads a meal photo, a pack label photo or a line of text. To get nutrients for one food, send it as text with an amount, such as "150 g grilled chicken breast".

Can I test the API without paying?

Yes. Every new account gets test keys at no cost. A test key returns a fixed sample result in the same JSON shape as a live scan and uses no credits.

How many nutrients does a scan return?

21 for the meal total and for every item: calories, 7 macro fields and 13 micronutrients.

Which languages can results come back in?

12 languages: English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Turkish, Hindi and Arabic. Set the language field on each request.

How long does a scan take?

Up to 95 seconds, and big plates take the longest. With streaming, the detected items arrive after about 10 to 15 seconds.

Results are not medical advice. Data handling is described in the API terms.

Questions about the API go to support@nutriscan.app. Start with the quickstart for a first scan.