Health and wellness business
Nutrition API for dietitians, nutrition practices and diet clinics
Generate a first draft of a seven-day plan from the lab values and profile of a client, then review and adjust it as the professional. The draft already follows allergies, dietary restrictions, the number of meals and the budget.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Dietitians and nutrition clinics
Challenges in this sector
Plan writing consumes consultation time
Reading lab values, calculating energy needs and composing seven days of meals for one client is repetitive work. It is done before or after the appointment and reduces the time left for counselling.
Lab values are retyped by hand
Clients bring results on paper or as a PDF from their physician. Someone in the practice copies ferritin, lipids or vitamin D into the practice software, with the risk of transcription errors.
Templates fail when constraints combine
A vegetarian client with a nut allergy, a low-sodium restriction, two meals a day and a fixed weekly budget does not fit a standard template. Each constraint must hold in every meal, every food list and every supplement suggestion.
Clients read in different languages
A practice with an international clientele translates plans manually or hands them over in a language the client reads with difficulty.
How the integration works
Capture the lab values
Send the report of the client to
POST /api/v12/18-09-2026/analyzeand takedata.parameters, or enter the values you have asblood_test.parameterswithshort_name,resultandunit.Describe the client
Fill the
patientobject:ageandgenderare required; weight, height,conditions,allergies,medications,dietary_preferences,dietary_restrictions,activity_level,liked_foods,disliked_foods,meal_frequency,snacksandbudgetare optional. Addhealth_goalssuch asheart_healthorweight_management.Request the draft
POST /api/v1/nutrition/diet-plan/analyzereturnsnutrition_planwith daily calorie and macro targets, a plan from Monday to Sunday, foods to favour and to limit, supplement suggestions, a shopping list, an eating schedule and a monitoring plan.Review, edit and deliver
Load the JSON into your practice software, change what your professional judgement requires and render it with the
labelsobject. Draw each day frommetadata.meal_slots, so that a plan with two meals a day shows two meals.

Recommended API modules
Nutrition API and diet planner API based on blood tests
The centre of the workflow. It computes
daily_caloriesand grams of protein, fat, carbohydrate and fibre, reportsbmrandtdeeinmetadata, and applies preferences, restrictions and allergies to meals, food lists and supplements alike.Blood test AI API for developers and clinics
Removes manual data entry. The extracted
parametersarray, with a unit and anevaluationper value, becomes theblood_testinput of the plan, andeducational_insights.blood_test_connectionslinks each relevant value to foods.DNA test AI API for raw DNA data
For clients who bring genetic data, the DNA report contains a
nutrigenomicssection, and the DNA + Blood Health Report marks where a genetic finding and a lab value agree or disagree. Treat both as background for counselling, not as the basis of a therapeutic diet.
Use cases
- Prepare a draft before the first consultation, so that the appointment is spent on the habits and goals of the client.
- Add a plan generator to practice management or diet software that many dietitians use.
- Plan for eating patterns such as
"16:8"or two meals a day throughmeal_frequency. - Keep a plan within a stated amount, for example
"10-20 EUR/day", with everycost_estimatein that currency. - Regenerate the plan after a follow-up blood test and compare the new focus areas with the previous ones.
Integration path
A vendor of practice software adds one server-side call per plan. The request is JSON, the response is JSON, and one successful call uses one credit. The sandbox at POST /api/v1/nutrition/diet-plan/sandbox answers with the same meals as the live endpoint for every meal_frequency value, so the rendering can be built and tested without quota. Do not show JSON keys or codes to clients: titles come from labels, and priority_label and source_label are ready to display. If your practice keeps a supplement library, suggestions taken from it are marked clinic_library.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
The plan is AI-supported educational information and a working draft for a qualified professional. It is not medical nutrition therapy, not a diagnosis and not a prescription. Kantesti is not a medical device and carries no CE or UKCA mark. The dietitian or physician who knows the client decides what is handed over, in particular where conditions or medications are involved. The endpoint accepts ages from 18 to 120 and is therefore not intended for children. Lab values and health conditions are sensitive personal data; the practice is responsible for the legal basis, the consent of the client and professional confidentiality.
Example request and response
Nutrition and diet POST /api/v1/nutrition/diet-plan/sandbox Sandbox Endpoint reference
curl -X POST "https://app.aibloodtestinterpret.com/api/v1/nutrition/diet-plan/sandbox" \
-H "Authorization: Bearer kt_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"language":"en"}'
import requests
resp = requests.post(
"https://app.aibloodtestinterpret.com/api/v1/nutrition/diet-plan/sandbox",
headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
json={"language": "en"},
timeout=60,
)
print(resp.json())
const resp = await fetch("https://app.aibloodtestinterpret.com/api/v1/nutrition/diet-plan/sandbox", {
method: "POST",
headers: {
Authorization: "Bearer kt_live_YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"language":"en"}),
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v1/nutrition/diet-plan/sandbox');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer kt_live_YOUR_API_KEY',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['language' => 'en']),
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": "success",
"data": {
"analysis_id": "NUT-SANDBOX0",
"generated_at": "2026-11-30T12:00:00.000000Z",
"patient_summary": {
"age": 34,
"gender": "female",
"weight": 62,
"height": 165,
"conditions": [
"…"
],
"dietary_preferences": "omnivore"
},
"nutrition_plan": {
"nutrition_summary": {
"…": "…"
},
"weekly_meal_plan": {
"…": "…"
},
"food_recommendations": {
"…": "…"
},
"supplement_recommendations": [
"…"
],
"lifestyle_integration": {
"…": "…"
},
"monitoring_plan": {
"…": "…"
},
"…": "+2"
},
"labels": {
"nutrition_summary": "Nutrition Summary",
"daily_calories": "Daily Calorie Target",
"macro_distribution": "Macro Distribution",
"protein_g": "Protein",
"fat_g": "Fat",
"carbs_g": "Carbs",
"…": "+78"
},
"language": "en",
"…": "+1"
},
"timestamp": "2026-11-30T12:00:00.000000Z",
"api_version": "1.0.0",
"sandbox": true,
"sandbox_notice": "This is sandbox test data. No actual processing was performed."
}Sandbox response, shortened for this page. The playground shows the full body. Sample data only. No real patient data is sent or stored.
Questions
Can I generate a plan without blood test values?
No. The request requires both a patient object and a blood_test object, because the plan is built around the lab values. The blood_test object lists the values you have; the documentation example sends six parameters.
Does the API replace the dietitian?
No. It produces a structured first draft. Assessment, counselling, adjustment for medical conditions and the decision to give a plan to a client remain professional tasks.
Which diets and restrictions can the plan follow?
Preferences: omnivore, vegetarian, vegan, pescatarian, keto, paleo and mediterranean. Restrictions include low_sodium, low_sugar, low_fat, gluten_free, dairy_free, nut_free, soy_free, egg_free, halal and kosher, and free text is accepted for others.
Can I set the number of meals and snacks?
Yes. meal_frequency accepts a number, a text such as "5 meals" or "intermittent", or a list of meals, and snacks sets the snack count separately. A day has at most six eating occasions, and metadata.meal_frequency reports what was applied.
In which languages can clients receive their plan?
In 39 languages, selected with language. Any other supported language code returns the plan and its labels in English.
Start building
Run a sample request in the playground, check the price per call, or write to the API team about your integration.
API support: api@kantesti.net

