Skip to content

Get venue

GET
/v1/venues/{venue_id}
Server

Get venue

Authorizations

api_key
TypeAPI Key (header: X-Api-Key)

Parameters

Path Parameters

venue_id*

XS2event ID of the Venue

Typestring
Required

Responses

OK
application/json
JSON
{
"venue_id": "7d881550d5ba4cb2b3faca11a9b1695d_vnx",
"official_name": "Anfield",
"country": "GBR",
"popular_stadium": true,
"venue_type": "string",
"capacity": 53394,
"city": "Liverpool",
"latitude": "53.430819",
"longitude": "-2.960827",
"number": "1",
"postalcode": "L4 0TH",
"streetname": "Anfield Road",
"opened": 1892,
"track_length": 4000,
"wikipedia_slug": "Anfield",
"wikipedia_snippet": "Anfield is a football stadium in Anfield, Liverpool, Merseyside, England...",
"slug": "anfield"
}

Samples

cURL
curl -X GET \
'https://api.xs2event.com/v1/venues/{venue_id}' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/venues/{venue_id}', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.xs2event.com/v1/venues/{venue_id}';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://api.xs2event.com/v1/venues/{venue_id}'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())