Documentation

LOINC API

MethodPathDescription
GET/v1/loinc/:codeSingle LOINC lookup
POST/v1/loinc/_batchBatch LOINC lookup (up to 100)
GET/v1/loinc/shapesList available response shapes

Look up Glucose in Blood test

Request
curl -X GET "https://api.fhirfly.io/v1/loinc/2339-0" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
JSON
{
  "data": {
    "class": "CHEM",
    "code": "2339-0",
    "display_name": "Glucose, Blood",
    "fhir_coding": {
      "code": "2339-0",
      "display": "Glucose, Blood",
      "system": "http://loinc.org"
    },
    "long_name": "Glucose [Mass/volume] in Blood",
    "map_to": [],
    "order_obs": "Both",
    "parts": {
      "component": "Glucose",
      "method_typ": null,
      "property": "MCnc",
      "scale_typ": "Qn",
      "system": "Bld",
      "time_aspct": "Pt"
    },
    "shortname": "Glucose Bld-mCnc",
    "status": "ACTIVE",
    "units": {
      "example_ucum_units": "mg/dL",
      "example_units": "mg/dL"
    }
  },
  "meta": {
    "legal": {
      "attribution_required": true,
      "citation": "LOINC from Regenstrief Institute. Accessed 2026-01-14 via FHIRfly.",
      "license": "regenstrief_license",
      "source_name": "LOINC",
      "terms_of_use": "https://loinc.org/license/"
    }
  }
}
PartDescription
ComponentWhat is measured (e.g., Glucose)
PropertyType of measurement (e.g., MCnc = Mass concentration)
TimePoint in time vs interval
SystemSpecimen type (e.g., Bld = Blood)
ScaleQuantitative, Ordinal, Nominal
MethodHow measured (optional)

Look up multiple lab tests

Request
curl -X POST "https://api.fhirfly.io/v1/loinc/_batch" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "codes": [
      "2339-0",
      "718-7",
      "2160-0"
    ]
  }'
Response
JSON
{
  "data": {
    "found": 3,
    "not_found": 0,
    "results": [
      {
        "code": "2339-0",
        "data": {
          "display_name": "Glucose, Blood",
          "class": "CHEM"
        }
      },
      {
        "code": "718-7",
        "data": {
          "display_name": "Hemoglobin",
          "class": "HEM/BC"
        }
      },
      {
        "code": "2160-0",
        "data": {
          "display_name": "Creatinine, Serum/Plasma",
          "class": "CHEM"
        }
      }
    ]
  }
}
ShapeDescription
compactCode, display_name, shortname, class, component
standard+ long_name, parts, status, units, fhir_coding
full+ version info, ranks, source_org
# Minimal data
GET /v1/loinc/2339-0?shape=compact

# Standard data (default)
GET /v1/loinc/2339-0?shape=standard

# Full data with provenance
GET /v1/loinc/2339-0?shape=full