Timeseries Scoring

This endpoint will accept a timeseries of health events, and a list of ages to score on

The time series scoring endpoint extends the default Health Scoring API to support longitudinal analysis for a single user. While the default endpoint generates point-in-time scores for multiple users in a batch, the time series endpoint allows you to submit multiple health events, each with its own biomarker data, for a single individual in a single request.

This enables you to construct a continuous trajectory of VOLO™ Scores, VOLO™ Ages, and risk ratios across a user's health history, capturing how health outcomes evolve over time. By analyzing how scores change across events, you can identify trends, measure the impact of health interventions, and support applications that require a longitudinal view of a user's health.

Full details of the endpoint and its definition, along with tools for testing it can be found under the API Reference page.

Request

The request schema closely mirrors the default endpoint, with key differences to accommodate multiple health events for a single user. Each event in the request contains its own set of predictors, allowing biomarker values to vary across events. The response returns a full set of disease scores, risk ratios, VOLO™ Ages, and (if enabled) predictor attributions for each point you ask to score.

Key objects and fields that are different to the default batch scoring request are listed below:

  1. uid_ext: The ID of the user that's being scored. This is provided in the main body of the request object and only needed once, as we are scoring for a single user.
  2. dates_to_score or ages_to_score: The points in time to score at. Data from health events is forward/backward imputed to each point to form as complete a dataset as possible. See Scoring by date or by age below.
  3. date_of_birth: The date of birth for the user, in ISO 8601 format (YYYY-MM-DD). Required when scoring by date, and cannot be in the future.
  4. health_events: The list of health events to build scoring bars from. Each health event contains:
    1. health_event_id: The ID to identify each event with.
    2. health_event_date: The date the event occurred. Required when scoring by date.
    3. event_age: The age of the user when the event occurred, as granular as possible. Required when scoring by age.
    4. predictors: The list of biomarkers (as LOINCs) and their values to be used for scoring. This is the same as the input for the default batch scoring endpoint.
  5. configuration (optional): The same configuration object as the batch endpoint, controlling which health domains, scores, attributions and overview are returned.

All events together must include sex, height, and weight; the scoring ages come from the date or age fields above. See Required predictors for the accepted codes.

Scoring by date or by age

A request scores either by date or by age, and that choice decides what every health event must carry:

Scoring byProvideEvery health event needsIgnored
Datedates_to_score, date_of_birthhealth_event_dateevent_age
Ageages_to_scoreevent_agehealth_event_date, date_of_birth

If both dates_to_score and ages_to_score are provided, the request scores by date. No date in dates_to_score may be before date_of_birth. A request that breaks these rules returns a 422.

Mode of operation

This endpoint also supports 3 different modes when submitting a request. This is specified in the mode property in the scoring_event_metadata node of the input request object sent to the API. These are:

  1. score - Simply take the input biomarker data and generate scores for the data.
  2. validate - This option will only validate the input biomarker data to ensure the values are in the correct range for the given unit for the biomarker, and the gender of the user. No scores will be generated when using this option.
  3. validate_and_score - This is a combination of the previous 2 options. This will validate each biomarker and generate scores based on the input data. The validations will be returned alongside the scoring results.

Scoring version

scoring_version in scoring_event_metadata works the same as on the default endpoint: send a supported version (1.5 or 1.6); when omitted, the older version is used. The response's scoring_event_metadata.scoring_version reports the full version that produced the scores, such as 1.5.0.

Example request

Below is a sample request for the timeseries endpoint, scoring by date at two points.

{
  "scoring_event_metadata": {
    "event_id": "docs-example-002",
    "event_asof_dtutc": "2026-10-01T12:00:00Z",
    "mode": "score",
    "scoring_version": "1.5"
  },
  "configuration": {
    "diseases": [
      "MACE3"
    ],
    "include_attributions": false,
    "include_defaulted_predictors": false
  },
  "uid_ext": "user_456",
  "date_of_birth": "1978-03-15",
  "dates_to_score": [
    "2024-06-01T00:00:00Z",
    "2025-06-01T00:00:00Z"
  ],
  "health_events": [
    {
      "health_event_id": "visit_1",
      "health_event_date": "2024-05-20T00:00:00Z",
      "predictors": [
        {
          "id": "e1-sex",
          "observation_code": "46098-0",
          "value": "female",
          "unit": ""
        },
        {
          "id": "e1-height",
          "observation_code": "8302-2",
          "value": "165",
          "unit": "cm"
        },
        {
          "id": "e1-weight",
          "observation_code": "29463-7",
          "value": "68",
          "unit": "kg"
        },
        {
          "id": "e1-a1c",
          "observation_code": "4548-4",
          "value": "5.6",
          "unit": "%"
        }
      ]
    },
    {
      "health_event_id": "visit_2",
      "health_event_date": "2025-05-28T00:00:00Z",
      "predictors": [
        {
          "id": "e2-weight",
          "observation_code": "29463-7",
          "value": "65",
          "unit": "kg"
        },
        {
          "id": "e2-a1c",
          "observation_code": "4548-4",
          "value": "5.3",
          "unit": "%"
        }
      ]
    }
  ]
}

Response

The response schema closely matches the output from the default batch scoring endpoint, with some minor differences to support the timeseries scores.

