# Endpoint

## All available seasons for tournament

> Get all available seasons for a specific tournament. If you search for a tournament, you get all the seasons for this tournament. If you search for a season, you get all the seasons for this season's parent tournament.

```json
{"openapi":"3.0.3","info":{"title":"Betradar API","version":"1.0.0"},"servers":[{"url":"https://global.api.betradar.com/v1"}],"security":[{"key":[]}],"components":{"securitySchemes":{"key":{"type":"apiKey","in":"header","name":"x-access-token"}}},"paths":{"/sports/{language}/tournaments/sr:{urn_type}:{id}/seasons.xml":{"get":{"summary":"All available seasons for tournament","description":"Get all available seasons for a specific tournament. If you search for a tournament, you get all the seasons for this tournament. If you search for a season, you get all the seasons for this season's parent tournament.","operationId":"availableSeasons","tags":["Sport event information"],"parameters":[{"name":"language","description":"Language code for translation.","in":"path","required":true,"schema":{"type":"string"},"default":"en"},{"name":"urn_type","description":"Choose if you want to look up the available seasons based on a tournament or a season.","in":"path","required":true,"schema":{"type":"string","enum":["tournament","season"]},"default":"tournament"},{"name":"id","description":"The ID of the tournament or the season.","in":"path","required":true,"schema":{"type":"integer"},"default":17}],"responses":{"200":{"description":"successful operation","content":{"application/xml":{}}},"401":{"description":"Unauthorized","content":{"application/json":{}}},"403":{"description":"Access denied","content":{"application/json":{}}},"500":{"description":"Internal server error","content":{"application/json":{}}}}}}}}
```
