Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 GET /australian_football/get_season_venue
Returns list of all venues for a particular season
Request URL
https://dsg-api.com/clients/{client_name}/australian_football/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json)
id
int Required
unique season_id
lang
string
two-character language code, defaults to 'en'
Nodes
datasportsgroup
details about the API version, sport, language and generation timestamp
generated_utc
UTC timestamp when the API output was generated
lang
language of the API call
sport
sport value
version
version of the API
method
details about the API function
method_id
unique ID of method
name
name of method
venue
details about the venue
address
name of street and street number
address_zip
ZIP code
area_id
unique identifier for an area
area_name
name of the area
capacity
maximum capacity of the venue
city_id
unique identifier for cities
city_name
name of the city
geo_latitude
latitude coordinates of venue
geo_longtitude
longitude coordinates of venue
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
current name of the venue
nicknames
nicknames of the venue. If more as 1 then seperated with a ","
opened
year venue was opened. Format 'yyyy'
status
the current status of the venue ('open' or 'demolished')
surface
type of surface (grass, artificial turf, ice, sand, water, parquet, asphalt, snow, canvas, hard)
venue_id
unique identifier of the venue
Response Headers
200
Success
401
Unauthorized
429
Too Many Requests
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/australian_football/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "{User}:{Password}");
$content = curl_exec($ch);
curl_close($ch);
?>
curl GET -u "User:Password" "https://dsg-api.com/clients/{client_name}/australian_football/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}"
Imports System
Imports System.Net	
Imports System.IO
Imports System.Text

Public Module Module1
	Public Sub Main()
		Dim url As String = "https://dsg-api.com/clients/{client_name}/australian_football/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}"
		Dim myReq As WebRequest = WebRequest.Create(url)
		myReq.Credentials = new System.Net.NetworkCredential("{User}", "{Password}")
		Dim wr As WebResponse = myReq.GetResponse()
		Dim receiveStream As Stream = wr.GetResponseStream()
		Dim reader As StreamReader = New StreamReader(receiveStream, Encoding.UTF8)
		Dim content As String = reader.ReadToEnd()
	End Sub
