Healthcare providers
Blood test API for doctors and practice management software
The Kantesti API reads the lab reports your patients bring, from different laboratories and in different layouts, and returns structured values with a draft explanation in the language of the patient. The physician reviews the draft and decides what is released.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Physicians and private practices
Challenges in this sector
Explaining routine results uses consultation time
Follow-up appointments are often spent explaining values that are within range or only slightly outside it. The explanation is repeated for every patient and is rarely written down in words the patient can read again at home.
Reports arrive from many laboratories in many layouts
Patients bring PDFs, printouts and phone photos from different laboratories, each with its own analyte names, units and reference ranges. Staff retype the values into the practice system, or the report remains an attachment that cannot be searched.
Earlier results are hard to compare
Seeing how ferritin, HbA1c or LDL cholesterol moved over three visits means opening three documents next to each other. In a short appointment that comparison is frequently skipped.
Patients read results before the appointment
When a result reaches the patient first, the practice receives calls and messages about flagged values. Patients who do not speak the language of the practice have no written explanation at all.
How the integration works
Test with sample data
Create an account and call
POST /api/v12/18-09-2026/sandbox. It returns a sample response in the shape of the live endpoint without using a credit, so your software vendor or developer can build the result screen before any patient data is sent.Send the report from your practice software
Your server posts the PDF or photo as
multipart/form-datatoPOST /api/v12/18-09-2026/analyzewith thefilefield, an optionallanguagecode andpdf_passwordfor encrypted files. A report photographed page by page is sent as a single request: repeat thefilefield for each image.Review the draft before release
Show
data.parametersanddata.interpretationto the physician as a draft inside the patient record. The physician edits, shortens or discards the text, and only the reviewed version is sent to the patient or printed.Add history and context where it helps
For returning patients, send the dated results to
POST /api/v1/bloodtest/comparison/analyzefor a narrative of what changed, or pass the flagged rows toPOST /api/v1/body-map/analyzefor a visual summary. A family history taken at intake can be sent toPOST /api/v1/family-health/analyze.

Recommended API modules
Blood test AI API for developers and clinics
Converts the reports patients bring into one consistent structure: analyte, result, unit, reference range and an
evaluationsuch asnormal,highorlow, with a written interpretation in sections. Qualitative results, for example a negative or positive finding, are returned withtypeset tobinary.Lab results trend API and blood test comparison API
Follows one patient across visits. Trend analysis returns direction, strength and statistics per parameter for 2 to 50 dated tests. The comparison endpoint writes a narrative for 2 to 20 tests, which suits a note prepared before a follow-up appointment.
Body map API for lab results
Places flagged results on 13 body regions, so the patient sees which organ systems the abnormal values relate to. The default mode calls no model and returns the same map for the same panel, which keeps the picture predictable during a consultation.
Family health history API for hereditary risk reports
Turns the family history from an intake questionnaire into a structured report across nine condition categories, with paternal and maternal lineage analysis, and correlates it with blood test data when you include it. It works from the history you send, not from a genetic test.
Use cases
- Pre-visit preparation: results uploaded by the patient are structured and summarised before the appointment starts.
- Patient letters: a reviewed plain-language explanation accompanies the result, written in the language of the patient.
- Chronic care follow-up: lipid, glucose or thyroid values from repeated panels are compared across visits with one request.
- Preventive consultations: a body map and a family history report give structure to the discussion of a check-up.
- Reports from abroad: a report printed in another language is returned with English JSON keys and text in the language you request.
Integration path
A practice rarely builds this itself: the vendor of the practice management or EHR software adds a server-side call, or a developer writes a small service next to that system. The credentials of the API account (username and password) are sent with every request and must stay on the server, never in a browser or a mobile app. Blood test analysis answers in the same HTTP response and can take longer than a page load (the Python example in the documentation sets a timeout of 300 seconds), so run it as a background job and display the result when it is ready. The API returns JSON, not a finished document: the layout of the patient letter or portal page is yours.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
The output of the Kantesti API is AI-supported educational information. Kantesti is not a medical device, is not CE or UKCA marked, and its output is neither a diagnosis nor a treatment recommendation. The treating physician remains responsible for every statement given to a patient, which is why the integration should contain a review step. Lab reports hold health data and usually the name of the patient. Under GDPR and comparable laws the practice is the controller: it needs a lawful basis, must inform patients that reports are sent to an external service provider, and should agree data processing terms with Kantesti Ltd (api@kantesti.net) before the first live report. Kantesti Ltd is registered in England and Wales. The professional secrecy rules of your jurisdiction apply in addition.
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 the API interpret a blood test without a doctor reviewing it?
The response is technically complete, but it is educational information and not a diagnosis. In a medical practice the physician should read the text before a patient receives it, and the integration should make that review a required step.
Which lab reports can a practice send?
PDFs and images (PNG, JPG, WEBP) up to 20 MB, including phone photos of printed reports and password-protected PDFs. The report can come from any laboratory, and the interpretation is written in one of 100 languages.
Does it work with my practice management system?
The API is plain REST with JSON responses, so any system that can make an HTTPS request from a server can use it. The call is added by your software vendor or by a developer; ask your vendor whether an integration already exists.
What does a small practice pay?
There is no subscription. Each successful analysis uses one credit, whichever module is called, and the sandbox and validate endpoints are free, so the cost follows the number of reports you process.
Who is responsible for the medical content behind the API?
Medical content at Kantesti is overseen by Thomas Klein, MD, Chief Medical Officer and clinical hematologist, and a Medical Advisory Board guides the methodology. The board does not review individual reports, and its participation is not independent or regulatory validation.
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

