API dla Golden Age Ruins - (v560.3)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286162479767570,
"domain": null,
"id": 11479484,
"ip": "71.28.31.149",
"port": 5844,
"query": 57644,
"color": 0,
"city": "Commerce",
"description": null,
"game": 834910,
"owner": null,
"boosts": 1,
"last_offline": 1780554816,
"last_online": 1779880322,
"icon": null,
"name": "Golden Age Ruins - (v560.3)",
"connect": "71.28.31.149:5844",
"request": "71.28.31.149:57644",
"map": "Ocean",
"gamemode": "TestGameMode_C",
"version": "560.3",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774979107,
"last_update": 1780554816,
"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": 1282,
"language": "en",
"parked": false,
"app": {
"id": 23488,
"steam_id": 834910,
"name": "ATLAS",
"url": "atlas"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11479484");
$data = json_decode($json, true);
var_dump($data);