AFL Sports Data API (v1.48.0)
Download OpenAPI specification:Download
Champion Data provided API for AFL metadata and metrics.
Get details for a given League
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "id": 1,
- "name": "Australian Football League",
- "code": "AFL",
- "gender": "1"
}
Get a list of available levels for a given League
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "league": {
- "id": 1,
- "name": "Australian Football League",
- "code": "AFL",
- "gender": "1"
}, - "levels": [
- {
- "id": 1,
- "name": "Seniors",
- "code": "SEN"
}
]
}
Get details for a level within a given league
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "id": 1,
- "name": "Seniors",
- "code": "SEN",
- "league": {
- "id": 1,
- "name": "Australian Football League",
- "code": "AFL",
- "gender": "1"
}, - "currentSeason": {
- "competitionId": 2019010674,
- "championshipId": 1,
- "seasonId": 1
}
}
Get details about a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "id": 216085122,
- "name": "St Kilda v Hawthorn",
- "code": "STK v HAW",
- "phaseId": 11086,
- "seasonId": 2020,
- "competitionId": 2020011086,
- "competitionName": "AFL Premiership Season 2020",
- "roundNumber": 16,
- "phaseName": "AFL 2020 Home and Away",
- "phaseRoundNumber": 16,
- "result": "St Kilda by 14 points.",
- "resultCode": "STK by 14pts",
- "winningSquadId": 130,
- "attendance": 2740,
- "leagueId": 1,
- "levelId": 1,
- "type": {
- "id": 1,
- "name": "Regular Season",
- "code": "REG"
}, - "date": {
- "startDate": "2020-03-28",
- "startTime": "19:40:00",
- "utcMatchStart": "2020-08-21T01:44:44.808Z"
}, - "time": {
- "utcMatchStartActual": "2020-08-21T01:44:44.808Z",
- "utcMatchEndActual": "2020-08-21T01:44:44.808Z",
- "periodSecs": 6176,
- "duration": "102:56"
}, - "venue": {
- "id": 190,
- "code": "MRVL",
- "name": "Marvel Stadium",
- "timeZone": "Australia/Melbourne"
}, - "status": {
- "id": 8,
- "name": "Scheduled",
- "code": "2",
- "typeId": 0,
- "typeName": "Upcoming",
- "period": 2,
- "periodSecs": 765,
- "periodDisplay": "Q2 12:45",
- "remainingSecs": 234,
- "remainingDisplay": "Q2 03:54",
- "remainingTime": "03:54"
}, - "coinToss": {
- "winningSquadId": 10,
- "decision": "Right"
}, - "home": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": 11,
- "behinds": 14,
- "points": 80
}
}, - "away": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": 11,
- "behinds": 14,
- "points": 80
}
}, - "periods": [
- {
- "period": 2,
- "utcPeriodStart": "2020-08-21T01:44:44.808Z",
- "utcPeriodEnd": "2020-08-21T02:24:46.808Z",
- "periodSecs": 2
}
], - "lastModified": {
- "statisticUpdate": "2020-08-21T02:21:42.105Z"
}
}
Get a list of persons relevant to a given match with details on each person.
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 21727,
- "squads": {
- "away": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "dateOfBirth": "1995-03-21",
- "matchAge": 34.25,
- "height": 189,
- "weight": 92,
- "firstname": "Tom",
- "surname": "Mitchell",
- "positions": {
- "selected": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}, - "season": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}
}
}
]
}, - "home": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "dateOfBirth": "1995-03-21",
- "matchAge": 34.25,
- "height": 189,
- "weight": 92,
- "firstname": "Tom",
- "surname": "Mitchell",
- "positions": {
- "selected": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}, - "season": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}
}
}
]
}
}, - "officials": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "positions": {
- "selected": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}, - "season": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket"
}
}
}
]
}
Get details about the venue for a single match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "MS",
- "dimensions": {
- "length": 160,
- "width": 140
}, - "id": 190,
- "location": {
- "country": {
- "code": "AUS",
- "id": 1,
- "name": "Australia",
- "state": {
- "id": 4,
- "name": "South Australia",
- "code": "SA"
}
}, - "timezone": "Australia/Melbourne"
}, - "matchId": 21727,
- "name": "Marvel Stadium"
}
Get a list of valid metrics and their metadata for a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
query Parameters
showAllMetrics | boolean Default: false Toggleable flag which will allows you to see all metrics within the platform or just metrics that are valid within your metric tier. |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 21727,
- "metrics": [
- {
- "id": 0,
- "code": "string",
- "codeShort": "string",
- "name": "string",
- "namePlural": "string",
- "nameShort": "string",
- "nameDisplay": "string",
- "description": "string",
- "levelId": 0,
- "level": "string",
- "formatId": 0,
- "format": "string",
- "formatAvgId": 0,
- "formatAvg": "string",
- "transaction": true
}
]
}
Get a list of match transactions for the specified match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 21727,
- "transactions": [
- {
- "id": 100,
- "name": "Centre Bounce Clearance",
- "code": "CBCL",
- "period": 1,
- "periodSecs": 60,
- "homeScore": 6,
- "awayScore": 12,
- "squad": {
- "name": "Adelaide Crows",
- "code": "ADEL",
- "id": 10
}, - "zonePhysical": "L50",
- "zoneLogical": "D50",
- "sequence": 1,
- "person": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "id": 291856
}, - "location": {
- "x": 50.8,
- "xStd": 50.5,
- "y": -0.7,
- "yStd": -0.7
}, - "locationRotated": {
- "x": 50.8,
- "xStd": 50.5,
- "y": -0.7,
- "yStd": -0.7
}, - "pressure": {
- "name": "Corralling",
- "code": "CORR",
- "points": 1.25,
- "squad": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}, - "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "role": 0
}
]
}, - "kicking": {
- "foot": "Left",
- "intent": "Lead",
- "distance": "Chip",
- "direction": "Forward"
}, - "officialClock": {
- "countUp": 0.1,
- "countDown": 0.1,
- "timeOn": 0.1,
- "utc": "string"
}, - "details": {
- "freeKickReason": "Push in Back",
- "freeKickContext": "Marking",
- "inside50Direction": "Left",
- "inside50Intent": "Go To",
- "shotSource": "6",
- "shotType": "6",
- "shotAngle": "6",
- "shotDistance": "6",
- "shotResult": "6",
- "kickinDirection": "6"
}
}
]
}
Get a list of possession chains for a given match with details on each chain
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 216467491,
- "chains": [
- {
- "end": {
- "matchTrxId": 100,
- "periodSecs": 55,
- "score": {
- "matchTrxId": 2300,
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "id": 291856
}, - "result": {
- "name": "Goal",
- "code": "G",
- "points": 6
}
}, - "stateCode": "GOAL",
- "stateId": 6,
- "stateName": "Goal",
- "stateType": "Score",
- "stateTypeCode": "SC",
- "turnover": {
- "turnoverTrxId": 100,
- "creation": "Giveaway Unforced",
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "id": 291856
}, - "state": "General Play",
- "type": "Kick"
}, - "x": 5.4,
- "y": 5.4,
- "zone": "F50",
- "zonePhysical": "Right 50"
}, - "id": 100,
- "keyTransactions": {
- "clearance": 100,
- "inside50": 100,
- "nextChain": 600,
- "prevChain": 600,
- "rebound50": 100,
- "stoppage": 100
}, - "period": 1,
- "squad": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}, - "start": {
- "launchPlayer": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "id": 291856
}, - "matchTrxId": 100,
- "periodSecs": 55,
- "stateCode": "CB",
- "stateId": 1,
- "stateName": "Centre Bounce",
- "stateType": "Stoppage",
- "stateTypeCode": "ST",
- "x": 5.4,
- "y": 5.4,
- "zone": "D50",
- "zonePhysical": "Left 50"
}, - "metrics": {
- "chainMetres": 0.1,
- "chainMetresReply": 0.1,
- "chainMetresNet": 0.1
}
}
]
}
Returns a MatchRotations object containing all Rotation transactions and current stint details for each Player.
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 216467491,
- "home": {
- "players": [
- {
- "currentStint": {
- "elapsedSecs": 120,
- "period": "1",
- "periodSecs": "0",
- "reason": "Injured",
- "reasonCode": "INJ",
- "status": "OFF"
}, - "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856
}
], - "squadCode": "COFC",
- "squadId": 40,
- "squadName": "Collingwood"
}, - "away": {
- "players": [
- {
- "currentStint": {
- "elapsedSecs": 120,
- "period": "1",
- "periodSecs": "0",
- "reason": "Injured",
- "reasonCode": "INJ",
- "status": "OFF"
}, - "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856
}
], - "squadCode": "COFC",
- "squadId": 40,
- "squadName": "Collingwood"
}, - "rotations": [
- {
- "matchTrxId": 3003109,
- "off": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "reason": "Injured",
- "reasonCode": "INJ"
}, - "on": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856
}, - "period": 1,
- "periodSecs": 120,
- "squad": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}
}
]
}
Get match and period scores and results for a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "away": {
- "goals": 11,
- "behinds": 14,
- "points": 80,
- "margin": 14,
- "result": "Win",
- "resultCode": "W",
- "id": 130,
- "name": "St Kilda",
- "code": "STK",
- "periods": [
- {
- "goals": 11,
- "behinds": 14,
- "points": 80,
- "margin": 14,
- "result": "Win",
- "resultCode": "W",
- "period": 1,
- "goalsCumulative": 11,
- "behindsCumulative": 14,
- "pointsCumulative": 80,
- "marginCumulative": 14
}
]
}, - "home": {
- "goals": 11,
- "behinds": 14,
- "points": 80,
- "margin": 14,
- "result": "Win",
- "resultCode": "W",
- "id": 130,
- "name": "St Kilda",
- "code": "STK",
- "periods": [
- {
- "goals": 11,
- "behinds": 14,
- "points": 80,
- "margin": 14,
- "result": "Win",
- "resultCode": "W",
- "period": 1,
- "goalsCumulative": 11,
- "behindsCumulative": 14,
- "pointsCumulative": 80,
- "marginCumulative": 14
}
]
}, - "matchId": 216085122,
- "result": "St Kilda by 14 points.",
- "resultCode": "STK by 14pts",
- "winningSquadId": 130
}
Get a list of shots at goal for a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 216467491,
- "shots": [
- {
- "details": {
- "angleGroup": "In Front",
- "distanceGroup": "15-30m",
- "origin": "Mark",
- "type": "Set Shot Regular",
- "location": {
- "x": 50.8,
- "xStd": 50.5,
- "y": -0.7,
- "yStd": -0.7
}, - "locationRotated": {
- "x": 50.8,
- "xStd": 50.5,
- "y": -0.7,
- "yStd": -0.7
}
}, - "matchTrxId": 2300,
- "period": 1,
- "periodSecs": 99,
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "id": 291856
}, - "result": {
- "name": "Goal",
- "code": "G",
- "points": 6,
- "pointsExpected": 0.1,
- "accuracyExpected": 0.1
}, - "score": {
- "homePoints": 0,
- "awayPoints": 6
}, - "squad": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}
}
]
}
Get a list of inside 50 entries for a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 0,
- "entries": [
- {
- "id": 0,
- "period": 0,
- "periodSecs": 0,
- "player": {
- "id": 0,
- "fullname": "string",
- "displayName": "string"
}, - "squad": {
- "id": 0,
- "name": "string",
- "code": "string"
}, - "details": {
- "type": "string",
- "result": {
- "outcome": "Retain"
}, - "source": {
- "name": "string",
- "type": "true"
}, - "kick": {
- "isGround": "true",
- "pressure": {
- "name": "Corralling",
- "code": "CORR",
- "points": 1.25
}, - "foot": "Left",
- "intent": "Lead",
- "distance": "Chip",
- "direction": "Forward",
- "launchLocation": {
- "x": 0.1,
- "y": 0.1,
- "xStd": 0.1,
- "yStd": 0.1
}, - "launchLocationRotated": {
- "x": 0.1,
- "y": 0.1,
- "xStd": 0.1,
- "yStd": 0.1
}, - "resultLocation": {
- "x": 0.1,
- "y": 0.1,
- "xStd": 0.1,
- "yStd": 0.1
}, - "resultLocationRotated": {
- "x": 0.1,
- "y": 0.1,
- "xStd": 0.1,
- "yStd": 0.1
}, - "launchDistanceToGoal": 0.1,
- "resultDistanceToGoal": 0.1
}
}
}
]
}
Get player leaders in a given match for selected metrics
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 21727,
- "statistics": [
- {
- "id": 0,
- "code": "CLEARANCE",
- "name": "Clearance",
- "namePlural": "Clearances",
- "persons": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "squadId": 10,
- "squadName": "Adelaide",
- "squadCode": "ADE",
- "order": 1,
- "rank": 1,
- "value": 1,
- "valueDisplay": "50.5%"
}
]
}
]
}
Get player statistics for all players and all valid metrics in a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
query Parameters
period | Array of integers <int32> [ items <int32 > ] Example: period=1&period=2 List of integers identifying periods used to filter the metrics returned |
zone | Array of strings Example: zone=F50&zone=MID List of string identifying zones used to filter the metrics returned. Supported values are D50, DM, MID, CB, AM and F50. |
metric | Array of strings Example: metric=TACKLE&metric=KICK&metric=HANDBALL Array of specific metric codes to get returned. This will result in the endpoint only returning these specific metrics. Note this endpoint is case sensitive and only works with a metrics code |
team | string Example: team=home Team to return stats for, 'away' or 'home', case sensitive |
fromPeriodSeconds | integer <int32> Example: fromPeriodSeconds=200 Limits statistics to counting events that occurred on or after this number of seconds |
toPeriodSeconds | integer <int32> Example: toPeriodSeconds=400 Limits statistics to counting events that occurred on or before this number of seconds |
lastXSeconds | integer <int32> Limits statistics to counting events that occurred in the last X number of seconds |
Responses
Response samples
- 200
- 400
- 403
- 404
- 414
{- "matchId": 21727,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "statistics": [
- {
- "id": 0,
- "code": "CLEARANCE",
- "name": "Clearance",
- "namePlural": "Clearances",
- "valueDisplay": "string",
- "value": 0.1
}
]
}
]
}
]
}
Get players statistics based on the request payload passed through
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 |
Request Body schema:
Array of objects or null (PostPlayerMetricRequest) List of player metric requests to return stats for | |||||||||||||||||
Array
|
Responses
Request samples
- Payload
{- "playerMetricRequests": [
- {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "D50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "D50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "D50"
]
}
]
}
Response samples
- 200
- 400
- 403
- 404
- 413
{- "playerStatistics": [
- {
- "matchId": 21727,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "jumperNumber": 32,
- "statistics": [
- {
- "id": 0,
- "code": "CLEARANCE",
- "name": "Clearance",
- "namePlural": "Clearances",
- "valueDisplay": "string",
- "value": 0.1
}
]
}
]
}
], - "id": "string"
}
], - "playerMetricRequests": [
- {
- "id": "string",
- "metricCodes": [
- "string"
], - "team": "string",
- "periods": [
- 0
], - "zones": [
- "string"
], - "lastXSeconds": 0,
- "fromPeriodSeconds": 0,
- "toPeriodSeconds": 0
}
]
}
Get squad statistics for both squads and all valid metrics in a given match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
query Parameters
period | Array of integers <int32> [ items <int32 > ] Example: period=1&period=2 List of integers identifying periods used to filter the metrics returned |
zone | Array of strings Example: zone=F50&zone=MID List of string identifying zones used to filter the metrics returned. Supported values are D50, DM, MID, CB, AM and F50. |
context | string Example: context=For The context of the metrics returned. Supported values are For, Against, Diff, PhysicalDiff. |
metric | Array of strings Example: metric=TACKLE&metric=KICK&metric=HANDBALL Array of specific metric codes to get returned. This will result in the endpoint only returning these specific metrics. Note this endpoint is case sensitive and only works with a metrics code |
team | string Example: team=home Team to return stats for, 'away' or 'home', case sensitive |
fromPeriodSeconds | integer <int32> Example: fromPeriodSeconds=200 Limits statistics to counting events that occurred on or after this number of seconds |
toPeriodSeconds | integer <int32> Example: toPeriodSeconds=400 Limits statistics to counting events that occurred on or before this number of seconds |
lastXSeconds | integer <int32> Limits statistics to counting events that occurred in the last X number of seconds |
Responses
Response samples
- 200
- 400
- 403
- 404
- 414
{- "matchId": 21727,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "statistics": [
- {
- "id": 0,
- "code": "CLEARANCE",
- "name": "Clearance",
- "namePlural": "Clearances",
- "valueDisplay": "string",
- "value": 0.1
}
]
}
]
}
Get squad statistics based on the request payload passed through
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 |
Request Body schema:
Array of objects or null (PostSquadMetricRequest) List of squad metric requests to return stats for | |||||||||||||||||||
Array
|
Responses
Request samples
- Payload
{- "squadMetricRequests": [
- {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 1
], - "zones": [
- "D50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 2
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 3
], - "zones": [
- "D50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "F50"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "AM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "MID"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "CB"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "DM"
]
}, - {
- "metricCodes": [
- "KICK"
], - "periods": [
- 4
], - "zones": [
- "D50"
]
}
]
}
Response samples
- 200
- 400
- 403
- 404
- 413
{- "squadStatistics": [
- {
- "matchId": 21727,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "statistics": [
- {
- "id": 0,
- "code": "CLEARANCE",
- "name": "Clearance",
- "namePlural": "Clearances",
- "valueDisplay": "string",
- "value": 0.1
}
]
}
], - "id": "string"
}
], - "squadMetricRequests": [
- {
- "id": "string",
- "metricCodes": [
- "string"
], - "team": "string",
- "periods": [
- 0
], - "zones": [
- "string"
], - "lastXSeconds": 0,
- "fromPeriodSeconds": 0,
- "toPeriodSeconds": 0,
- "context": "string"
}
]
}
Get a list of all transactions for stoppages in the match
Authorizations:
path Parameters
matchId required | integer <int32> [ 0 .. 2147483647 ] Example: 216085122 Unique identifier of a match (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/fixture). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "matchId": 21727,
- "stoppages": [
- {
- "id": 100,
- "name": "Centre Bounce",
- "code": "CEBO",
- "period": 1,
- "periodSeconds": 0,
- "location": {
- "x": 0,
- "xStd": 0,
- "y": 0,
- "yStd": 0
}, - "attendance": {
- "id": 110,
- "name": "Centre Bounce Ruck Contest",
- "code": "CBVS",
- "period": 1,
- "periodSeconds": 0,
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "squadId": 100
}
]
}, - "hitout": {
- "id": 210,
- "name": "Centre Bounce Hitout",
- "code": "CBHO",
- "period": 1,
- "periodSeconds": 4,
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "squadId": 100
}
}, - "firstPossession": {
- "id": 410,
- "name": "Centre Bounce First Possession",
- "code": "CBFP",
- "period": 1,
- "periodSeconds": 12,
- "zone": "M",
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "squadId": 100
}
}, - "clearance": {
- "id": 510,
- "name": "Centre Bounce Clearance",
- "code": "CBCL",
- "period": 1,
- "periodSeconds": 17,
- "zone": "M",
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "squadId": 100
}
}, - "stoppageExit": {
- "id": 500,
- "name": "Kick Effective Long",
- "code": "KKLO",
- "period": 1,
- "periodSeconds": 17,
- "zone": "AM",
- "type": "Kick",
- "pressure": "SET",
- "player": {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "squadId": 100
}, - "kicking": {
- "foot": "Left",
- "intent": "Lead",
- "distance": "Chip",
- "direction": "Forward"
}, - "location": {
- "x": 0,
- "xStd": 0,
- "y": 0,
- "yStd": 0
}
}
}
]
}
Get details for a given position type
Authorizations:
path Parameters
positionTypeId required | integer <int32> [ 0 .. 2147483647 ] Example: 69 Unique identifier of a PositionType (obtained from /positiontypes). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "SEL",
- "description": "Selected Position",
- "id": 69,
- "name": "Selected Position",
- "role": {
- "id": 1,
- "code": "PLY",
- "description": "Player",
- "name": "Player"
}
}
Get a list of positions for a position type
Authorizations:
path Parameters
positionTypeId required | integer <int32> [ 0 .. 2147483647 ] Example: 69 Unique identifier of a PersonRole (obtained from /positiontypes). |
Responses
Response samples
- 200
- 400
- 403
- 404
[- {
- "code": "BP",
- "description": "Left Back Pocket",
- "id": 4141,
- "name": "Back Pocket"
}
]
Get details for a given position
Authorizations:
path Parameters
positionId required | integer <int32> [ 0 .. 2147483647 ] Example: 4141 Unique identifier of a position (obtained from /positionTypes/{positionTypeId}/positions). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "BP",
- "description": "Left Back Pocket",
- "id": 4141,
- "name": "Back Pocket"
}
Get a list of available seasons within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "id": 1,
- "name": "Australian Football League",
- "code": "AFL",
- "gender": "1",
- "seasons": [
- {
- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "id": 2019,
- "matches": {
- "complete": 161,
- "incomplete": 1
}, - "rounds": {
- "lastCompleted": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}, - "nextScheduled": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}
}, - "startDate": "2019-03-21",
- "startYear": 2019
}
]
}
Get details about a specific season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "id": 2019,
- "matches": {
- "complete": 161,
- "incomplete": 1
}, - "rounds": {
- "lastCompleted": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}, - "nextScheduled": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}
}, - "startDate": "2019-03-21",
- "startYear": 2019,
- "phases": [
- {
- "id": 11086,
- "name": "Home & Away",
- "code": "HA"
}
]
}
Get the fixture of matches for a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
query Parameters
squadId | integer <int32> Example: squadId=10 Unique identifier of a Squad (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/squads |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "phases": [
- {
- "id": 11086,
- "name": "Home & Away",
- "code": "HA",
- "rounds": [
- {
- "code": "R01",
- "id": 216238195,
- "matches": [
- {
- "id": 21727,
- "roundOrder": 21727,
- "squads": {
- "away": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": null,
- "behinds": null,
- "points": null
}
}, - "home": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": null,
- "behinds": null,
- "points": null
}
}
}, - "date": {
- "startDate": "2020-03-28",
- "startTime": "19:40:00",
- "utcMatchStart": "2020-08-21T01:44:44.808Z"
}, - "status": {
- "id": 8,
- "name": "Scheduled",
- "code": "2",
- "typeId": 0,
- "typeName": "Upcoming",
- "period": 2,
- "periodSecs": 765,
- "periodDisplay": "Q2 12:45",
- "remainingSecs": 234,
- "remainingDisplay": "Q2 03:54",
- "remainingTime": "03:54"
}, - "type": {
- "id": 1,
- "name": "Regular Season",
- "code": "REG"
}, - "venue": {
- "id": 190,
- "code": "MRVL",
- "name": "Marvel Stadium",
- "timeZone": "Australia/Melbourne"
}, - "winningSquadId": 0
}
], - "name": "Round 1",
- "number": 1,
- "phaseNumber": 1
}
]
}
], - "seasonId": 2019,
- "startDate": "2019-03-21",
- "startYear": 2019
}
Get the ladder for a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
query Parameters
conference | string Conference code by which to filter the ladder. |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2019,
- "phaseId": 11086,
- "roundNumber": 18,
- "squads": 18
}
Get the ladder after a specific round of a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
roundNumber required | integer <int32> [ 0 .. 2147483647 ] Example: 1 The round number within the season. The response includes all games up to and including this round. |
query Parameters
conference | string Conference code by which to filter the ladder. |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2019,
- "phaseId": 11086,
- "roundNumber": 18,
- "squads": 18
}
Get a list of competing squads in a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2020,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}
]
}
Get details about a single squad for a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
squadId required | integer <int32> [ 0 .. 2147483647 ] Example: 10 Unique identifier of a Squad (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/squads |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "homeState": {
- "id": 4,
- "name": "South Australia",
- "code": "SA"
}, - "seasonId": 2020
}
Get a list of relevent persons for a single squad in a season within a given league and level
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a League (obtained from /leagues). |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level (obtained from /leagues/{leagueId}/levels) |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
squadId required | integer <int32> [ 0 .. 2147483647 ] Example: 10 Unique identifier of a Squad (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/squads |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "seasonId": 2020,
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "dateOfBirth": "1995-03-21",
- "ageToday": 34.25,
- "ageSeason": 34.15,
- "ageYear": 34,
- "height": 189,
- "weight": 92,
- "position": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket",
- "description": "Left Forward Pocket"
}, - "firstname": "Tom",
- "surname": "Mitchell",
- "jumperNumber": 6,
- "matches": {
- "season": 0
}
}
]
}
Get a list of Conferences for a given season
Authorizations:
path Parameters
leagueId required | integer <int32> [ 0 .. 2147483647 ] Example: 3 Unique identifier of a League. |
levelId required | integer <int32> [ 0 .. 2147483647 ] Example: 1 Unique identifier of a Level. |
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2020 Unique identifier of a Season. |
query Parameters
conference | string Example: conference=A Filters the season conferences by Conference code |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2020,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}
]
}
Response samples
- 200
- 403
- 404
{- "id": 1,
- "name": "Australian Football League",
- "code": "AFL",
- "gender": "1",
- "seasons": [
- {
- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "id": 2019,
- "matches": {
- "complete": 161,
- "incomplete": 1
}, - "rounds": {
- "lastCompleted": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}, - "nextScheduled": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}
}, - "startDate": "2019-03-21",
- "startYear": 2019
}
]
}
Get details about a specific season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "id": 2019,
- "matches": {
- "complete": 161,
- "incomplete": 1
}, - "rounds": {
- "lastCompleted": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}, - "nextScheduled": {
- "end": "2019-03-21T08:25:00.000Z",
- "id": 21727,
- "phaseId": 11086,
- "number": 1,
- "phaseNumber": 1,
- "start": "2019-03-21T08:25:00.000Z"
}
}, - "startDate": "2019-03-21",
- "startYear": 2019,
- "phases": [
- {
- "id": 11086,
- "name": "Home & Away",
- "code": "HA"
}
]
}
Get the fixture of matches for a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "competitionCode": "AFL2019",
- "competitionId": 2019010674,
- "competitionName": "AFL Premiership Season 2019",
- "competitionType": "Premiership",
- "endDate": "2019-09-28",
- "endYear": 2019,
- "firstMatchStart": "2019-03-21T08:25:00.000Z",
- "phases": [
- {
- "id": 11086,
- "name": "Home & Away",
- "code": "HA",
- "rounds": [
- {
- "code": "R01",
- "id": 216238195,
- "matches": [
- {
- "id": 21727,
- "roundOrder": 21727,
- "squads": {
- "away": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": null,
- "behinds": null,
- "points": null
}
}, - "home": {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "score": {
- "goals": null,
- "behinds": null,
- "points": null
}
}
}, - "date": {
- "startDate": "2020-03-28",
- "startTime": "19:40:00",
- "utcMatchStart": "2020-08-21T01:44:44.808Z"
}, - "status": {
- "id": 8,
- "name": "Scheduled",
- "code": "2",
- "typeId": 0,
- "typeName": "Upcoming",
- "period": 2,
- "periodSecs": 765,
- "periodDisplay": "Q2 12:45",
- "remainingSecs": 234,
- "remainingDisplay": "Q2 03:54",
- "remainingTime": "03:54"
}, - "type": {
- "id": 1,
- "name": "Regular Season",
- "code": "REG"
}, - "venue": {
- "id": 190,
- "code": "MRVL",
- "name": "Marvel Stadium",
- "timeZone": "Australia/Melbourne"
}, - "winningSquadId": 0
}
], - "name": "Round 1",
- "number": 1,
- "phaseNumber": 1
}
]
}
], - "seasonId": 2019,
- "startDate": "2019-03-21",
- "startYear": 2019
}
Get the ladder for a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2019,
- "phaseId": 11086,
- "roundNumber": 18,
- "squads": 18
}
Get the ladder after a specific round of a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
roundNumber required | integer <int32> [ 0 .. 2147483647 ] Example: 1 The round number within the season. The response includes all games up to and including this round. |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2019,
- "phaseId": 11086,
- "roundNumber": 18,
- "squads": 18
}
Get a list of competing squads in a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "seasonId": 2020,
- "squads": [
- {
- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows"
}
]
}
Get details about a single squad for a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
squadId required | integer <int32> [ 0 .. 2147483647 ] Example: 10 Unique identifier of a Squad (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/squads |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "homeState": {
- "id": 4,
- "name": "South Australia",
- "code": "SA"
}, - "seasonId": 2020
}
Get a list of relevent persons for a single squad in a season within the AFL Premiership
Authorizations:
path Parameters
seasonId required | integer <int32> [ 0 .. 2147483647 ] Example: 2021 Unique identifier of a Season (obtained from /leagues/{leagueId}/levels/{levelId}/seasons). |
squadId required | integer <int32> [ 0 .. 2147483647 ] Example: 10 Unique identifier of a Squad (obtained from /leagues/{leagueId}/levels/{levelId}/seasons/{seasonId}/squads |
Responses
Response samples
- 200
- 400
- 403
- 404
{- "code": "AFC",
- "id": 10,
- "name": "Adelaide Crows",
- "seasonId": 2020,
- "players": [
- {
- "displayName": "T.Mitchell",
- "fullname": "Tom Mitchell",
- "personId": 291856,
- "dateOfBirth": "1995-03-21",
- "ageToday": 34.25,
- "ageSeason": 34.15,
- "ageYear": 34,
- "height": 189,
- "weight": 92,
- "position": {
- "id": 16,
- "code": "FP",
- "name": "Forward Pocket",
- "description": "Left Forward Pocket"
}, - "firstname": "Tom",
- "surname": "Mitchell",
- "jumperNumber": 6,
- "matches": {
- "season": 0
}
}
]
}
Response samples
- 200
- 403
- 404
- 429
{- "requestsRemaining": 0,
- "quotaPeriod": {
- "value": "string"
}, - "requestLimit": 0,
- "burstLimit": 0,
- "rateLimit": 0.1,
- "planName": "string",
- "items": [
- [
- 0
]
], - "startDate": "string",
- "endDate": "string"
}