Technology
Lab results API for digital health products and health apps
Let users bring the laboratory reports they already have into your app. One REST call turns a PDF or photo into structured values with a plain-language explanation, and four further modules turn those values into product features.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Digital health companies and health app developers
Challenges in this sector
Lab reports arrive as PDFs and photos, not as data
Users hold their results as a file from a laboratory portal or as a photo of a printed page. Layouts, units and analyte names differ by laboratory and country, and writing one parser per layout does not scale with a growing user base.
A medical data pipeline is a separate engineering project
Extraction, unit handling, reference ranges, flagging and explanatory text each need engineering work and medical review. For many health apps this is a prerequisite for the feature, not the feature users pay for.
Users in several countries expect their own language
An app that launches in more than one market needs explanations in each language while the data model stays the same. Medical text in many languages is slow to maintain and hard to review inside an app team.
Features must remain wellness features
Product, legal and app review teams need output that explains and educates. Text that reads like a diagnosis or a treatment instruction creates regulatory exposure for the app publisher.
How the integration works
Build screens against the sandbox
Call
POST /api/v12/18-09-2026/sandboxwith your credentials. It uses the request format of the live endpoint, returns sample data and does not consume quota, so mobile and backend teams can build the result screens before any real report is processed.Upload from your backend, not from the device
The app sends the file to your server, and your server calls
POST /api/v12/18-09-2026/analyzeasmultipart/form-datawith thefilefield (PNG, JPG, WEBP or PDF, up to 20 MB) and the user'slanguage. Credentials stay on the server. If a report was photographed page by page, repeatfileto send all images in one request.Store the
parametersarray as your recordEach row has a short and a long name, result, unit, reference range,
range_normal_min,range_normal_maxand anevaluationsuch asnormal,highorlow. JSON keys and codes stay in English in every response language, so one schema serves all markets.data.interpretationsupplies text sections, each with ashortcodeyou can map to your layout.Add feature modules on the same data
Pass the stored rows as JSON to
POST /api/v1/body-map/analyze,POST /api/v1/blood-age/analyze,POST /api/v1/nutrition/diet-plan/analyzeorPOST /api/v1/analytics/trends/analyze. Each successful analyze call uses one credit, and you decide per feature and per user tier which calls to make.

