Skip to content

Cholesterol Units Converter API

Convert cholesterol measurements across standard lab units and classify converted values into cholesterol risk bands.

Endpoint

  • GET /api/v1/cholesterol-units-converter
  • POST /api/v1/cholesterol-units-converter/post

Parameters

Name Type Required In Description
value number Yes Query/Body Input cholesterol value.
from_unit string (mg/dL,mmol/L) Yes Query/Body Source unit.
to_unit string (mg/dL,mmol/L) Yes Query/Body Target unit.
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Avoid manual conversion mistakes across systems.
  • Standardize lipid ingestion in global products.
  • Attach risk labels immediately after conversion.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/cholesterol-units-converter?value=220&from_unit=mg/dL&to_unit=mmol/L&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/cholesterol-units-converter/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"value":5.7,"from_unit":"mmol/L","to_unit":"mg/dL"}'

Response Example

Info

The response example below is for demonstration purposes only. Make a live request to this endpoint to receive the full, real-time, and potentially richer JSON structure.

{
  "value": 220.0,
  "from_unit": "mg/dL",
  "to_unit": "mmol/L",
  "converted_value": 5.689,
  "canonical_mg_dL": 220.0,
  "cholesterol_band": "borderline_high",
  "cholesterol_band_label": "Borderline High",
  "risk_signal": "Lipid profile is trending upward.",
  "action_plan": ["Improve dietary quality", "Track repeat labs"],
  "_enterprise": {
    "client": "Acme Health",
    "plan": "pro",
    "request_id": "726fbd6ba8cc1128",
    "quota": 120,
    "usage_tracking": true
  },
  "_api_metadata_": {
    "endpoint_name": "cholesterol_units_converter",
    "response_language": "en"
  }
}

Positioning

Great for cross-border telehealth stacks and enterprise lab integration systems.

Note

Allowed units are exactly mg/dL and mmol/L; unsupported unit strings are rejected.