Skip to main content

Team Rating History API

Calculate a team's strength at given points in time

This endpoint requires that valid Bayes team perids and date are sent with the API call:

GET - /api/team_rating_history?team_perid={team_perid}
&dates={ISO_DATE_0}&dates={ISO_DATE_1}&dates={ISO_DATE_2} ...
&dates={ISO_DATE_N}
parametertypedescription
team_peridarray, stringBayes perid for team to be ranked
datesISO date formatThe dates for which the teams ratings are to be returned. Should be in format YYYY-MM-DD

The perids for both teams can be found in the Bayes Fixtures Services.

The JSON response from the API call is a list of dates with their strength normalized to their actual rating over the selected timeframe.

  {
'2022-10-07': 1.0987651670878733,
'2022-09-30': 1.0987651670878733,
'2022-09-23': 1.0987651670878733,
'2022-09-16': 1.0987651670878733,
'2022-09-09': 0.8024696658242534,
'2022-09-02': 0.8024696658242534
}