API для Nitrado.net Gameserver
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794542210,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "31.214.232.4:10900",
"country": "US",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20063556,
"ip": "31.214.232.4",
"language": "en",
"last_update": 1794665184,
"map": "Office",
"maxplayers": 6,
"name": "Nitrado.net Gameserver",
"numplayers": 0,
"official": null,
"points": 30,
"port": 10900,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 10901,
"request": "31.214.232.4:10901",
"secured": false,
"status": true,
"steam_id": "90297441596921879",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Клифтон",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": 1794642316,
"last_online": 1794665184,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2310,
"wipe_period": null,
"SN_i": "3",
"SN0_s": "nitrado",
"SN1_s": "net",
"SN2_s": "gameserver",
"P2PADDR": "90297441596921879",
"P2PPORT": "10900",
"CONMETHOD": "P2P",
"GamePort_i": "10900",
"Hardcore_b": "false",
"OWNINGNAME": "Nitrado.net Gameserver",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "RKMYS",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "c564672cf6ac49209068bcc72fbc618a",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20063556");
$data = json_decode($json, true);
var_dump($data);