Triglycerides Units Converter API¶
Perform triglycerides unit conversion with consistent risk-band interpretation.
Endpoint¶
GET /api/v1/triglycerides-units-converterPOST /api/v1/triglycerides-units-converter/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
value | number | Yes | Query/Body | Triglycerides measurement value. |
from_unit | string | Yes | Query/Body | mg/dL or mmol/L. |
to_unit | string | Yes | Query/Body | mg/dL or mmol/L. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Normalize mixed lab-unit data in one API call.
- Preserve risk context after conversion.
- Reduce unit-handling errors in clinical and fitness apps.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/triglycerides-units-converter?value=180&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/triglycerides-units-converter/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"value":2.1,"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": 180.0,
"from_unit": "mg/dL",
"to_unit": "mmol/L",
"converted_value": 2.032,
"canonical_mg_dL": 180.0,
"tg_band": "borderline",
"tg_band_label": "Borderline",
"risk_signal": "Monitor triglycerides trend and lifestyle factors.",
"action_plan": ["Improve nutrition quality and activity consistency"],
"_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "4f19842aa161d638", "quota": 120, "usage_tracking": true},
"_api_metadata_": {"endpoint_name": "triglycerides_units_converter", "response_language": "en"}
}
Product Positioning¶
Useful for lab dashboards, preventive-health products, and multi-region clinical apps.
Note
Only mg/dL and mmol/L are valid units.
Recommended Endpoints¶
GET /api/v1/cholesterol-units-converter- Cholesterol Units Converter APIGET /api/v1/blood-sugar-converter- Blood Sugar Converter APIGET /api/v1/bmi- Bmi APIGET /api/v1/tdee- Tdee APIGET /api/v1/bmr- Bmr APIGET /api/v1/protein-calculator- Protein Calculator API