Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /soccer/get_season_venue
Returns list of all venues for a particular season
Request URL
https://dsg-api.com/clients/{client_name}/soccer/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}
API Threshold
  • 10k calls per hour (2.78 calls per second)
  • This threshold applies to ALL your calls you do across the API.
  • Your number of calls get reset every hour at :00
  • If the thresold is reached within the hour you will get a xml/json message accordingly (which is gone when the next hour starts, see previous point)
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
id
int Required
unique season_id
lang
string
two-character language code, defaults to 'en'
Nodes
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}/soccer/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}/soccer/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}/soccer/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}/soccer/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"soccer","lang":"en","method":{"method_id":"21","name":"get_season_venue"},"venue":[{"venue_id":"150","name":"Anfield","city":"Liverpool","area":"England","area_id":"68","adress":"Anfield Road","adress_zip":"L4 OTH","oepened":"1884","status":"open","nicknames":"","geo_latitude":"53.4308278849387","geo_longtitude":"-2.9608529806137085","capacity":"54074","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"152","name":"Old Trafford","city":"Manchester","area":"England","area_id":"68","adress":"Sir Matt Busby Way","adress_zip":"M16 0RA","oepened":"1910","status":"open","nicknames":"","geo_latitude":"53.46309445787612","geo_longtitude":"-2.291373610496521","capacity":"76212","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"348","name":"St. Mary's Stadium","city":"Southampton","area":"England","area_id":"68","adress":"Britannia Road","adress_zip":"S014 5FP","oepened":"2001","status":"open","nicknames":"St Mary's","geo_latitude":"50.90589475125351","geo_longtitude":"-1.3910472393035889","capacity":"32689","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"349","name":"Emirates Stadium","city":"London","area":"England","area_id":"68","adress":"Queensland Road","adress_zip":"N7 7AJ","oepened":"2006","status":"open","nicknames":"Ashburton Grove, The Emirates, Arsenal Stadium","geo_latitude":"51.55507461369272","geo_longtitude":"-0.10845780372619629","capacity":"60355","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"356","name":"Cardiff City Stadium","city":"Cardiff","area":"Wales","area_id":"209","adress":"Leckwith Road","adress_zip":"CF11 8AZ","oepened":"2009","status":"open","nicknames":"CCS, Stadiwm Dinas Caerdydd","geo_latitude":"51.472562","geo_longtitude":"-3.20371627","capacity":"28018","surface":"grass","last_updated":"2015-08-08 13:48:26"},{"venue_id":"359","name":"Wembley Stadium","city":"London","area":"England","area_id":"68","adress":"Stadium Way, Wembley, Brent","adress_zip":"HA9 0WS","oepened":"2007","status":"open","nicknames":"","geo_latitude":"51.555855088657374","geo_longtitude":"-0.27959346771240234","capacity":"90000","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"365","name":"Turf Moor","city":"Burnley","area":"England","area_id":"68","adress":"Harry Potts Way","adress_zip":"BB10 4BX","oepened":"1883","status":"open","nicknames":"","geo_latitude":"53.78898386727206","geo_longtitude":"-2.230224609375","capacity":"22546","surface":"grass","last_updated":"2015-08-08 13:48:26"},{"venue_id":"366","name":"Stamford Bridge","city":"London","area":"England","area_id":"68","adress":"Fulham Road","adress_zip":"SW6 1HS","oepened":"1877","status":"open","nicknames":"The Bridge","geo_latitude":"51.481711962994375","geo_longtitude":"-0.190974622964859","capacity":"41841","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"367","name":"Selhurst Park","city":"London","area":"England","area_id":"68","adress":"Holmesdale Road","adress_zip":"SE25 6PU","oepened":"1924","status":"open","nicknames":"Whitehorse Lane","geo_latitude":"51.398278578043616","geo_longtitude":"-0.0855034589767456","capacity":"26309","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"368","name":"Goodison Park","city":"Liverpool","area":"England","area_id":"68","adress":"Goodison Road","adress_zip":"L4 4EL","oepened":"1892","status":"open","nicknames":"The Grand Old Lady","geo_latitude":"53.438822131705095","geo_longtitude":"-2.9662978649139404","capacity":"40569","surface":"grass","last_updated":"2015-08-04 16:18:09"},{"venue_id":"370","name":"King Power Stadium","city":"Leicester","area":"England","area_id":"68","adress":"Eastern Boulevard","adress_zip":"LE2 7FL","oepened":"2002","status":"open","nicknames":"The Walkers Stadium","geo_latitude":"52.62037661793976","geo_longtitude":"-1.1423099040985107","capacity":"32500","surface":"grass","last_updated":"2015-08-04 16:18:08"},{"venue_id":"371","name":"Etihad Stadium","city":"Manchester","area":"England","area_id":"68","adress":"Rowsley Street","adress_zip":"M11 3FF","oepened":"2002","status":"open","nicknames":"COMS, Eastlands, City of Manchester Stadium","geo_latitude":"53.48315225855607","geo_longtitude":"-2.200409173965454","capacity":"55097","surface":"grass","last_updated":"2015-08-04 16:18:09"},{"venue_id":"372","name":"St. James' Park","city":"Newcastle upon Tyne","area":"England","area_id":"68","adress":"St. James' Street","adress_zip":"NE1 4ST","oepened":"1892","status":"open","nicknames":"Sports Direct Arena, SJP","geo_latitude":"54.975540166285796","geo_longtitude":"-1.6216206550598145","capacity":"52389","surface":"grass","last_updated":"2015-08-04 16:18:09"},{"venue_id":"743","name":"Craven Cottage","city":"London","area":"England","area_id":"68","adress":"Stevenage Road","adress_zip":"SW6 6HH","oepened":"1896","status":"open","nicknames":"The Cottage, Fortress Fulham","geo_latitude":"51.474897956467196","geo_longtitude":"-0.22164702415466309","capacity":"25700","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"749","name":"Molineux Stadium","city":"Wolverhampton","area":"England","area_id":"68","adress":"Waterloo Road","adress_zip":"WV1 4QR","oepened":"1889","status":"open","nicknames":"","geo_latitude":"52.59023849776109","geo_longtitude":"-2.1304330229759216","capacity":"30852","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"756","name":"Vicarage Road Stadium","city":"Watford","area":"England","area_id":"68","adress":"Vicarage Road","adress_zip":"WD18 0ER","oepened":"1922","status":"open","nicknames":"The Vic","geo_latitude":"51.64990749238038","geo_longtitude":"-0.40162861347198486","capacity":"19920","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"758","name":"The American Express Community Stadium","city":"Brighton & Hove","area":"England","area_id":"68","adress":"Village Way","adress_zip":"BN1 9BL","oepened":"2011","status":"open","nicknames":"Falmer Stadium, The AMEX","geo_latitude":"50.86157955072821","geo_longtitude":"-0.08364200591325588","capacity":"30750","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"759","name":"Vitality Stadium","city":"Bournemouth","area":"England","area_id":"68","adress":"Dean Court, Kings Park","adress_zip":"BH7 7AF","oepened":"2001","status":"open","nicknames":"Fitness First Stadium, Dean Court, Seward Stadium, The Goldsands Stadium","geo_latitude":"50.735240532167005","geo_longtitude":"-1.8383096158504486","capacity":"12000","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"763","name":"The John Smith's Stadium","city":"Huddersfield","area":"England","area_id":"68","adress":"Stadium Way","adress_zip":"HD1 6PX","oepened":"1994","status":"open","nicknames":"Kirklees Stadium, Alfred McAlpine Stadium, Galpharm Stadium","geo_latitude":"53.654240277454335","geo_longtitude":"-1.768423318862915","capacity":"24500","surface":"grass","last_updated":"2016-07-01 17:23:01"},{"venue_id":"5194","name":"London Stadium","city":"London","area":"England","area_id":"68","adress":"Marshgate Lane, Stratford","adress_zip":"","oepened":"2011","status":"open","nicknames":"Olympic Stadium","geo_latitude":"51.53868821887338","geo_longtitude":"-0.01650094985961914","capacity":"60000","surface":"grass","last_updated":"2016-07-24 21:18:59"},{"venue_id":"12597","name":"Tottenham Hotspur Stadium","city":"London","area":"England","area_id":"68","adress":"782 High Road","adress_zip":"N17 0BX","oepened":"2018","status":"open","nicknames":"New White Hart Lane","geo_latitude":"51.60475","geo_longtitude":"-0.066417","capacity":"62062","surface":"grass","last_updated":"2018-08-14 08:53:48"}]}}