Healthcare providers
Blood test API for pharmacies and pharmacy chains
Support pharmacist counselling with structured lab values, explanations in the customer's language, a nutrition plan built on those values and a view of repeated measurements over time. The pharmacist remains the professional who advises; the API takes no dispensing or prescribing decision.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Pharmacies and pharmacy chains
Challenges in this sector
Customers bring lab reports to the counter
People ask the pharmacist what a marked value on their report means, often at busy times. Reading a multi-page report from an unfamiliar laboratory and explaining it clearly takes longer than a counter consultation allows.
Pharmacy testing services end with a single number
A cholesterol, glucose or HbA1c measurement in the pharmacy produces a value and a short note. Without earlier values or a written summary, the customer leaves with nothing structured to discuss with their physician.
Nutrition and supplement advice lacks a lab basis
Questions about diet and supplements are a daily pharmacy task, yet the customer's laboratory values are rarely available when they are answered. The advice then stays general, and the connection to the measured result is lost.
A chain needs the same standard in every branch
Counselling differs between branches and members of staff, and customers who speak another language receive less explanation. A central service in the chain app or the pharmacy software gives every branch the same structured starting point.
How the integration works
Review the content in the sandbox
Call
POST /api/v12/18-09-2026/sandboxandPOST /api/v1/nutrition/diet-plan/sandboxfrom your pharmacy software or app backend. The sample responses have the live format and use no quota, so your responsible pharmacists can read the content before a pilot begins.Read the report the customer brings
With the customer's consent, scan or photograph the report and send it to
POST /api/v12/18-09-2026/analyze. Show the pharmacistdata.parameterswith eachevaluationfirst, followed by the text ofdata.interpretationin the language set withlanguage.Send pharmacy measurements as JSON
Values measured in the pharmacy need no document. Build a
blood_testobject whoseparameterscarry a name, aresultand aunit, add thepatientprofile withallergies,dietary_restrictionsandmedications, and send both toPOST /api/v1/nutrition/diet-plan/analyze.Follow repeat visits
Keep each dated result in the customer record of your own system and send between 2 and 50 of them to
POST /api/v1/analytics/trends/analyze. Useparameter_trendsandchart_configto show the course of a value at the next consultation.

Recommended API modules
Blood test AI API for developers and clinics
Reads the report a customer brings, whichever laboratory issued it, and returns each parameter with its reference range and evaluation. The pharmacist sees the marked values at once and can concentrate the conversation on them.
Nutrition API and diet planner API based on blood tests
Produces a seven-day meal plan, food suggestions and supplement suggestions tied to abnormal or borderline markers, each with dosage, timing, contraindications and priority. The plan is a draft that the pharmacist reads, corrects and hands over; it does not select a product for sale.
Lab results trend API and blood test comparison API
Shows direction and strength per parameter across repeated measurements, for example lipids or HbA1c in a pharmacy monitoring service, together with statistics and chart data.
Use cases
- Explain a customer's laboratory report during a booked consultation, in the customer's language.
- Add a written summary to a pharmacy cholesterol or HbA1c testing service.
- Draft a nutrition plan from measured values, which the pharmacist reviews and adapts before it is handed over.
- Show the course of repeated measurements in the customer app of a pharmacy chain.
- Give customers a structured list of out-of-range values to take to their physician.
Integration path
A pharmacy would normally integrate through the vendor of its pharmacy management software, and a chain through the backend of its customer app. All calls are REST requests over HTTPS, with the API username and password held on the server. Document uploads use multipart/form-data; nutrition and trend requests are JSON. Responses are JSON with stable English keys, so a single integration serves every branch, and the text language is chosen per request. One account and one credit balance cover all modules: each successful analyze call uses one credit, and sandbox calls are free.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
The output supports pharmacist counselling and is subject to the pharmacist's professional judgement. It is not a basis for dispensing, prescribing, substituting or changing a medicine, and it does not replace the pharmacist's own interaction check against the medication record. Supplement and nutrition suggestions are educational text; whether a product suits a customer is the pharmacist's assessment, and customers with out-of-range values are referred to their physician according to your professional standards. Lab values are health data: obtain the customer's consent, follow the data protection and pharmacy practice rules of your country, and document what your regulator requires. Kantesti is AI-supported health information for education only. It is not a medical device, is not CE or UKCA marked, and replaces neither a physician nor a pharmacist.
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
Does the API tell the pharmacist what to dispense?
No. It explains laboratory values and drafts nutrition content. It makes no dispensing or prescribing decision and gives no instruction to start, stop or change a medicine. Those decisions stay with the pharmacist and the prescriber.
Can we use values measured in the pharmacy, without a lab report?
Yes. The blood test API reads documents, while the nutrition and trend APIs accept structured JSON. A value from a pharmacy measurement can be sent directly with its name, result and unit.
Does the nutrition plan take the customer's medicines into account?
The patient profile has an optional medications field next to conditions, allergies and dietary restrictions, and each supplement suggestion is returned with contraindications. This is supporting information only. The pharmacist checks every suggestion against the medication record before it reaches the customer.
In which languages can customers receive the explanation?
The blood test interpretation is available in 100 languages and the nutrition plan in 39; a nutrition request in any other language is answered in English. JSON keys stay in English, so the same integration works for every language.
How is use in a pharmacy chain priced?
Per call, without a subscription. One successful analyze call uses one credit in every module, with a lower price per call for larger purchases. Sandbox and validate endpoints are free.
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