End Module
response = requests.get("https://dsg-api.com/clients/{client_name}/australian_football/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"australian_football","lang":"en","method":{"method_id":"341","name":"get_season_venue"},"venue":[{"venue_id":"270","name":"GMHBA Stadium","city":"Geelong, VIC","area":"Australia","area_id":"19","adress":"Moorabool Street, South Geelong","adress_zip":"VIC 3220","oepened":"1941","status":"open","nicknames":"Skilled Stadium, Shell Stadium, Baytec Stadium, Kardinia Park, The Cattery, Simonds Stadium","geo_latitude":"-38.15813949798362","geo_longtitude":"144.35459554195404","capacity":"34000","surface":"grass","last_updated":"2018-01-08 02:21:41"},{"venue_id":"288","name":"Marvel Stadium","city":"Melbourne, VIC","area":"Australia","area_id":"19","adress":"740 Bourke Street, Docklands","adress_zip":"VIC 3008","oepened":"2000","status":"open","nicknames":"Docklands Stadium, Telstra Dome, Etihad Stadium","geo_latitude":"-37.816479942621314","geo_longtitude":"144.94762122631073","capacity":"56347","surface":"grass","last_updated":"2018-07-31 15:56:22"},{"venue_id":"415","name":"Adelaide Oval","city":"Adelaide, SA","area":"Australia","area_id":"19","adress":"War Memorial Drive, North Adelaide","adress_zip":"TAS 7018","oepened":"1871","status":"open","nicknames":"","geo_latitude":"-34.915518241326524","geo_longtitude":"138.59622538089752","capacity":"53583","surface":"grass","last_updated":"2018-01-08 02:10:59"},{"venue_id":"3191","name":"Cazaly's Stadium","city":"Westcourt","area":"Australia","area_id":"19","adress":"344 Mulgrave Road","adress_zip":"QLD 4870","oepened":"1957","status":"open","nicknames":"Bundaberg Rum Stadium","geo_latitude":"-16.935692203181624","geo_longtitude":"145.7490329019565","capacity":"13500","surface":"grass","last_updated":"2018-03-28 11:47:36"},{"venue_id":"6087","name":"Spotless Stadium","city":"Sydney, NSW","area":"Australia","area_id":"19","adress":"Grand Parade, Olympic Park","adress_zip":"NSW 2127","oepened":"1998","status":"open","nicknames":"Sydney Showground Stadium, Škoda Stadium","geo_latitude":"-33.84311214729104","geo_longtitude":"151.06763899326324","capacity":"24000","surface":"grass","last_updated":"2016-09-24 18:58:46"},{"venue_id":"8553","name":"Melbourne Cricket Ground","city":"Richmond, VIC","area":"Australia","area_id":"19","adress":"Brunton Avenue","adress_zip":"VIC 3002","oepened":"1853","status":"open","nicknames":"The MCG, The ","geo_latitude":"-37.819982","geo_longtitude":"144.983454","capacity":"100024","surface":"grass","last_updated":"2019-04-17 19:44:56"},{"venue_id":"10973","name":"The Gabba","city":"Brisbane, QLD","area":"Australia","area_id":"19","adress":"Woolloongabba","adress_zip":"QLD 4102","oepened":"1895","status":"open","nicknames":"Brisbane Cricket Ground","geo_latitude":"-27.485833","geo_longtitude":"153.038056","capacity":"42000","surface":"grass","last_updated":"2018-01-08 02:07:52"},{"venue_id":"10974","name":"Blundstone Arena","city":"Bellerive, TAS","area":"Australia","area_id":"19","adress":"15 Derwent St","adress_zip":"TAS 7018","oepened":"1914","status":"open","nicknames":"Bellerive Oval","geo_latitude":"-42.877222","geo_longtitude":"147.373611","capacity":"19500","surface":"grass","last_updated":"2018-01-08 02:09:42"},{"venue_id":"10976","name":"University of Tasmania Stadium","city":"Launceston, TAS","area":"Australia","area_id":"19","adress":"2 Invermay Rd, Invermay","adress_zip":"TAS 7248","oepened":"1921","status":"open","nicknames":"York Park, Aurora Stadium, UTAS Stadium","geo_latitude":"-41.425833","geo_longtitude":"147.138889","capacity":"21000","surface":"grass","last_updated":"2018-03-28 12:54:29"},{"venue_id":"10978","name":"Sydney Cricket Ground","city":"Sydney, NSW","area":"Australia","area_id":"19","adress":"Moore Park","adress_zip":"","oepened":"1848","status":"open","nicknames":"SCG","geo_latitude":"-33.891667","geo_longtitude":"151.224722","capacity":"48000","surface":"grass","last_updated":"2018-01-08 02:23:58"},{"venue_id":"10979","name":"TIO Traeger Park","city":"Alice Springs, NT","area":"Australia","area_id":"19","adress":"5 Traeger Ave","adress_zip":"NT 0870","oepened":"","status":"open","nicknames":"Traeger Park","geo_latitude":"-23.709039","geo_longtitude":"133.875083","capacity":"10000","surface":"grass","last_updated":"2018-01-08 02:26:29"},{"venue_id":"10980","name":"UNSW Canberra Oval","city":"Griffith, NSW","area":"Australia","area_id":"19","adress":"Manuka Cir","adress_zip":"ACT 2603","oepened":"1929","status":"open","nicknames":"Manuka Oval","geo_latitude":"-35.318056","geo_longtitude":"149.134722","capacity":"12000","surface":"grass","last_updated":"2018-03-28 12:47:07"},{"venue_id":"11541","name":"Optus Stadium","city":"Perth, WA","area":"Australia","area_id":"19","adress":"Roger MacKay Dr, Burswood","adress_zip":"6100","oepened":"2017","status":"open","nicknames":"Perth Stadium","geo_latitude":"-31.951111","geo_longtitude":"115.889028","capacity":"60000","surface":"grass","last_updated":"2018-03-28 11:39:08"},{"venue_id":"11542","name":"Jiangwan Stadium","city":"Shanghai","area":"China PR","area_id":"49","adress":"346 Guohe Rd","adress_zip":"200433","oepened":"1934","status":"open","nicknames":"Shanghai Stadium","geo_latitude":"31.3068","geo_longtitude":"121.5154","capacity":"11000","surface":"grass","last_updated":"2018-03-28 11:51:41"},{"venue_id":"11543","name":"Metricon Stadium","city":"Carrara, QLD","area":"Australia","area_id":"19","adress":"Nerang Broadbeach Rd","adress_zip":"4211","oepened":"1987","status":"open","nicknames":"Carrara Stadium, Carrara Oval","geo_latitude":"-28.006389","geo_longtitude":"153.367222","capacity":"35000","surface":"grass","last_updated":"2018-10-04 15:41:22"},{"venue_id":"11544","name":"TIO Stadium","city":"Darwin","area":"Australia","area_id":"19","adress":"Abala Rd, Marrara","adress_zip":"NT 0812","oepened":"1991","status":"open","nicknames":"Marrara Oval","geo_latitude":"-12.399167","geo_longtitude":"130.887222","capacity":"12500","surface":"grass","last_updated":"2018-03-28 13:04:35"},{"venue_id":"11545","name":"Mars Stadium","city":"Ballarat, VIC","area":"Australia","area_id":"19","adress":"Creswick Road","adress_zip":"VIC 3350","oepened":"1990","status":"open","nicknames":"Eureka Stadium, Eastern Oval","geo_latitude":"-37.539528","geo_longtitude":"143.848028","capacity":"11000","surface":"grass","last_updated":"2018-12-04 12:10:00"}]}}