API для testtesttest
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794072533,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "78.85.20.114:7777",
"country": "RU",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19783842,
"ip": "78.85.20.114",
"language": "ru",
"last_update": 1794751520,
"map": "Mycofields",
"maxplayers": 6,
"name": "testtesttest",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7777,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "78.85.20.114:27015",
"secured": false,
"status": false,
"steam_id": "90296949488739333",
"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": 1794751520,
"last_online": 1794092920,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 3108,
"wipe_period": null,
"SN_i": "1",
"MI0_s": "76561198046877193_+_|0002903b57e34f2090acdd91741a4cf1-!-",
"SN0_s": "testtesttest",
"P2PADDR": "90296949488739333",
"P2PPORT": "7777",
"CONMETHOD": "P2P",
"GamePort_i": "7777",
"Hardcore_b": "false",
"OWNINGNAME": "testtesttest",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "2YIL3",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "e839eba9a7a1447aa37408e1426a9289",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19783842");
$data = json_decode($json, true);
var_dump($data);