rugbyAPI
Teams / Team matches
Documentation/Teams/Team matches

Team matches

Archive

Every match a team has played or will play, newest first, optionally one season.

GEThttps://api.rugbyapi.com/v1/teams/{id}/matches

Parameters

NameWhat it doesExample
idpath, requiredThe ID in the path.tm_1KTEF3F
seasonid, optionalOnly this season.ss_1VSX6S8

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

Included.

Live

Included.

Response fields

FieldMeaning
teamID and name
countMatches returned, up to 200
data[]Each match has id, date, kickoff_utc, status, competition, season, and home and away with team id, name and score.

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 Archive.
404not_foundNo team with that ID (bad_id if it is not in our format).
422bad_parameterA parameter is malformed, or unknown (unknown_parameter names the ones this endpoint takes).
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/teams/tm_1KTEF3F/matches?season=ss_1VSX6S8 \
  -H "Authorization: Bearer YOUR_KEY"
$ch = curl_init('https://api.rugbyapi.com/v1/teams/tm_1KTEF3F/matches?season=ss_1VSX6S8');
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/teams/tm_1KTEF3F/matches",
    params={"season": "ss_1VSX6S8"},
    headers={"Authorization": "Bearer YOUR_KEY"},
)
data = r.json()
const r = await fetch('https://api.rugbyapi.com/v1/teams/tm_1KTEF3F/matches?season=ss_1VSX6S8', {
  headers: { Authorization: 'Bearer YOUR_KEY' }
});
const data = await r.json();
200ResponseExample from the live archive, lists cut to 3
{
  "team": {
    "id": "tm_1KTEF3F",
    "name": "Ospreys"
  },
  "count": 18,
  "data": [
    {
      "id": "mt_2AM1WZ8",
      "date": "2027-05-14",
      "kickoff_utc": "2027-05-14T18:45:00Z",
      "status": "scheduled",
      "competition": {
        "id": "cp_2EW9542",
        "name": "United Rugby Championship"
      },
      "season": {
        "id": "ss_1VSX6S8",
        "name": "2026-27"
      },
      "home": {
        "id": "tm_1KTEF3F",
        "name": "Ospreys",
        "score": null
      },
      "away": {
        "id": "tm_1ZVKGRW",
        "name": "Benetton",
        "score": null
      }
    },
    {
      "id": "mt_10YE7T1",
      "date": "2027-05-08",
      "kickoff_utc": "2027-05-08T16:30:00Z",
      "status": "scheduled",
      "competition": {
        "id": "cp_2EW9542",
        "name": "United Rugby Championship"
      },
      "season": {
        "id": "ss_1VSX6S8",
        "name": "2026-27"
      },
      "home": {
        "id": "tm_2XWF461",
        "name": "Scarlets",
        "score": null
      },
      "away": {
        "id": "tm_1KTEF3F",
        "name": "Ospreys",
        "score": null
      }
    },
    {
      "id": "mt_2JFGKAP",
      "date": "2027-04-23",
      "kickoff_utc": "2027-04-23T17:00:00Z",
      "status": "scheduled",
      "competition": {
        "id": "cp_2EW9542",
        "name": "United Rugby Championship"
      },
      "season": {
        "id": "ss_1VSX6S8",
        "name": "2026-27"
      },
      "home": {
        "id": "tm_1MZ3SAG",
        "name": "Zebre",
        "score": null
      },
      "away": {
        "id": "tm_1KTEF3F",
        "name": "Ospreys",
        "score": null
      }
    }
  ]
}