Australian Rules Football v3

Frequently Asked Questions
Quick Access
Postman Collection XSD Schema
Download
## Australian Rules Football API Overview The Australian Rules Football API provides real-time match updates and a database of supplementary statistics. Data is collected via Sportradar on-venue scouts and in-house operators. We cover both Men’s and Women’s AFL. The API is consistent in structure, format, and behavior with the other General Sport APIs. Primary feeds will return seasons, competitions, team and player data, and real-time scores. Additional feeds provide a host of complimentary stats, including:
  • Standings
  • Team profiles
  • Player biographical information
  • Match win probabilities
  • Match clock for all key events in real time (when available)
  • Historical results for two previous seasons
Real-time customers are also offered two delivery Push Feeds to enhance speed.
API API Version
Aussie Rules Football v3
Note: Authentication is required for all API calls.
## Aussie Rules Football v3 API Map To best utilize the Aussie Rules Football API, you will need several parameters to create your API calls. The map below illustrates how you can obtain the parameters you need. >

Example:

>To find the probability of a home team win for a given game: >
  1. Call the Daily Schedule for the day the sport event takes place and find the Season Id for the chosen sport event
  2. Make note of the Sport Event Id for the given sport event
  3. Call the Season Probabilities using the Season Id
  4. Find Sport Event Id within the results locate the home team and the outcome probability
