Skip to content

Get team

GET
/v1/teams/{team_id}
Server

Get team

Authorizations

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

Parameters

Path Parameters

team_id*

XS2event ID of the Team

Typestring
Required

Responses

OK
application/json
JSON
{
"official_name": "Liverpool FC",
"team_id": "7841dbb553b74476b9236a92f56f27e9_tms",
"popular_team": true,
"sport_type": "string",
"slug": "liverpool-fc",
"iso_country": "GBR",
"wikipedia_slug": "Liverpool FC",
"wikipedia_snippet": "Liverpool Football Club is a professional football club based in Liverpool, England. The club competes in the Premier League...",
"venue_id": "7d881550d5ba4cb2b3faca11a9b1695d_vnx",
"team_slug": "LIV",
"logo_filename": "liverpoolfc_lrkvr.png"
}

Samples

cURL
curl -X GET \
'https://api.xs2event.com/v1/teams/{team_id}' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/teams/{team_id}', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.xs2event.com/v1/teams/{team_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/teams/{team_id}'

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

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