REST · JSON · POST
Nutrition API and diet planner API based on blood tests
Generate a weekly meal plan with food and supplement suggestions from blood test values and a patient profile, in one JSON request.
POST /api/v1/nutrition/diet-plan/analyze
Key capabilities
The Nutrition AI API (Nutrition Diet AI v1) builds a plan around the blood test you send and the person it is for. It follows dietary_preferences, dietary_restrictions and allergies in every section, and it respects the meals per day and the budget you ask for: with meal_frequency: 2 every day has lunch and dinner only.
Structured JSON
Stable English keys and codes, with text in the language you request.
Free sandbox
The sandbox endpoint returns a sample response in the shape of the live one and uses no credits.
One credit per call
A successful analyze call uses one credit. Sandbox calls are free.
API key authentication
Send your key as a Bearer token in the Authorization header. Never put a key in a URL.

Example request and response
POST /api/v1/nutrition/diet-plan/analyze Live
POST /api/v1/nutrition/diet-plan/sandbox Sandbox
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.
Inputs and outputs
What you send
JSON with a
patientobject (age18-120 andgenderrequired; weight, height, conditions, allergies, dietary preferences and restrictions, activity level, liked and disliked foods,meal_frequency,snacks,budget, medications optional), ablood_testobject with the parameters, and optionalhealth_goalsandlanguage.What you get back
A
nutrition_planwithnutrition_summary(daily calories and macro targets),weekly_meal_plan(Monday to Sunday),food_recommendations(power foods, foods to limit, hydration),supplement_recommendations(one per abnormal or borderline marker a supplement can help, with dosage, timing, contraindications and priority),lifestyle_integration(shopping list, eating schedule),monitoring_planandeducational_insights. Alabelsobject carries display text for every key; plans are written in 39 languages, any other language returns English.

Use cases
Offer a diet plan as a follow-up to a blood test report in a clinic or lab portal.
Power a diet planner in a nutrition or fitness app that reacts to real lab values instead of a questionnaire only.
Give dietitians a first draft that already respects allergies, restrictions, meal count and budget.
Render the plan in the user's language from
labels, without a translation table of your own.
Who uses this API
Sectors that typically integrate this module.
Nutrition and dietetics
Dietitians and nutrition clinics
Sports and fitness
Sports clubs, gyms, coaches and sports medicine teams
Pharmacies
Pharmacies and pharmacy chains
Women's health
Women's health and femtech companies
Questions
What makes this nutrition API different from a food database API?
It does not look up nutrients of foods. It writes a personal 7-day plan from blood test values and a patient profile and returns it as structured JSON.
Does the diet planner API respect allergies and diets?
Yes. Allergies, dietary restrictions and dietary preferences are applied to every section of the plan, and meal_frequency, snacks and budget set the shape of each day.
In which languages is the plan written?
In 39 languages. JSON keys and codes stay in English, and the labels object gives display text in the requested language. Other supported language codes return the plan in English.
Are the supplement suggestions medical advice?
No. The plan is AI-supported educational information. It does not diagnose or treat and does not replace a physician or dietitian.
Other API modules
Blood test interpretation
Values, reference ranges and a plain-language explanation.
Body Map
Results grouped by organ system.
Biological age
An age estimate from routine blood markers.
Trend comparison
Changes between two or more reports.
Family health
A family-history overview.
DNA health
Reports from raw genotype files.
Start building
Free sandbox access. Buy credits only when you go live.