>The probability of a home team win is displayed. The primary feeds require only a date or human-readable parameters to call the endpoints. Those feeds provide Sport Event Ids, Competitor Ids, or Season Ids which can be used to generate the match, team, and tournament feeds. ## Competition Info Provides the name, id, and gender for a given competition.
Update Frequency: As Necessary
Content Type: XML or JSON
Competition Info Data Points: Competition Id Competition Name
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitions/sr:competition:656/info.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitions/sr:competition:656/info.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitions/sr:competition:656/info.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competition Info feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitions/`{competition_id}`/info.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competition_id` | Id of a given competition. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Competition Seasons Provides historical season information for a given competition. Valid competition IDs can be found in the Competitions feed.
Update Frequency: As Necessary
Content Type: XML or JSON
Competition Info Data Points: Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitions/sr:competition:656/seasons.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitions/sr:competition:656/seasons.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitions/sr:competition:656/seasons.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competition Seasons feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitions/`{competition_id}`/seasons.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competition_id` | Id of a given competition. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Competitions Provides a list of all available competitions in the API.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code Category Id Category Name
Competition Info Data Points: Competition Gender Competition Id Competition Name
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitions.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitions.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitions.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competitions feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitions.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Competitor Profile Provides top-level information for a given team, including the full team roster, manager, and home venue.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competitor Info Data Points: Competitor Abbreviation
Competitor Country
Competitor Country Code
Competitor Id
Competitor Name
Jersey Base Color
Jersey Horizontal Stripes
Jersey Horizontal Stripes Color
Jersey Number Color
Jersey Shirt Type
Jersey Sleeve Color
Jersey Sleeve Detail
Jersey Split
Jersey Split Color
Jersey Squares
Jersey Squares Color
Jersey Stripes
Jersey Stripes Color
Jersey Type
Manager Country Code
Manager Date of Birth
Manager Gender
Manager Id
Manager Name
Manager Nationality
Manager Nickname
Player Info Data Points: Country Code
Date of Birth
Gender
Height
Id
Jersey Number
Nationality
Name
Nickname
Position
Weight
Venue Info Data Points: Capacity
City
Country Code
Country Name
Id
Map Coordinates
Name
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4451/profile.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitors/sr:competitor:4451/profile.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4451/profile.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competitor Profile feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/profile.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competitor_id` | Id of a given competitor. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Competitor Summaries Provides previous and upcoming match information for a given competitor, including statistics for past matches and scheduling info for upcoming matches.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4451/summaries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitors/sr:competitor:4451/summaries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4451/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competitor Summaries feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/summaries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competitor_id` | ID for a given competitor. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Competitor vs Competitor Provides previous and upcoming matches between two teams including scoring information and team match statistics.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4451/versus/sr:competitor:4446/summaries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/competitors/sr:competitor:4451/versus/sr:competitor:4446/summaries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/competitors/sr:competitor:4233/versus/sr:competitor:4446/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Competitor vs Competitor feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/versus/`{competitor2_id}`/summaries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competitor_id` | ID for a given competitor. | | `competitor2_id` | ID for a given competitor. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Daily Summaries Provides match information for a given day including team scoring and team match statistics.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Daily Summaries feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/schedules/`{year}`-`{month}`-`{day}`/summaries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `year` | Year in 4 digit format (YYYY). | | `month` | Month in 2 digit format (MM). | | `day` | Day in 2 digit format (DD). | | `format` | xml or json. | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters:
require 'uri'
require 'net/http'
require 'openssl'

url = URI("http://api.sportradar.us/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}&start=0&limit=75")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportradar.us")

conn.request("GET", "/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}&start=0&limit=75")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
curl -L GET 'api.sportradar.us/australianrules/trial/v3/en/schedules/2018-05-04/summaries.xml?api_key={your_api_key}&start=0&limit=75'
In addition to the URL parameters listed above, you can paginate the response with one or more of the following optional query string parameters.
Note: Optional query string parameters must be added after your API key with an ampersand (&).
Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `start` | Number to start the list of results from.
Example: start=0 | | `limit` | Number to limit the number of results. Minimum value is 1, maximum value is 200.
Example: limit=200 | Return to top ## Live Summaries Provides match information for all currently live matches including scoring and team match statistics. This feed updates in real time as matches are played.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/summaries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/schedules/live/summaries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Live Summaries feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/competitors/`{competitor_id}`/summaries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `competitor_id` | ID for a given competitor. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Live Timelines Provides a play-by-play event timeline for currently live matches.
Update Frequency: As Necessary
Content Type: XML or JSON
Match Info Data Points: Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Score Number
Period Score Type
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Sport Event Timeline Id
Sport Event Timeline Start Time
Timeline Info Data Points: Away Display Score
Away Score
Break Name
Competitor
Home Display Score
Home Score Id
Match Time
Method
Period
Period Name
Time
Type
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/timelines.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/schedules/live/timelines.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/timelines.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Live Timelines feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/schedules/live/timelines.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Live Timelines Delta Provides a 10 second live delta of match information, including scoring and a play-by-play event timeline.
Update Frequency: As Necessary
Content Type: XML or JSON
Match Info Data Points: Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Score Number
Period Score Type
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Sport Event Timeline Delta Id
Sport Event Timeline Delta Start Time
Timeline Info Data Points: Away Display Score
Away Score
Break Name
Competitor
Home Display Score
Home Score Id
Match Time
Method
Period
Period Name
Time
Type
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/timelines_delta.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/schedules/live/timelines_delta.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/schedules/live/timelines_delta.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Live Timelines Delta feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/schedules/live/timelines_delta.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Season Competitors Provides a list of teams participating for a given season.
Update Frequency: As Necessary
Content Type: XML or JSON
Competitor Info Data Points: Competitor Abbreviation Competitor Id
Competitor Name
Competitor Short Name
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/competitors.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/competitors.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/competitors.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Competitors feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/competitors.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | ID of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Season Info Provides detailed information for a given season, including participating teams and coverage level.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Competition Properties Brackets
Competition Properties Schedules
Competition Properties Standings
Coverage Type
Group - Group Name
Group Id
Group Max Rounds
Group Name
Info Competition Status
Info Venue Reduced Capacity
Info Venue Reduced Capacity Max
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Match Info Data Points: Sport Event Properties - Basic Play by Play Sport Event Properties - Basic Team Stats Sport Event Properties - Scores
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/info.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/info.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/info.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Info feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/info.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | ID of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Season Links Provides information about linked cup rounds for a given season. This feed can be used to compile advancement brackets for relevant seasons.
Update Frequency: As Necessary
Content Type: XML or JSON
Competition Info Data Points: Cup Round Id
Cup Round Name
Cup Round Type
Group - Group Name
Group Id
Stage End Date
Stage Phase
Stage Start Date
Stage Type
Stage Year
Match Info Data Points: Event Id Event Start Time Event Start Time Confirmed
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/stages_groups_cup_rounds.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/stages_groups_cup_rounds.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/stages_groups_cup_rounds.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Links feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/stages_groups_cup_rounds.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | ID of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Season Probabilities Provides 2-way win probabilities (home team win, away team win) for all matches for a given season.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Probability Info Data Points: Away Team Win Probability
Draw Probability
Home Team Win Probability
Market Name
Outcome Name
Match Info Data Points: Competitor Qualifier
Coverage Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Game Clock
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/probabilities.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/probabilities.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/probabilities.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Probabilities feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/probabilities.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | Id of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Season Standings Provides detailed standings info for a given season.
Update Frequency: As Necessary
Content Type: XML or JSON
Competition Info Data Points: Group - Group Name
Group Live
Group Id
Group Name
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Standings Info Data Points: Change
Current Outcome
Draw
Group - Group Name
Group Id
Group Live
Group Name
Losses
Played
Points
Points Against
Points Difference
Points For
Points Percentage
Rank
Season Standings Round
Season Standings Tie Break Rule
Season Standings Type Winning Percentage
Wins
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Standings feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/standings.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | ID of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters:
require 'uri'
require 'net/http'
require 'openssl'

url = URI("http://api.sportradar.com/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}&round=1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportradar.us")

conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}&round=1")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
curl -L GET 'api.sportradar.com/australianrules/trial/v3/en/seasons/sr:season:79676/standings.xml?api_key={your_api_key}&round=1'
In addition to the URL parameters listed above, you can filter the Standings information with the following optional query string parameter.
Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `round` | Round number expressed as: {round}.
Example: round=1 | | `live` | Live standings expressed as a boolean value.
Example: live=true | Return to top ## Season Summaries Provides information for all matches from a given season including scoring and statistics at the match level.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Season Summaries feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons/`{season_id}`/summaries.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `season_id` | ID of a given season. | | `format` | xml or json. | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters:
require 'uri'
require 'net/http'
require 'openssl'

url = URI("http://api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}&start=0&limit=75")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportradar.us")

conn.request("GET", "/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}&start=0&limit=75")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
curl -L GET 'api.sportradar.us/australianrules/trial/v3/en/seasons/sr:season:79676/summaries.xml?api_key={your_api_key}&start=0&limit=75'
In addition to the URL parameters listed above, you can paginate the response with one or more of the following optional query string parameters.
Note: Optional query string parameters must be added after your API key with an ampersand (&).
Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `start` | Number to start the list of results from.
Example: start=0 | | `limit` | Number to limit the number of results. Minimum value is 1, suggested maximum value is 75.
Example: limit=75 | Return to top ## Seasons Provides a list of historical season information for all supported competitions in the API.
Update Frequency: As Necessary
Content Type: XML or JSON
Competition Info Data Points: Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/seasons.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/seasons.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/seasons.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Seasons feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/seasons.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Sport Event Summary Provides real-time scoring and match-level statistics for a given match. Please note that data returned is determined by coverage level.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/summary.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/summary.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/summary.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Sport Event Summary feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/sport_events/`{match_id}`/summary.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `match_id` | ID of a given match. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Sport Event Timeline Provides real-time match-level statistics and a play-by-play event timeline for a given match. Please note that data returned is determined by coverage level.
Update Frequency: As Necessary
Content Type: XML or JSON
Category & Sport Info Data Points: Category Country Code
Category Id
Category Name
Sport Id
Sport Name
Competition Info Data Points: Competition Gender
Competition Id
Competition Name
Coverage Type
Group - Group Name
Group Id
Group Name
Round Name
Round Number
Season Competition Id
Season End Date
Season Id
Season Name
Season Start Date
Season Year
Stage End Date
Stage Order
Stage Phase
Stage Start Date
Stage Type
Stage Year
Competitor Info Data Points: Abbreviation
Country
Country Code
Id
Name
Venue Info Data Points: Capacity
Changed
City
Country Code
Country Name
Id
Map Coordinates
Name
Reduced Capacity
Reduced Capacity Max
Match Info Data Points: Competitor Qualifier
Period Away Display Score
Period Away Score
Period Home Display Score
Period Home Score
Period Number
Period Type
Sport Event Id
Sport Event Properties Basic Play by Play
Sport Event Properties Basic Team Stats
Sport Event Properties Scores
Sport Event Replaced By
Sport Event Resume Time
Sport Event Start Time
Sport Event Start Time Confirmed
Sport Event Status
Sport Event Status Away Display Score
Sport Event Status Away Score
Sport Event Status Decided by Fed
Sport Event Status Home Display Score
Sport Event Status Home Score
Sport Event Status Match Status
Sport Event Status Scout Abandoned
Sport Event Status Winner Id
Timeline Info Data Points: Away Display Score
Away Score
Break Name
Competitor
Home Display Score
Home Score Id
Match Time
Method
Period
Period Name
Time
Type
Match Statistics Data Points: Behinds
Disposals
Free Kicks
Goals
Handballs
Hitouts
Kicks
Mark Inside 50s
Marks
Tackles
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/timeline.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/timeline.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/sport_events/sr:sport_event:16144572/timeline.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Sport Event Timeline feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/sport_events/`{sport_event_id}`/timeline.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `sport_event_id` | ID of a given sport event. | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Sport Events Removed Provides ids for sport events that have been removed or deleted.
Update Frequency: As Necessary
Content Type: XML or JSON
Match Info Data Points: Sport Event Removed Id
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/sport_events/removed.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/sport_events/removed.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/sport_events/removed.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Sport Events Removed feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/sport_events/removed.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | Return to top ## Sport Events Updated Provides ids for sport events that have been updated in the last 24 hours.
Update Frequency: As Necessary
Content Type: XML or JSON
Match Info Data Points: Id Updated At
```ruby require 'uri' require 'net/http' require 'openssl' url = URI("https://api.sportradar.us/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import http.client conn = http.client.HTTPSConnection("api.sportradar.us") conn.request("GET", "/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ```shell curl -X GET "https://api.sportradar.us/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}" ``` > The above command returns xml structured like this. Access the Sport Events Updated feed by replacing the parameters in the following URL: https://api.sportradar.com/australianrules/`{access_level}`/`{version}`/`{language_code}`/sport_events/updated.`{format}`?api_key=`{your_api_key}` | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `language_code` | Supported Locales | | `format` | xml or json. | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters:
require 'uri'
require 'net/http'
require 'openssl'

url = URI("http://api.sportradar.us/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}&start=0&limit=75")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportradar.us")

conn.request("GET", "/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}&start=0&limit=75")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
curl -L GET 'api.sportradar.us/australianrules/trial/v3/en/sport_events/updated.xml?api_key={your_api_key}&start=0&limit=75'
In addition to the URL parameters listed above, you can paginate the response with one or more of the following optional query string parameters.
Note: Optional query string parameters must be added after your API key with an ampersand (&).
Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `start` | Number to start the list of results from.
Example: start=0 | | `limit` | Number to limit the number of results. Minimum value is 1, maximum value is 200.
Example: limit=200 | Return to top ## Push Feeds >To best utilize Push feeds, we have included code samples in Ruby, Java and Python which provide an example of a way you can consume the feeds. Using these samples will output the feeds content to STDOUT.
For Java, we have also provided a Stream Client to assist your integration.

Note: In the provided Java sample, replace "URL GOES HERE" with the desired Push feed URL. ```ruby require 'httpclient' module Sportradar module HTTP module Stream class Client attr_reader :url, :logger def initialize(url, publisher, logger) @url = url @logger = logger @publisher = publisher @client = ::HTTPClient.new(:agent_name => 'SportsData/1.0') end def start @thread ||= Thread.new do logger.debug "Starting loop" @client.get_content(url, :follow_redirect => true) do |chunk| @publisher.publish(::JSON.parse(chunk)) if @publisher end logger.debug "finished loop" end end def stop @thread.terminate if @thread end end end end end ``` ```java package com.sportradar.http.stream.client; import org.junit.After; import org.junit.Before; import org.junit.Test; public class StreamClientTest { private StreamClient client; private static String SERVICE_URL = ""; @Before public void setup() { client = new StreamClient(); } @After public void cleanup() { client.terminate(); } @Test public void testStream() throws Exception { Handler handler = new ConsoleHandler(); client.stream(SERVICE_URL, handler); System.out.println("Connecting...."); Thread.sleep(1 * 60 * 1000); System.out.println("Disconnecting...."); } } ``` Some of our APIs include Push feeds that allow you to get updates as soon as they are available. Push API feeds automatically send JSON and XML payloads to you via a push service, and can dramatically reduce the number of calls you need to make to our RESTful API feeds. The structure of the Push feeds are similar to the structure of the corresponding RESTful API feed (i.e. Push Events and Push Statistics). The push service ensures reliable and efficient delivery of the most up to date information. Our Push services are based on a HTTP publish/subscribe model. When making a call to the Push APIs, you "subscribe" to various data feeds provided by our service; whenever new content is available on one of those feeds, the server pushes that information out to your client. When no new information is available on the feed, a heartbeat message is sent every 5 seconds to keep the connection active. If you want to filter the results of the feeds, there are several optional query string parameters that can be applied to the API call. If left unfiltered, then all data for the feed is displayed (i.e. all events). For your applications to accept data from our Push feeds, ensure that your application can: * Can follow a HTTP redirect or use the location provided in the feeds header within one minute of your initial request. * Can accept HTTP data transfer encoded as chunked. Our Push service does not provide a "stateful session", there is no memory of what data has been sent previously. If you are disconnected from the Push session, you can use the RESTful API to catch up or recover from the disconnection. Syntax for using our Push feeds and examples of the JSON and XML payloads can be found below. ## Push - Events ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.com/australianrules/trial/v3/stream/events/subscribe?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import requests import json r = requests.get("https://api.sportradar.com/australianrules/trial/v3/stream/events/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET "api.sportradar.com/australianrules/trial/v3/stream/events/subscribe?api_key={your_api_key}" ``` >The above command returns json like this. Provides real-time event updates for all live matches. http://api.sportradar.us/australianrules/`{access_level}`/`{version}`/stream/events/subscribe?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters: ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.com/australianrules/trial/v3/stream/events/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event:16144572") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import requests import json r = requests.get("https://api.sportradar.com/australianrules/trial/v3/stream/events/subscribe", params = {'api_key': 'your_api_key', 'format': 'json', 'sport_event_id': 'sr:sport_event:16144572'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'https://api.sportradar.com/australianrules/trial/v3/stream/events/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event:16144572' ``` In addition to the URL parameters listed above, you can filter the Events information with one or more of the following optional query string parameters.
Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
Replace placeholders with the following query parameters: | URL Parameters | Description | | --------- | ----------- | | `channel` | Channel type expressed as: {channel_type}.
Example: channel=australianrules | | `competition_id` | Competition Id expressed as: {competition_id}.
Example: sr:competition:656 | | `event_id` | Event type expressed as: {event_type}.
Example: event_id=score_change | | `format` | Format type expressed as: {format}.
Example: format=json | | `season_id` | Season id expressed as: {season_id}.
Example: season_id=sr:season:79676 | | `sport_event_id` | Sport event id expressed as: {sport_event_id}.
Example: sport_event_id=sr:sport_event:16144572 | | `sport_id` | Sport id expressed as: {sport_id}.
Example: sport_id=sr:sport:13 | ## Push - Statistics ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe?api_key={your_api_key}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import requests import json r = requests.get("https://api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe", params = {'api_key': 'your_api_key'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe?api_key={your_api_key}' ``` >The above command returns json like this. Provides real-time team and player match-level statistics for all live matches. http://api.sportradar.us/australianrules/`{access_level}`/`{version}`/stream/statistics/subscribe?api_key=`{your_api_key}` Replace placeholders with the following query parameters: | Parameter | Description | | --------- | ----------- | | `access_level` | Defines the access level of your API key as Production (production) or Trial (trial). | | `version` | Version number of the API you are accessing (Current Version: v3). | | `your_api_key` | Your API key. | ### Optional Query String Parameters >Example including optional query string parameters: ```ruby require 'uri' require 'net/http' require 'openssl' url = URI("http://api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event:16144572") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```python import requests import json r = requests.get("https://api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe", params = {'api_key': 'your_api_key', 'format': 'json', 'sport_event_id': 'sr:sport_event:16144572'}, allow_redirects=False) redirect_url = r.headers['Location'] r = requests.get(redirect_url, stream=True) for line in r.iter_lines(): # filter out keep-alive new lines if line: decoded_line = line.decode('utf-8') print(json.loads(decoded_line)) ``` ```shell curl -L GET 'https://api.sportradar.com/australianrules/trial/v3/stream/statistics/subscribe?api_key={your_api_key}&format=json&sport_event_id=sr:sport_event:16144572' ``` In addition to the URL parameters listed above, you can filter the Statistics information with one or more of the following optional query string parameters.
Note: Optional query string parameters must be added after your API key with an ampersand (&). If you are filtering for more than one result, separate the results with a comma (,) and no spaces.
Replace placeholders with the following query parameters: | URL Parameters | Description | | --------- | ----------- | | `channel` | Channel type expressed as: {channel_type}.
Example: channel=australianrules | | `competition_id` | Competition Id expressed as: {competition_id}.
Example: competition_id=sr:competition:656 | | `event_id` | Event type expressed as: {event_type}.
Example: event_id=score_change | | `format` | Format type expressed as: {format}.
Example: format=json | | `season_id` | Season id expressed as: {season_id}.
Example: season_id=sr:season:79676 | | `sport_event_id` | Sport event id expressed as: {sport_event_id}.
Example: sport_event_id=sr:sport_event:16144572 | | `sport_id` | Sport id expressed as: {sport_id}.
Example: sport_id=sr:sport:13 | ## Frequently Asked Questions

Q: What leagues or tournaments do you cover for Aussie Rules Football?

A: We cover the AFL tournament.

Q: What format are date fields presented in?

A: When we present date only values we present these in the ISO 8601 standard format.
ex: 2013-04-03
We use these for attributes that have date and no time (such as birthdate). For more information: https://en.wikipedia.org/wiki/ISO_8601

Q: What format are the date/time fields presented in?

A: All of our Date/Time attributes are in UTC, presented in the ISO 8601 standard format.
ex: 2013-04-03T18:15:00+00:00
For more information: https://en.wikipedia.org/wiki/ISO_8601

Q: How can I find the values for various enum data points within the API?

A: Many enum values are listed in the FAQ below. For the most up-to-date values, please see the Schema section of the OpenAPI specification here: https://api.sportradar.com/australianrules/trial/v3/openapi/swagger/index.html

Q: What are the valid sport_event_status – status values?

A: Here are the valid match status values and their definitions:

  • not_started – The match is scheduled to be played
  • started – The match has begun
  • live – The match is currently in progress
  • postponed – The match has been postponed to a future date
  • suspended – The match has been suspended
  • match_about_to_start – The match is about to begin
  • delayed – The match has been temporarily delayed and will be continued
  • interrupted - The match began, but coverage has stopped for a short time. Note that match scores may not be updated during this period, the last recorded match score will be displayed instead
  • cancelled – The match has been cancelled and will not be played
  • ended – The match is over
  • closed – The match results have been confirmed.

Q: What are the valid sport_event_status – match_status values?

A: Here are the valid match status values and their definitions:

  • not_started
  • aet
  • ended
  • postponed
  • cancelled
  • 1st_period
  • 2nd_period
  • 3rd_period
  • 4th_period
  • overtime
  • penalties
  • pause
  • awaiting_extra_time
  • awaiting_penalties
  • interrupted
  • abandoned
  • start_delayed
  • started
  • Q: What are the valid outcomes for probabilities?

    A: Here are the valid outcome probabilities:

    • home_team_winner
    • away_team_winner

    Q: How do I find out the coverage for a particular match?

    A: Within the Summaries, and Timeline feeds, find the node for “coverage”. Coverage nodes have two types: season level and sport_event level.

    The season level describes data coverage you can expect for matches involved in that given season. The sport_event level, this exists to describe the data depth of a specific match within the group and season. Note: There are occasions when the sport_event coverage can vary from the anticipated season coverage and this node exists to highlight that in that event to assist in handling any discrepancies.

    Q: Why do different groups have coverage information for a tournament?

    A: The notion of “groups” is versatile and is used to distinguish between playoffs, and our tournaments structures and is therefore necessary to describe coverage at a group level for consistency.

    Q: What are the valid tournament types?

    A: Here are the valid tournament types:

    • group
    • playoff

    Q: What are the possible event types logged?

    A: Here are all of the possible event types we log:

    • Match started
    • Score change
    • Match ended

    Q: What are markets and what are the different markets?

    A: Markets is something you can bet on that we provide probabilities for. Over time we intend to provide more and more markets in the API. Currently the only market we provide is 3-way (will the home team win? Or the away team? Or will it be a draw?)

    Q: What are the possible outcomes?

    A: Different markets have different outcomes. The available markets are currently:

    • home_team_winner
    • away_team_winner

    Q: How far back does the data go?

    A: Only the current season and the previous season will be available in the API

    Q: What are the possible values for next_period?

    A: Different markets have different outcomes. The available markets are currently:

    • 1st_quarter
    • 2nd_quarter
    • 3rd_quarter
    • 4th_quarter
    • extra_time
    • half_time

    Q: What are the possible event types logged?

    A: Here are all of the possible event types we log:

    • match_started
    • period_start
    • score_change
    • break_start
    • period_score
    • match_ended

    Q: How are group IDs delivered in the stage array with the various types?

    A: With the type of "league" they will have a sr:league prefix. With the type of "cup" they will have a sr:cup prefix.

    Q: What are the possible standings types I can observe in the Standings feed?

    A: Listed below are the values for standing – type.

    • total
    • home
    • away
    • first_half_total
    • first_half_home
    • first_half_away
    • second_half_total
    • second_half_home
    • second_half_away

    Q: How will a sport event behave when it is not covered with live scores?

    A: When a sport_event is not covered live, the status and match_status will remain as not_started until results are entered post-match.

    Q. Why can't I find a particular match in the Daily Summaries, Season Summaries or Sport Events Updated feeds?

    A. These endpoints support pagination and return 200 entries by default. To return more matches, an additional query string parameter must be used after your API key. For example, appending &start=200 will return the next 200 entries per page, &start=400 will return the next 200, and so on.

    Return to top

    Docs Navigation