Castles API game profiles
Get games
Section titled “Get games”GET
/<project>/v2/gamescurl \ -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 |
API profile catalog
Section titled “API profile catalog”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.
| Icon | Game | API ID | Game and Query | RCON |
|---|---|---|---|---|
| 7 Days to Die | 7dtd | 26900 to 26990 | 26991 to 26999 | |
| ARK: Survival Evolved | ark | 29000 to 29700 | 29000 to 29700 | |
| Arma 3 | arma3 | 2302 to 2902 | 2903 to 2990 | |
| Beasts of Bermuda | bermuda | 24615 to 24715 | Not listed | |
| Conan Exiles | conan | 17000 to 17100 | 17101 to 17200 | |
| Conan Exiles Legacy | conan | 17000 to 17100 | 17101 to 17200 | |
| DayZ Standalone | dayz | 2202 to 2906 | 2910 to 2950 | |
| Day Of Dragons | dod | 24815 to 24890 | Not listed | |
| Factorio | fact | 34197 to 35197 | Not listed | |
| Garry's Mod | garrys | 24215 to 24315 | Not listed | |
| Minecraft | mc | 25565 to 25765 | 25770 to 25870 | |
| Minecraft Bedrock | mcbedrock | 19130 to 19172 | 19232 to 19272 | |
| Rust | rust | 35000 to 36000 | 36001 to 36100 | |
| Space Engineers | spaceen | 25016 to 25026 | Not listed | |
| Squad | squad | 27165 to 27365 | Not listed | |
| The Isle | theisle | 24315 to 24415 | Not listed | |
| Valheim | valheim | 24416 to 24561 | 24562 to 24614 |
No matching games
If a game does not use Query or RCON, omit that field from the server request.
Get project networks
Section titled “Get project networks”GET
/<project>/v2/networkcurl \ -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.














