rugbyAPI
Players / Career

Career

Archive

A player's totals for each competition across every season, plus career totals.

GEThttps://api.rugbyapi.com/v1/players/{id}/career

Parameters

NameWhat it doesExample
idpath, requiredThe ID in the path.pl_2TS991Z

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
totalsapps, tries, conversions, penalties, drop_goals, yellow_cards, red_cards and points across everything
data[].competitionID and name
data[].seasonsSeasons played in it
data[].apps ... pointsThe same figures as Seasons, added up

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 player with that ID (bad_id if it is not in our format).
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/players/pl_2TS991Z/career \
  -H "Authorization: Bearer YOUR_KEY"
$ch = curl_init('https://api.rugbyapi.com/v1/players/pl_2TS991Z/career');
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/players/pl_2TS991Z/career",
    headers={"Authorization": "Bearer YOUR_KEY"},
)
data = r.json()
const r = await fetch('https://api.rugbyapi.com/v1/players/pl_2TS991Z/career', {
  headers: { Authorization: 'Bearer YOUR_KEY' }
});
const data = await r.json();
200ResponseExample from the live archive, lists cut to 3
{
  "player": {
    "id": "pl_2TS991Z",
    "name": "Tom Bowen"
  },
  "totals": {
    "apps": 48,
    "tries": 38,
    "conversions": 0,
    "penalties": 0,
    "drop_goals": 0,
    "yellow_cards": 0,
    "red_cards": 0,
    "points": 190
  },
  "count": 4,
  "data": [
    {
      "competition": null,
      "seasons": 1,
      "apps": 24,
      "starts": null,
      "replacement_apps": null,
      "tries": 19,
      "conversions": 0,
      "penalties": 0,
      "drop_goals": 0,
      "yellow_cards": 0,
      "red_cards": 0,
      "points": 95
    },
    {
      "competition": {
        "id": "cp_2EW9542",
        "name": "United Rugby Championship"
      },
      "seasons": 3,
      "apps": 16,
      "starts": 13,
      "replacement_apps": 4,
      "tries": 15,
      "conversions": 0,
      "penalties": 0,
      "drop_goals": 0,
      "yellow_cards": 0,
      "red_cards": 0,
      "points": 75
    },
    {
      "competition": {
        "id": "cp_383QJ5X",
        "name": "Challenge Cup"
      },
      "seasons": 2,
      "apps": 7,
      "starts": 6,
      "replacement_apps": 0,
      "tries": 4,
      "conversions": 0,
      "penalties": 0,
      "drop_goals": 0,
      "yellow_cards": 0,
      "red_cards": 0,
      "points": 20
    }
  ]
}