rugbyAPI
Analytics / Referees

Referees

Live

Each referee against the average: home win rate, points, close games, cards and penalty goals.

GEThttps://api.rugbyapi.com/v1/analytics/referees

Parameters

NameWhat it doesExample
teamstring, optionalOnly matches this team played in.
competitionstring, optionalOnly this competition. IDs come from Competitions.
seasonstring, optionalOnly this season. IDs come from a competition's Seasons.ss_2H1294N

Any other parameter is refused with a 422 naming the ones this endpoint takes, so a typo never silently returns everything.

What each plan returns

Free key

Not included. Returns 403 with the upgrade link.

Archive

Not included. Returns 403 with the upgrade link.

Live

Included.

Response fields

FieldMeaning
analysisWhich analysis this is, for example totals.
scopeThe team, competition and season asked for, each with its ID and name, or null.
basis.matches_in_scopeFinished matches in the scope.
basis.matches_countedHow many of them this analysis could use.
basis.countedThe rule for which matches count, for example only those whose scoring timeline adds up to the final score.
notesHow the figures are worked out, in plain words.
dataThe figures. With a team, the team's own; without one, the whole scope with a row per team.
built_utcWhen the answer was worked out. Each scope is kept for three hours.

Errors you can get

StatusCodeWhen
400key_in_addressThe key was put in the address. Send it in a header (see Authentication).
401missing_keyNo Authorization: Bearer header, or the key was rotated (invalid_key, revoked_key).
403plan_requiredYour plan is below Live.
422bad_parameterA parameter is malformed, or unknown (unknown_parameter names the ones this endpoint takes).
422missing_parameterNone of team, competition or season was given. A team can be combined with a competition or a season.
429daily_limitToday's lookups are used. Resets at 00:00 UTC.

Every error has the same shape. All error codes

Try it live

Runs this call from your browser with your own key and shows what comes back.

Your key Get a free key
curl https://api.rugbyapi.com/v1/analytics/referees?season=ss_2H1294N \
  -H "Authorization: Bearer YOUR_KEY"
$ch = curl_init('https://api.rugbyapi.com/v1/analytics/referees?season=ss_2H1294N');
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER     => ['Authorization: Bearer YOUR_KEY'],
    CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
import requests

r = requests.get(
    "https://api.rugbyapi.com/v1/analytics/referees",
    params={"season": "ss_2H1294N"},
    headers={"Authorization": "Bearer YOUR_KEY"},
)
data = r.json()
const r = await fetch('https://api.rugbyapi.com/v1/analytics/referees?season=ss_2H1294N', {
  headers: { Authorization: 'Bearer YOUR_KEY' }
});
const data = await r.json();
200ResponseExample from the live archive, lists cut to 3
{
  "analysis": "referees",
  "scope": {
    "team": null,
    "competition": {
      "id": "cp_2EW9542",
      "name": "United Rugby Championship"
    },
    "season": {
      "id": "ss_2H1294N",
      "name": "2025-26"
    }
  },
  "basis": {
    "matches_in_scope": 151,
    "matches_counted": 135,
    "counted": "Finished matches with a named referee. Cards, penalty goals and tries come from those whose scoring timeline adds up."
  },
  "notes": [
    "Referees with at least 3 matches in scope are listed.",
    "vs_average compares each referee with every match in scope, so a positive cards figure means more cards than usual."
  ],
  "data": {
    "matches": 135,
    "average": {
      "matches": 135,
      "home_win_pct": 64.4,
      "draw_pct": 5.2,
      "avg_total_points": 48,
      "close_games_pct": 37,
      "matches_with_timeline": 132,
      "cards_per_match": 1.52,
      "yellow_cards": 183,
      "red_cards": 18,
      "penalty_goals_per_match": 1.35,
      "tries_per_match": 6.8
    },
    "referees": [
      {
        "referee": {
          "id": "rf_1RMQFB2",
          "name": "Andrew Brace"
        },
        "matches": 11,
        "home_win_pct": 63.6,
        "draw_pct": 9.1,
        "avg_total_points": 49.2,
        "close_games_pct": 45.5,
        "matches_with_timeline": 11,
        "cards_per_match": 1.64,
        "yellow_cards": 17,
        "red_cards": 1,
        "penalty_goals_per_match": 1.64,
        "tries_per_match": 7,
        "vs_average": {
          "home_win_pct": -0.8,
          "avg_total_points": 1.2,
          "cards_per_match": 0.12
        }
      },
      {
        "referee": {
          "id": "rf_0Z4W8Q7",
          "name": "Sam Grove-White"
        },
        "matches": 10,
        "home_win_pct": 70,
        "draw_pct": 0,
        "avg_total_points": 46.2,
        "close_games_pct": 10,
        "matches_with_timeline": 10,
        "cards_per_match": 1,
        "yellow_cards": 10,
        "red_cards": 0,
        "penalty_goals_per_match": 1.2,
        "tries_per_match": 6.6,
        "vs_average": {
          "home_win_pct": 5.6,
          "avg_total_points": -1.8,
          "cards_per_match": -0.52
        }
      },
      {
        "referee": {
          "id": "rf_25VWKS1",
          "name": "Ben Whitehouse"
        },
        "matches": 9,
        "home_win_pct": 44.4,
        "draw_pct": 11.1,
        "avg_total_points": 57,
        "close_games_pct": 44.4,
        "matches_with_timeline": 9,
        "cards_per_match": 2.22,
        "yellow_cards": 18,
        "red_cards": 2,
        "penalty_goals_per_match": 1.33,
        "tries_per_match": 8.11,
        "vs_average": {
          "home_win_pct": -20,
          "avg_total_points": 9,
          "cards_per_match": 0.7
        }
      }
    ]
  },
  "built_utc": "2026-10-22T03:17:29Z"
}