Skip to content

Returns the properties of a specific region.

GET
/api/region/{regionId}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

regionId*

ID of the region or 0 for the root region

Typeinteger
Required

Responses

success
Authorization
api_key
Variables
Key
Value
regionId*
cURL
curl -X GET \
'http://localhost/api/region/{regionId}'

Samples

cURL
curl -X GET http://localhost/api/region/{regionId}
JavaScript
fetch("http://localhost/api/region/{regionId}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/region/{regionId}");
Python
import requests
response = requests.get("http://localhost/api/region/{regionId}")
print(response.json())