API dla Atlas_F2 - (v560.3)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286788966040582",
"domain": null,
"id": 10468164,
"ip": "71.72.186.237",
"port": 57516,
"query": 57515,
"project_id": null,
"color": 0,
"city": "Madison",
"description": null,
"game": 834910,
"owner": null,
"boosts": 1,
"last_offline": 1781276586,
"last_online": 1781053951,
"icon": null,
"name": "Atlas_F2 - (v560.3)",
"connect": "71.72.186.237:57516",
"request": "71.72.186.237:57515",
"map": "Ocean",
"gamemode": "TestGameMode_C",
"version": "560.3",
"numplayers": 0,
"maxplayers": 38,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1760479162,
"last_update": 1781276586,
"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": 1105,
"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/10468164");
$data = json_decode($json, true);
var_dump($data);