Healthcare providers

Lab report API for clinics and polyclinics

Turn the laboratory part of a check-up into a report patients can read: explained values, a body map of flagged results, a diet plan based on the panel and a comparison with the previous visit, rendered in the template of your clinic.

The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call

Clinics and polyclinics

Clinics

Challenges in this sector

  • Check-up reports are assembled manually

    A check-up package ends with a document that combines laboratory values, comments and advice. Physicians or assistants write it for every patient from the same recurring elements, which delays the delivery of the report.

  • Laboratory work is outsourced

    Many clinics and polyclinics use an external laboratory. Results come back as PDFs in the layout of that laboratory, separate from the clinic software and from the visual identity of the clinic.

  • Patients ask for nutrition advice the clinic cannot staff

    Patients with raised lipids or glucose ask what they should eat. Without a dietitian on site, the answer is a general leaflet that ignores allergies, preferences and the measured values.

  • Repeat visits lack a visible comparison

    A patient who returns after a year wants to know whether anything changed. Showing that means finding the old report and comparing the values one by one.

How the integration works

  1. Read the laboratory report

    When the PDF arrives from your laboratory, or a patient hands in a photo of an outside result, your clinic software posts it to POST /api/v12/18-09-2026/analyze. The response contains data.metadata, data.parameters and data.interpretation.

  2. Chain the modules you need

    Pass the same parameters array to POST /api/v1/body-map/analyze for the visual summary. Send it as blood_test, together with a patient object (age, gender, allergies, dietary preferences and restrictions), to POST /api/v1/nutrition/diet-plan/analyze for a 7-day plan.

  3. Render in your own template

    The API returns JSON, and the nutrition response includes a labels object with display text for every key. Your software places the content in the clinic template with your logo, and the physician or dietitian reviews it before release.

  4. Compare at the next visit

    Keep the structured parameters of each check-up. At the following visit, send both result sets to POST /api/v1/bloodtest/comparison/analyze and add the narrative of changes to the new report.

Diagram: How the integration works (Clinics) – Read the laboratory report → Chain the modules you need → Render in your own template → Compare at the next visit
How the integration works: Clinics. Recommended API modules: Blood test interpretation, Body Map, Nutrition and diet, Trend comparison.

Recommended API modules

Health AI APIs for lab results, DNA and nutrition

Use cases

  • Check-up and executive health packages: one document with explained values, body map and diet plan.
  • Polyclinics with several specialties: every department reads outside laboratory reports in the same structured form.
  • Follow-up programmes for weight, lipids or blood sugar: a diet plan built on the measured values and a comparison at each control visit.
  • Clinics with international patients: the same report content in the language of the patient, with the diet plan available in 39 languages.
  • Patient apps of clinic groups: results, map and plan are shown in the app after review.

Integration path

A clinic integration is usually small: the vendor of your clinic management software, or a contracted developer, adds three or four server-side REST calls and a report template. Start in the playground and with the sandbox endpoints, which need no patient data. Because the modules chain on the parameters array of the first response, the report is read once and reused, and you pay only for the modules you call. Free endpoints help before a paid call: POST /api/v1/body-map/validate lists the recognised markers. The output is JSON for your own template, so layout, logo and wording stay with the clinic.

API documentation Getting started Authentication Endpoints Errors Rate limits

Data protection and compliance

The reports are AI-supported educational information: not a diagnosis, not a treatment plan, not a medical device and not CE or UKCA marked. A physician of the clinic should review the interpretation text before release, and diet and supplement suggestions should be checked by a physician or dietitian against the medication and conditions of the patient. The nutrition endpoint is for adults (age 18 to 120). The clinic is the data controller for the health data it sends: inform patients in your privacy notice, obtain consent where your legal basis requires it, limit optional profile fields to what the plan needs, and agree data processing terms with Kantesti Ltd (api@kantesti.net) before the first live call. National rules on the advertising of health services apply to the way you present the report.

Clinically reviewed by Thomas Klein, MD · Last reviewed November 30, 2026

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);
Response Sandbox
{
  "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 clinic without its own laboratory use the API?

Yes. The blood test endpoint reads the PDF or image issued by an external laboratory, including a password-protected PDF, and returns structured values. Nothing has to change at the laboratory.

Can the report carry our clinic branding?

Yes, because you render it. The API returns JSON with stable English keys and text in the requested language, and your software places it in your own template.

How many credits does a full check-up report use?

One per successful analyze call: for example one for reading the report, one for the body map and one for the diet plan. Calls to the sandbox, validate and reference endpoints cost nothing.

Does the diet plan replace a dietitian?

No. It is a draft that respects the allergies, restrictions and preferences you send. A qualified professional should adapt it, in particular for patients with medical conditions or regular medication.

What does the report show when the patient has no abnormal values?

The interpretation still explains the panel, and the body map answers with all_clear: true, which you can present as a clean result page.

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

Kantesti® API illustration: Lab report API for clinics and polyclinics
Lab report API for clinics: build check-up reports with explained blood values, a body map, a diet plan and a comparison with the last visit, in your template.