The differences in the response are outlined below:

  1. uid_ext: The ID of the user, returned once at the top level.
  2. scoring_results: An array with one entry per point in dates_to_score or ages_to_score. Each entry contains:
    1. scoring_event_date: The date this entry was scored at, when scoring by date.
    2. scoring_event_age: The age this entry was scored at, when scoring by age.
    3. scoring_predictors: As with the batch scoring response, the predictors used to score upon, including both given and imputed predictors. Each predictor also carries:
      1. health_event_id: The health_event_id that this predictor was taken from, if it was GIVEN, FORWARD, or BACKWARD imputed.
      2. health_event_date: The date of that health event, when scoring by date.
    4. disease_scores and overview: The same as the batch scoring response.
  3. validations: The validation results for every predictor in the request, returned once at the top level when the mode includes validation.

Example response

Below is a response to the request above, trimmed to a few predictors per scoring result.

{
  "scoring_event_metadata": {
    "event_id": "docs-example-002",
    "event_asof_dtutc": "2026-10-01T12:00:00Z",
    "scoring_version": "1.5.0"
  },
  "uid_ext": "user_456",
  "scoring_results": [
    {
      "scoring_event_age": null,
      "scoring_event_date": "2024-06-01T00:00:00",
      "scoring_predictors": [
        {
          "predictor_id": "e1-a1c",
          "predictor_code": "4548-4",
          "predictor_name": "Hemoglobin A1c/Hemoglobin.total in Blood",
          "value": "5.6",
          "unit": "%",
          "imputation_code": "FORWARD",
          "percentile": 90.491,
          "health_event_id": "visit_1",
          "health_event_date": "2024-05-20T00:00:00Z"
        },
        {
          "predictor_id": "e1-height",
          "predictor_code": "8302-2",
          "predictor_name": "Body height",
          "value": "165",
          "unit": "cm",
          "imputation_code": "GIVEN",
          "percentile": 53.0974,
          "health_event_id": "visit_1",
          "health_event_date": "2024-05-20T00:00:00Z"
        },
        {
          "predictor_id": "e1-weight",
          "predictor_code": "29463-7",
          "predictor_name": "Body weight",
          "value": "68",
          "unit": "kg",
          "imputation_code": "GIVEN",
          "percentile": 100.0,
          "health_event_id": "visit_1",
          "health_event_date": "2024-05-20T00:00:00Z"
        },
        {
          "predictor_id": "8565649b-b6ce-4d7d-ac89-275a537337f0",
          "predictor_code": "41982-0",
          "predictor_name": "Percentage of body fat Measured",
          "value": "34.20648430450252",
          "unit": "%",
          "imputation_code": "SIDEWAYS",
          "percentile": 47.7774,
          "health_event_id": null,
          "health_event_date": null
        }
      ],
      "disease_scores": [
        {
          "disease_code": "MACE3",
          "disease_concept_code": "2000004701",
          "disease_name": "Cardiovascular Health",
          "age_to_score": 55.0,
          "info_ratio": 0.5343,
          "score_percentile": 61.1009,
          "health_score": {
            "health_score": 208.6691,
            "max_score": 240.0
          },
          "risk_ratios": {
            "your_risk_frac": 0.0061,
            "peer_risk_frac": 0.0083,
            "risk_ratio": 0.7405
          },
          "disease_age": {
            "disease_age": 41.7367,
            "disease_age_delta": -4.4782
          }
        }
      ],
      "overview": null
    },
    {
      "scoring_event_age": null,
      "scoring_event_date": "2025-06-01T00:00:00",
      "scoring_predictors": [
        {
          "predictor_id": "e2-a1c",
          "predictor_code": "4548-4",
          "predictor_name": "Hemoglobin A1c/Hemoglobin.total in Blood",
          "value": "5.3",
          "unit": "%",
          "imputation_code": "FORWARD",
          "percentile": 65.5015,
          "health_event_id": "visit_2",
          "health_event_date": "2025-05-28T00:00:00Z"
        },
        {
          "predictor_id": "e1-height",
          "predictor_code": "8302-2",
          "predictor_name": "Body height",
          "value": "165",
          "unit": "cm",
          "imputation_code": "GIVEN",
          "percentile": 54.2078,
          "health_event_id": "visit_1",
          "health_event_date": "2024-05-20T00:00:00Z"
        },
        {
          "predictor_id": "e2-weight",
          "predictor_code": "29463-7",
          "predictor_name": "Body weight",
          "value": "65",
          "unit": "kg",
          "imputation_code": "GIVEN",
          "percentile": 100.0,
          "health_event_id": "visit_2",
          "health_event_date": "2025-05-28T00:00:00Z"
        },
        {
          "predictor_id": "4613d90d-4557-48b6-9ba7-cc8f13b0dee6",
          "predictor_code": "41982-0",
          "predictor_name": "Percentage of body fat Measured",
          "value": "32.70105127807167",
          "unit": "%",
          "imputation_code": "SIDEWAYS",
          "percentile": 38.7183,
          "health_event_id": null,
          "health_event_date": null
        }
      ],
      "disease_scores": [
        {
          "disease_code": "MACE3",
          "disease_concept_code": "2000004701",
          "disease_name": "Cardiovascular Health",
          "age_to_score": 55.0,
          "info_ratio": 0.5343,
          "score_percentile": 70.8846,
          "health_score": {
            "health_score": 212.8677,
            "max_score": 240.0
          },
          "risk_ratios": {
            "your_risk_frac": 0.0053,
            "peer_risk_frac": 0.0083,
            "risk_ratio": 0.6402
          },
          "disease_age": {
            "disease_age": 41.0063,
            "disease_age_delta": -6.2079
          }
        }
      ],
      "overview": null
    }
  ],
  "validations": []
}

Did this page help you?