Skip to content

GET /region — List regions

GET https://api.sandbox-gameye.gameye.net/region

Section titled “GET https://api.sandbox-gameye.gameye.net/region”

Returns a list of all region names available for hosting sessions. Use these names as the location field when starting a session.

Requires the regions:read scope (or any valid token — the endpoint uses the same auth as other endpoints).

cURL
curl 'https://api.sandbox-gameye.gameye.net/region' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Accept: application/json'
JavaScript
const response = await fetch('https://api.sandbox-gameye.gameye.net/region', {
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Accept': 'application/json',
},
});
const { regions } = await response.json();
Python
import requests
response = requests.get(
'https://api.sandbox-gameye.gameye.net/region',
headers={
'Authorization': 'Bearer YOUR_TOKEN',
'Accept': 'application/json',
},
)
regions = response.json()['regions']

A list of available region names.

FieldTypeRequired
regionsarray of stringsYes
{
"regions": [
"europe",
"us-east",
"ap-southeast"
]
}

You are not authorized. Make sure your bearer token is correct.

Your API token does not have the required permissions to invoke this endpoint.