Labs and testing
Result report API for at-home blood test kit companies
Your customer collects a sample at home and your partner laboratory measures it. The API covers the step after that: an explained result, a body map and a comparison with earlier kits, shown in your own dashboard.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
At-home lab test kit companies
Challenges in this sector
The result page influences whether a customer orders again
A table of values with reference ranges gives little orientation to a customer without medical training. Kit companies that sell repeat testing need a result page that customers understand and return to.
Each partner laboratory delivers a different format
One laboratory sends a PDF, another a data file with its own analyte names and units. Adding a country or changing a laboratory partner means reworking the result import.
Explanatory content grows with the kit catalogue
Every new kit, for example for thyroid, vitamins, hormones or lipids, adds markers that need explanatory text in every sales language. Writing and reviewing this text by hand slows each product launch.
Support requests rise when results are released
Customers who do not understand a flagged value write to support. Kit companies need a clear and consistent explanation on the result page at the time of release, with a reference to a doctor where a value is out of range.
How the integration works
Receive the result from the laboratory
When the partner laboratory releases a result, your backend receives either a report file or structured values. Link it to the kit order in your own system; the API needs no order or customer identifier.
Create the explained report
For a report file, call
POST /api/v12/18-09-2026/analyzewith the PDF and thelanguageof the customer. You receive every parameter with its reference range andevaluation, plusdata.interpretationsections identified by ashortcodesuch asovervieworkey_findings.Add the body map
Send the parameter rows to
POST /api/v1/body-map/analyze. Flagged results are assigned to 13 body regions, withlevel2 for out of range and 1 for borderline. When nothing is flagged the response hasall_clear: true, which you can use for a separate result screen.Compare with the previous kit
For returning customers, send the dated results of 2 to 20 kits to
POST /api/v1/bloodtest/comparison/analyzefor a written account of what changed, or 2 to 50 toPOST /api/v1/analytics/trends/analyzefor chart data. Keep parameter names identical across kits.

Recommended API modules
Blood test AI API for developers and clinics
Reads the report your partner laboratory issues and writes the explanation in the language of the customer, so you do not maintain a parser per laboratory layout. One integration serves several laboratories and countries.
Body map API for lab results
Gives each kit result a picture: the body regions that flagged markers belong to, with the markers listed per region. The output is language-free, so the same component serves every storefront.
Lab results trend API and blood test comparison API
Supports subscription and repeat-test models: every new kit adds a data point, and customers see direction, statistics and a narrative comparison in place of isolated tables.
Use cases
- A result dashboard for a general wellness kit, with an explanation and a body legend per report.
- A quarterly or annual repeat-test programme in which each result is compared with the previous one.
- Result pages in the language of each storefront, generated from the same laboratory data.
- A confirmation screen for panels without flagged values, driven by
all_clear. - A summary a customer can take to their own doctor, built from the structured parameters and the interpretation sections.
Integration path
The calls belong in the result release step of your order pipeline: laboratory result received, API calls made by a background worker, JSON stored with the order, customer notified by your own e-mail or push message. Render the JSON in your own templates and brand; the API returns data, not a finished document. If your laboratory sends structured values with a flag per analyte, the body map and trend modules can be used without the blood test call. An illustration is optional: set include_image, which uses image credit, and read image_url or the signed fallback_url while the image is still being produced. Test the full pipeline with the sandbox endpoints before the first live kit.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
Results of an at-home kit are health data. Together with your partner laboratory you define who is responsible for which processing step; name the explanation service in your privacy notice and collect explicit consent where you rely on it under the GDPR. The measurement and its reference ranges remain the responsibility of the laboratory, and the rules for self-test kits and sample collection in your markets apply to the kit itself, independently of this API. Kantesti adds AI-supported educational information to the laboratory result: it is not a medical device, is not CE- or UKCA-marked, does not diagnose or treat and does not replace a physician. State this on the result page and advise customers to discuss out-of-range values with a doctor.
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
Our laboratory sends data files, not PDFs. Can we still use the API?
Yes, for the body map, trend and comparison endpoints: convert the rows to JSON with analyte name, result, unit, reference range and an evaluation. The written interpretation of a single report comes from the blood test endpoint, which takes a PDF or image, so send the laboratory report file for that part.
Does the body map work for small panels such as a vitamin or thyroid kit?
It maps the flagged results the panel contains. If all values are normal, the response is all_clear: true. If flagged markers exist but none can be placed on a region, the API returns error RES_4004 and the call is not charged.
How many kits of one customer can be compared?
The comparison endpoint takes 2 to 20 tests that share at least one parameter, and trend analysis takes 2 to 50 dated tests. Each test needs a lab date or a results date in YYYY-MM-DD format.
How many credits does one result release use?
One credit per successful analyze call: for example one for the interpretation, one for the body map and one for a comparison with earlier kits, if you use all three. There is no subscription, and sandbox and validate calls are free.
Does the API replace the medical review that some kit providers offer?
No. It returns educational information, not a diagnosis. Where your service includes review by a physician, the API output can support that review but does not replace it.
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

