Technology
Biological age and lab data API for wearable and fitness device companies
Device data shows how a user moves and sleeps; a blood panel shows what the laboratory measured. The API adds that laboratory layer to your companion app: blood age, derived indices, report reading and nutrition plans.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Wearable and fitness device manufacturers
Challenges in this sector
Sensor metrics do not cover blood values
Heart rate, activity and sleep data contain no cholesterol, glucose or inflammation markers. Users who also take blood tests keep those results in a separate place, outside the companion app.
A device team is not a laboratory data team
Firmware, signal processing and mobile engineers rarely have experience with lab report formats, units and reference ranges. Building that knowledge in-house delays the hardware and app roadmap.
Global shipments mean many languages and units
A device sold in many countries meets reports in local languages, with SI or conventional units. A lab feature has to work for all of them from its first release.
Health features attract regulatory attention
Wearable makers already manage the boundary between wellness functions and regulated medical functions. A new feature based on blood values must not move the product across that boundary unintentionally.
How the integration works
Collect the panel in the companion app
Let the user upload a lab report as a PDF or photo and send it from your backend to
POST /api/v12/18-09-2026/analyze. If a partner laboratory already delivers structured values, skip this step and use them as JSON.Check blood age coverage before spending a call
POST /api/v1/blood-age/validatereports which of the nine PhenoAge markers the panel supplies, whether a chronological age could be read, and theexpected_sourceof the result. It consumes no quota.Compute blood age and indices
Send the
parametersarray toPOST /api/v1/blood-age/analyzewith the age from the user profile inpatient.age. Thesummaryreturnsbiological_age,chronological_age,delta_years,sourceandmarkers_missing, andblood_agelists up to 18 derived indices, each with aband.Combine with device metrics in your own app
Store the result per panel date and display it next to device data in your own interface. The API does not read sensor streams; any correlation between lab values and wearable metrics is designed and computed by you.

Recommended API modules
Biological age API from routine blood tests
The module that fits a device product directly: one age figure from nine routine blood markers with the published Levine PhenoAge model, plus indices such as HOMA-IR, TyG and eGFR. A partial panel is labelled
source: "partial", so your interface can show how complete the input was.Blood test AI API for developers and clinics
Brings lab reports into the companion app without manual entry. The
parametersarray it returns is passed straight to the biological age and nutrition modules, and the interpretation is written in the language of the user.Nutrition API and diet planner API based on blood tests
Extends coaching features with a 7-day meal plan based on blood values and a profile.
activity_levelis a field of thepatientobject, so the activity profile you already hold can be supplied, together with allergies, preferences,meal_frequencyandbudget.
Use cases
- A blood age card in the companion app that is updated each time the user adds a new panel.
- A lab results section beside sleep and activity history, filled from uploaded reports.
- A membership tier that includes a nutrition plan built from the latest blood test and the activity level in the user profile.
- A partnership with a laboratory or test kit provider whose structured results go into the blood age calculation without a document upload.
- A view of how
delta_yearschanges between panels taken several months apart.
Integration path
Integrate through your cloud backend, not from the device or directly from the mobile app, so that credentials stay on the server. A typical flow: the app uploads a file, or your laboratory partner posts values to your backend; the backend calls the blood test endpoint once per report and then the biological age endpoint with the resulting JSON; the app reads the stored result. Biological age is deterministic by default and makes no model call, which suits an on-demand request. The optional ai_assist, ai_estimate and ai_note layers are each enabled by their own flag. Report reading and nutrition plans are model-based synchronous calls and belong in a background job. Develop against POST /api/v1/blood-age/sandbox, which returns a sample in the shape of the live response.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
Lab values linked to a device account are health data and, under the GDPR, special category data. Ask for explicit consent to this feature separately from the general device terms, and keep the feature optional. Mobile platform rules on the use and disclosure of health data apply to the companion app. Present blood age as a calculated educational figure, and only for adults: the PhenoAge formula covers ages 18 to 100. Kantesti is not a medical device, is not CE- or UKCA-marked, and does not diagnose or treat. Using the API does not change the regulatory status of your device, and the feature should be kept apart from any regulated function your product has.
Example request and response
Biological age POST /api/v1/blood-age/sandbox Sandbox Endpoint reference
curl -X POST "https://app.aibloodtestinterpret.com/api/v1/blood-age/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/blood-age/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/blood-age/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/blood-age/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": {
"blood_age": {
"version": 1,
"age": {
"status": "ok",
"source": "formula",
"chrono": 40,
"pheno": 35.1,
"delta": -4.9,
"sex": "m",
"found": [
"…"
],
"missing": [
"…"
],
"labels": {
"…": "…"
},
"inputs": {
"…": "…"
}
},
"indices": [
{
"…": "…"
},
"… +4"
]
},
"engine_version": 1,
"mode": "deterministic",
"summary": {
"status": "ok",
"source": "formula",
"chronological_age": 40,
"biological_age": 35.1,
"delta_years": -4.9,
"sex": "m",
"markers_found": 9,
"markers_missing": [],
"indices_count": 5
},
"sandbox_mode": true
},
"timestamp": "2026-11-30T12:00:00.000000Z",
"api_version": "1.0.0",
"message": "Sandbox blood age returned successfully",
"sandbox": true,
"sandbox_notice": "This is sandbox test data. No actual analysis was performed and no quota was consumed."
}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 the API compute biological age from wearable data such as heart rate or sleep?
No. The Biological Age API uses blood markers: albumin, creatinine, glucose, CRP, lymphocytes %, MCV, RDW, alkaline phosphatase and white blood cell count, together with the chronological age. Sensor data is not an input.
What happens when a panel lacks some of the nine markers?
A figure is still returned: missing inputs are filled from population medians, source is partial and markers_missing lists what was not supplied. If your app should show only the complete formula, check source before display.
Which units and report languages can the lab values be in?
Analyte names are matched as the laboratory printed them, in 39 report languages, and SI and conventional units are converted automatically. The response returns the converted values that were actually used.
How many calls does one blood age result need?
One call if you already have structured values. Two calls if the user uploads a document: one blood test call to read it and one biological age call. Each successful analyze call is one credit; validate and sandbox calls are free.
Is blood age a medical assessment?
No. It is a calculated educational figure based on a published model. Blood age is not a diagnosis, and medical questions belong with a physician.
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

