Reference data
Countries, states, cities.
#GET/reference/countries
List countriesScope: Reference/GetCountriescoreGetCountriesOpenAPI for this operation
List countries.
Core WISECP client endpoint.
Responses
| 200 | Success — data: array<object> |
| 401 | Missing, invalid or revoked key |
| 403 | Key lacks the scope, IP not allowed, or feature disabled |
Examples
curl -s 'https://www.gyrohosting.com/api/v1/client/reference/countries' \
-H "Authorization: Bearer $GYRO_TOKEN"gyro reference country listimport os, uuid, requests
h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/reference/countries", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])const res = await fetch("https://www.gyrohosting.com/api/v1/client/reference/countries", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
},
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);#GET/reference/countries/{code}/states
List states (path: {code})Scope: Reference/GetStatescoreGetStatesOpenAPI for this operation
List states (path: {code}).
Core WISECP client endpoint.
Parameters
| Field | in | Type | Description |
|---|---|---|---|
code required | path | string |
Responses
| 200 | Success — data: array<object> |
| 401 | Missing, invalid or revoked key |
| 403 | Key lacks the scope, IP not allowed, or feature disabled |
Examples
curl -s 'https://www.gyrohosting.com/api/v1/client/reference/countries/1/states' \
-H "Authorization: Bearer $GYRO_TOKEN"gyro reference country state listimport os, uuid, requests
h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/reference/countries/1/states", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])const res = await fetch("https://www.gyrohosting.com/api/v1/client/reference/countries/1/states", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
},
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);#GET/reference/states/{id}/cities
List cities (path: {id})Scope: Reference/GetCitiescoreGetCitiesOpenAPI for this operation
List cities (path: {id}).
Core WISECP client endpoint.
Parameters
| Field | in | Type | Description |
|---|---|---|---|
id required | path | integer |
Responses
| 200 | Success — data: array<object> |
| 401 | Missing, invalid or revoked key |
| 403 | Key lacks the scope, IP not allowed, or feature disabled |
Examples
curl -s 'https://www.gyrohosting.com/api/v1/client/reference/states/12345/cities' \
-H "Authorization: Bearer $GYRO_TOKEN"gyro reference state city list 12345import os, uuid, requests
h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/reference/states/12345/cities", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])const res = await fetch("https://www.gyrohosting.com/api/v1/client/reference/states/12345/cities", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
},
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);