Recommended API modules
Blood test AI API for developers and clinics
The entry point for reports that users supply themselves. It replaces per-laboratory parsing with one upload call and writes the explanation in any of 100 languages, selected with
language.Body map API for lab results
A visual start screen for results: flagged values are placed on 13 body regions with two severity levels. The output contains region keys and no text, so one legend component works in every locale of your app.
Biological age API from routine blood tests
A single figure that users understand and come back to: PhenoAge blood age with
delta_years, plus up to 18 derived indices. The default path is deterministic, so the same panel always shows the same number in your app.Nutrition API and diet planner API based on blood tests
Turns a result screen into a next step: a 7-day meal plan that follows the allergies, dietary preferences, meal count and budget stored in the user profile. The
labelsobject supplies display text in 39 languages.Lab results trend API and blood test comparison API
Gives users a reason to upload the next report. Send 2 to 50 dated tests and draw charts from
chart_config; the comparison endpoint writes a narrative of what changed between reports.
Use cases
- A report scanning flow in a consumer health app: the user uploads a photo, and the app shows structured results with an explanation in the user's language.
- A results timeline in a companion app for people who test regularly, drawn from
parameter_trendsafter each new upload. - A paid tier that adds blood age and derived indices to the results a free user already sees.
- A meal planning feature in a wellness app that reads lab values together with the dietary profile the user has set.
- A body legend on the dashboard of a preventive health app, coloured from the two severity levels of the body map response.
Integration path
The usual path is app, your backend, Kantesti. The mobile or web client uploads the file to your backend, a background worker calls the blood test endpoint and writes the JSON to your database, and the client reads results from your own API. The blood test call is synchronous and a model reads the document, so run it from a job queue with a long client timeout (the documented Python example uses 300 seconds) and show a progress state in the app. The body map and biological age modules are deterministic by default and can be called when the user opens the screen. POST /api/quota/check returns the remaining quota for your operations dashboard.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
Lab results are health data, and under the GDPR they are special category data. As the app publisher you decide the legal basis; where it is consent, collect explicit consent before the first upload. Send only what the feature needs: a report often prints a name and a date of birth, while the JSON modules need values and in some cases age and gender, but no name. App store review rules on health data and on health-related wording apply to your listing and your screens. Kantesti supplies AI-supported information for education. It is no medical device and has no CE or UKCA marking, it does not diagnose or treat, and it is no substitute for a physician. State this in your product wherever results are shown.
Example request and response
Blood test interpretation POST /api/v12/18-09-2026/sandbox Sandbox Endpoint reference
curl -X POST "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox" \
-H "Authorization: Bearer kt_live_YOUR_API_KEY" \
-F "language=en" \
-F "file=@report.pdf"
import requests
resp = requests.post(
"https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox",
headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
data={"language": "en"},
files={"file": open("report.pdf", "rb")},
timeout=60,
)
print(resp.json())
const form = new FormData();
form.append("language", "en");
form.append("file", fileInput.files[0]); // your PDF or photo
const resp = await fetch("https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox", {
method: "POST",
headers: { Authorization: "Bearer kt_live_YOUR_API_KEY" },
body: form,
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer kt_live_YOUR_API_KEY'],
CURLOPT_POSTFIELDS => [
'language' => 'en',
'file' => new CURLFile('report.pdf'),
],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": "success",
"data": {
"metadata": {
"patient_name": "Jan Novák",
"lab_city": "Prague",
"lab_country": "Czech Republic",
"lab_date": "2025-05-11",
"lab_name": "BioLAB Medical Center",
"patient_age": "45",
"patient_sex": "Male",
"results_date": "2025-05-26"
},
"parameters": [
{
"short_name": "PT Ratio",
"long_name": "Prothrombin Time Ratio",
"category": "Coagulation",
"result": 0.94,
"unit": null,
"evaluation": "optimal",
"type": "range",
"range_min": 0.5,
"range_max": 1.5,
"range_normal_min": 0.8,
"…": "+5"
},
"… +3"
],
"interpretation": [
{
"title": "Introduction",
"shortcode": "introduction",
"subsections": [
"…"
]
},
"… +3"
]
},
"timestamp": "2026-11-30T12:00:00.000000Z",
"api_version": "v12",
"sandbox": true,
"sandbox_notice": "This is sandbox test data. No actual analysis 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 a health app send a photo taken with a phone camera?
Yes. The blood test endpoint accepts PNG, JPG and WEBP images and PDF files up to 20 MB. A report with several pages can be sent as several images in one request by repeating the file field, and a password-protected PDF is read when you pass pdf_password.
Do we need to map laboratory names to our own codes first?
No. The body map and biological age modules match analyte names as the laboratory printed them, using alias tables for 39 report languages. For trend analysis, use the same parameter name across the tests you send so that a value can be followed over time.
How do we localise lab features for many countries?
Request the interpretation with the language parameter: 100 languages are supported and English is the default. Keys and codes stay in English. Nutrition plans are written in 39 languages and return English for other codes. Body map output has no text, so you translate the 13 region keys once in your client.
How many calls does a screen with several features use?
Each successful analyze call is one credit in every module. A screen that shows the interpretation, a body map and a blood age uses three credits for that report. Calls to sandbox, validate and reference endpoints cost nothing. There is no subscription, and the price per call is lower for larger purchases.
Can the output be presented as medical advice in our app?
No. The API returns AI-supported educational information. The output is no diagnosis and no substitute for a physician. Present it as an explanation of the report and refer users to a doctor for decisions about their health.
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

