API для [Doll and Needle] Survival Community #2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1583081859,
"app": {
"id": 18,
"name": "Left 4 Dead",
"steam_id": 500,
"url": "left-4-dead"
},
"color": 0,
"connect": "45.63.116.210:27016",
"country": "DE",
"domain": null,
"game": 500,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 232711,
"ip": "45.63.116.210",
"language": "de",
"last_update": 1794692745,
"map": "l4d_hospital01_apartment",
"maxplayers": 7,
"name": "[Doll and Needle] Survival Community #2",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27016,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "45.63.116.210:27016",
"secured": true,
"status": true,
"steam_id": null,
"version": "1.0.4.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": "",
"disabled_modules": [],
"gamemode": "L4D - Survival",
"hidden": false,
"last_offline": 1792905631,
"last_online": 1794692745,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 99,
"wipe_period": null,
"coop": "0",
"sv_tags": "survival",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"sm_nextmap": "",
"sv_contact": "Steam : Voodoo Priest [FR]",
"environment": "l",
"sv_password": "0",
"tv_password": "0",
"a2s_protocol": 7,
"l4d_nth_kill": "1",
"sv_maxplayers": "7",
"sv_steamgroup": "5143074",
"sv_voiceenable": "1",
"l4d_nth_message": "0",
"l4d_nth_version": "1.4.1",
"metamod_version": "1.11.0-dev+1155V",
"l4d_nth_spectate": "1",
"l4d_votemanager2": "1.5.5",
"players_complete": true,
"stripper_version": "1.2.2",
"tv_relaypassword": "0",
"sourcemod_version": "1.11.0.6968",
"l4d_nth_timerrepeat": "30",
"sv_force_unreserved": "0",
"ff_announcer_enabled": "1",
"ff_announcer_version": "1.5",
"l4d_nth_joininfected": "0",
"sm_cannounce_version": "1.7.1",
"l4d_nth_joinsurvivors": "1",
"EnforceGameTypes_version": "1.4",
"ff_announcer_announce_mode": "4",
"ff_announcer_announce_type": "0"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/232711");
$data = json_decode($json, true);
var_dump($data);