API dla Connorys Castle Builder
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286438143665160",
"domain": null,
"id": 11660708,
"ip": "203.208.117.249",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Ballarat",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780719193,
"last_online": 1780648388,
"icon": null,
"name": "Connorys Castle Builder",
"connect": "203.208.117.249:7777",
"request": "203.208.117.249:27015",
"map": "VRisingWorld",
"gamemode": "2eb2d4d4-a1ef-4af2-b01e-79c59c8f8618",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "AU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780178472,
"last_update": 1780719193,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4457,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11660708");
$data = json_decode($json, true);
var_dump($data);