Skip to content

Race Time Predictor API

Project race outcomes from current performance and conditioning metrics.

Endpoint

  • GET /api/v1/fitness/race-time-predictor
  • POST /api/v1/fitness/race-time-predictor/post

Parameters

Name Type Required In Description
recent_5k_time string/number Yes Query/Body 5K time as mm:ss, hh:mm:ss, or minutes.
vo2max number (20-90) Yes Query/Body VO2 max value.
weekly_mileage number (0-250) Yes Query/Body Weekly running mileage (km).
lang string No Query Response language (en,es,de,fr,pt,ja,hi,ar).

Why Use This Endpoint

  • Deliver race projections tied to current fitness signals.
  • Add readiness and confidence context to plan execution.
  • Improve pacing and goal-setting workflows in running apps.

Get Started

Request Example

curl -X GET "https://api.hefitapi.com/api/v1/fitness/race-time-predictor?recent_5k_time=22:30&vo2max=49&weekly_mileage=42&lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/race-time-predictor/post?lang=en" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"recent_5k_time":"23:45","vo2max":45,"weekly_mileage":34}'

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.

{
  "recent_5k_time": "22:30",
  "vo2max": 49.0,
  "weekly_mileage_km": 42.0,
  "readiness_band": {
    "level": "developing",
    "level_label": "Developing",
    "insight": "Fitness profile supports progressive race-specific work."
  },
  "projection_10k": {"time": "47:22", "seconds": 2842},
  "projection_half_marathon": {"time": "1:44:50", "seconds": 6290},
  "projection_marathon": {"time": "3:39:25", "seconds": 13165},
  "training_focus": "Build threshold consistency and long-run efficiency.",
  "confidence_score": 86,
  "summary": "Solid progression profile with actionable race readiness.",
  "language": "en",
  "_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "b84e92708fac339d", "quota": 120, "usage_tracking": true},
  "_api_metadata_": {"endpoint_name": "fitness_race_time_predictor", "response_language": "en"}
}

Product Positioning

A premium feature for running-coach SaaS, endurance planning apps, and race prep products.

Note

recent_5k_time must represent a realistic 5K range (11:00 to 75:00).