Skip to content

Castles API game profiles

GET/<project>/v2/games
Terminal window
curl \
-H 'Authorization: Bearer <token>' \
-H 'Accept: application/json' \
'https://api.castles.pro/<project>/v2/games'
[
{
"id": "ark",
"name": "ARK: Survival Evolved",
"main_port_id": "game"
}
]
Field Meaning
id Value used in the server object’s game field
name Display name
main_port_id Port field used as the primary address port

These values are the allowed port ranges used to validate a server before it is added. They do not show live open ports on any server. Range boundaries are inclusive. Game and Query share one range. RCON is listed only when the game has a restricted RCON range.

The hosting game catalog is broader and separate. A game appears here only after it has an approved Castles API identifier and port validation profile.

Allowed port ranges by game profile
IconGameAPI IDGame and QueryRCON
7 Days to Die7dtd26900 to 2699026991 to 26999
ARK: Survival Evolvedark29000 to 2970029000 to 29700
Arma 3arma32302 to 29022903 to 2990
Beasts of Bermudabermuda24615 to 24715Not listed
Conan Exilesconan17000 to 1710017101 to 17200
Conan Exiles Legacyconan17000 to 1710017101 to 17200
DayZ Standalonedayz2202 to 29062910 to 2950
Day Of Dragonsdod24815 to 24890Not listed
Factoriofact34197 to 35197Not listed
Garry's Modgarrys24215 to 24315Not listed
Minecraftmc25565 to 2576525770 to 25870
Minecraft Bedrockmcbedrock19130 to 1917219232 to 19272
Rustrust35000 to 3600036001 to 36100
Space Engineersspaceen25016 to 25026Not listed
Squadsquad27165 to 27365Not listed
The Isletheisle24315 to 24415Not listed
Valheimvalheim24416 to 2456124562 to 24614

If a game does not use Query or RCON, omit that field from the server request.

GET/<project>/v2/network
Terminal window
curl \
-H 'Authorization: Bearer <token>' \
-H 'Accept: application/json' \
'https://api.castles.pro/<project>/v2/network'
[
"5.42.211.0/24",
"185.189.255.0/24",
"194.147.90.0/24"
]

A server can be added only when its public address belongs to a network assigned to the project.