Sedentary Risk Score API¶
Measure musculoskeletal and longevity drag from prolonged sedentary exposure.
Endpoint¶
GET /api/v1/fitness/sedentary-risk-scorePOST /api/v1/fitness/sedentary-risk-score/post
Parameters¶
| Name | Type | Required | In | Description |
|---|---|---|---|---|
sitting_hours | number (0-20) | Yes | Query/Body | Daily sitting duration. |
steps_per_day | integer (0-60000) | Yes | Query/Body | Daily step count. |
posture_type | string | Yes | Query/Body | neutral,anterior_pelvic_tilt,kyphotic,lordotic,swayback,flat_back. |
back_pain_history | boolean-like | Yes | Query/Body | true/false, 1/0, yes/no. |
lang | string | No | Query | Response language (en,es,de,fr,pt,ja,hi,ar). |
Why Use This Endpoint¶
- Quantify sedentary musculoskeletal risk in one score.
- Return posture-aware daily mobility prescriptions.
- Connect inactivity profile to longevity impact.
Request Example¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/sedentary-risk-score?sitting_hours=9.5&steps_per_day=5200&posture_type=kyphotic&back_pain_history=true&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/sedentary-risk-score/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"sitting_hours":7.8,"steps_per_day":8200,"posture_type":"neutral","back_pain_history":false}'
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.
{
"sitting_hours": 9.5,
"steps_per_day": 5200,
"posture_type": "kyphotic",
"posture_type_label": "Kyphotic",
"back_pain_history": true,
"musculoskeletal_risk_index": {"score": 82, "level": "very_high", "level_label": "Very High", "insight": "Current profile indicates high musculoskeletal strain risk."},
"daily_mobility_prescription": ["Frequent mobility breaks and posture resets"],
"longevity_tie_in": {"impact_score": 78, "band": "elevated_drag", "band_label": "Elevated Drag", "insight": "Current sedentary exposure significantly impacts long-term health trajectory."},
"component_load": {"sitting_pressure": 33.3, "inactivity_pressure": 15.4, "posture_pressure": 12.0, "pain_history_pressure": 16.0},
"next_review_window_days": 14,
"summary": "Very high sedentary risk requiring immediate behavior intervention.",
"language": "en",
"_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "5f608232b778db8d", "quota": 120, "usage_tracking": true},
"_api_metadata_": {"endpoint_name": "fitness_sedentary_risk_score", "response_language": "en"}
}
Product Positioning¶
High utility for workplace wellness, posture apps, and longevity coaching platforms.
Note
back_pain_history accepts bool-like values (true/false, 1/0, yes/no).
Recommended Endpoints¶
GET /api/v1/diabetes-risk- Diabetes Risk APIGET /api/v1/fitness/fasted-training-risk- Fasted Training Risk APIGET /api/v1/fitness/injury-risk- Injury Risk APIGET /api/v1/fitness/longevity-score- Longevity Score APIGET /api/v1/fitness/metabolic-adaptation-risk- Metabolic Adaptation Risk APIGET /api/v1/fitness/micronutrient-risk- Micronutrient Risk API