Search K
Appearance
Get venues
Number of items per page
50
Current page
1
Country in iso format
GBR
Enum: racetrack, stadium, other
stadium
Search for popular stadiums
true
Venue name
Anfield
Search by city name
Liverpool
Seo friendly alternative to uuid
anfield
Filter on venue ID
7d881550d5ba4cb2b3faca11a9b1695d_vnx
curl -X GET \
'https://api.xs2event.com/v1/venues?country=GBR&venue_type=stadium&popular=true&venue_name=Anfield&city=Liverpool&slug=anfield&venue_id=7d881550d5ba4cb2b3faca11a9b1695d_vnx' \
-H "Content-Type: application/json"
fetch('https://api.xs2event.com/v1/venues?country=GBR&venue_type=stadium&popular=true&venue_name=Anfield&city=Liverpool&slug=anfield&venue_id=7d881550d5ba4cb2b3faca11a9b1695d_vnx', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'https://api.xs2event.com/v1/venues';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$query = http_build_query([
'country' => 'GBR',
'venue_type' => 'stadium',
'popular' => 'true',
'venue_name' => 'Anfield',
'city' => 'Liverpool',
'slug' => 'anfield',
'venue_id' => '7d881550d5ba4cb2b3faca11a9b1695d_vnx',
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
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;
?>
import requests
url = 'https://api.xs2event.com/v1/venues'
params = {
'country': 'GBR',
'venue_type': 'stadium',
'popular': true,
'venue_name': 'Anfield',
'city': 'Liverpool',
'slug': 'anfield',
'venue_id': '7d881550d5ba4cb2b3faca11a9b1695d_vnx'
}
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())