Elo rating update after a game

Calculates both players' new Elo ratings after a match, and the expected score before it.

Request

POSThttps://sports-tools.p.apihiver.com/v1/elo

JSON object. Required: rating_a, rating_b, result.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://sports-tools.p.apihiver.com/v1/elo \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "result": 1,
8  "rating_a": 1500,
9  "rating_b": 1600
10}'

Elo rating update after a game: Sports & Cricket Tools API reference

Calculates both players' new Elo ratings after a match, and the expected score before it. This endpoint is part of the Sports & Cricket Tools API: Tournament fixtures, league tables, Elo ratings and cricket net run rate / required run rate calculators.

Example response (200, application/json)

Success.

1{
2  "change_a": 20.5,
3  "new_rating_a": 1520.5,
4  "new_rating_b": 1579.5,
5  "expected_score_a": 0.3599,
6  "expected_score_b": 0.6401
7}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "rating_a: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.