No Subscription to this function
GET /cricket/get_season_venue
Returns list of all venues for a particular season
Request URL
https://dsg-api.com/clients/{client_name}/cricket/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
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}/cricket/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}/cricket/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/cricket/get_season_venue?id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"cricket","lang":"en","method":{"method_id":"338","name":"get_season_venue"},"venue":[{"venue_id":"7847","name":"Wankhede Stadium","city":"Mumbai, Maharashtra","area":"India","area_id":"94","adress":"Maharshi Karve Rd, New Marine Lines","adress_zip":"400020","oepened":"1974","status":"open","nicknames":"Sheshrao Krushnarao Wankhede Stadium","geo_latitude":"18.938849642296997","geo_longtitude":"72.8257566690445","capacity":"45000","surface":"grass","last_updated":"2018-04-04 15:37:02"},{"venue_id":"7936","name":"Rajiv Gandhi International Cricket Stadium","city":"Uppal, Hyderabad","area":"India","area_id":"94","adress":"Genpact Shortcut, Vignana Puri, Habsiguda","adress_zip":"500039","oepened":"2004","status":"open","nicknames":"","geo_latitude":"17.406574496363103","geo_longtitude":"78.55045437812805","capacity":"60000","surface":"grass","last_updated":"2018-04-04 15:48:13"},{"venue_id":"11565","name":"M. A. Chidambaram Stadium","city":"Chennai, Tamil Nadu","area":"India","area_id":"94","adress":"Victoria Hostel Rd, Chepauk","adress_zip":"600005","oepened":"1916","status":"open","nicknames":"Chepauk Stadium","geo_latitude":"13.062778","geo_longtitude":"80.279444","capacity":"50000","surface":"grass","last_updated":"2018-04-04 15:17:13"},{"venue_id":"11566","name":"Feroz Shah Kotla Ground","city":"New Delhi, Delhi","area":"India","area_id":"94","adress":"Jawaharlal Nehru Marg, Raj Ghat","adress_zip":"110002","oepened":"1883","status":"open","nicknames":"Kotla","geo_latitude":"28.637778","geo_longtitude":"77.243056","capacity":"31340","surface":"grass","last_updated":"2018-04-04 15:21:19"},{"venue_id":"11567","name":"Holkar Cricket Stadium","city":"Indore, Madhya Pradesh","area":"India","area_id":"94","adress":"Race Course Road","adress_zip":"452001","oepened":"1990","status":"open","nicknames":"Holkar Stadium","geo_latitude":"22.724303","geo_longtitude":"75.879972","capacity":"30000","surface":"grass","last_updated":"2018-04-04 15:25:30"},{"venue_id":"11568","name":"IS Bindra Stadium","city":"Mohali, Punjab","area":"India","area_id":"94","adress":"Sahibzada Ajit Singh, Nagar district","adress_zip":"160063","oepened":"1993","status":"open","nicknames":"Punjab Cricket Association Stadium","geo_latitude":"30.690858","geo_longtitude":"76.737258","capacity":"26000","surface":"grass","last_updated":"2018-04-04 15:33:02"},{"venue_id":"11569","name":"Eden Gardens","city":"Kolkata, West Bengal","area":"India","area_id":"94","adress":"BBD Bagh","adress_zip":"700021","oepened":"1864","status":"open","nicknames":"","geo_latitude":"22.564444","geo_longtitude":"88.343333","capacity":"66000","surface":"grass","last_updated":"2018-04-04 15:35:25"},{"venue_id":"11570","name":"Sawai Mansingh Stadium","city":"Jaipur, Rajasthan ","area":"India","area_id":"94","adress":"Jan Path, Jaipur Nagar Nigam","adress_zip":"302016","oepened":"1969","status":"open","nicknames":"","geo_latitude":"26.894031","geo_longtitude":"75.803225","capacity":"23185","surface":"grass","last_updated":"2018-04-04 15:40:01"},{"venue_id":"11571","name":"M. Chinnaswamy Stadium","city":"Bangalore, Karnataka","area":"India","area_id":"94","adress":"MG Road","adress_zip":"560001","oepened":"1969","status":"open","nicknames":"","geo_latitude":"12.978806","geo_longtitude":"77.599556","capacity":"40000","surface":"grass","last_updated":"2018-04-04 15:45:37"}]}}