No Subscription to this function
GET /australian_football/get_venue
Returns list of details for certain venues
Request URL
https://dsg-api.com/clients/{client_name}/australian_football/get_venue?id={venue_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
object id to return
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
sport
sport of the API
version
version of the API
method
details about the API function
method_id
unique ID of method.
name
name of method.
venue
Details about venue
adress
Name of street and street number
adress_zip
ZIP code
area
name of area the venue is located
capacity
Contains the maximum capacity of the venue.
city
Name of the city where venue is located
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
Determines the surface of venue.
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_venue?id={venue_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_venue?id={venue_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/australian_football/get_venue?id={venue_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"australian_football","lang":"en","method":{"method_id":"190","name":"get_venue"},"venue":{"venue_id":"8553","name":"Melbourne Cricket Ground","city":"Richmond, VIC","area":"Australia","last_updated":"2019-04-17 19:44:56","adress":"Brunton Avenue","adress_zip":"VIC 3002","opened":"1853","status":"open","nicknames":"The MCG, The ","geo_latitude":"-37.819982","geo_longtitude":"144.983454","capacity":"100024","surface":"grass"}}}