API для Last Train Out | 8P Co-op | Objectives + Survival
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789801202,
"app": {
"id": 6,
"name": "No More Room in Hell",
"steam_id": 224260,
"url": "no-more-room-in-hell"
},
"color": 0,
"connect": "66.226.73.30:27061",
"country": "US",
"domain": null,
"game": 224260,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16741817,
"ip": "66.226.73.30",
"language": "en",
"last_update": 1789824534,
"map": "nmo_toxtethdark",
"maxplayers": 8,
"name": "Last Train Out | 8P Co-op | Objectives + Survival",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27061,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27061,
"request": "66.226.73.30:27061",
"secured": true,
"status": true,
"steam_id": "90293022622012424",
"version": "1.1.5.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Ардмор",
"description": null,
"disabled_modules": [],
"gamemode": "NMRiH: Casual",
"hidden": false,
"last_offline": 1789801202,
"last_online": 1789824534,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 318,
"wipe_period": null,
"coop": "0",
"sv_tags": "8player,casual,coop,mapvote,objectives,survival",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"sm_nextmap": "nms_northway",
"sv_alltalk": "1",
"sv_contact": "",
"sv_gravity": "800",
"sv_maphack": "1",
"environment": "l",
"mp_teamlist": "hgrunt;scientist",
"mp_teamplay": "0",
"sv_friction": "4",
"sv_maxspeed": "320",
"sv_password": "0",
"sv_pausable": "0",
"sv_stepsize": "18",
"tv_password": "0",
"a2s_protocol": 17,
"mp_allowNPCs": "1",
"mp_footsteps": "1",
"mp_fraglimit": "0",
"mp_timelimit": "40",
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "100",
"mp_falldamage": "0",
"mp_flashlight": "0",
"mp_limitteams": "2",
"mp_weaponstay": "0",
"sv_accelerate": "10",
"sv_difficulty": "casual",
"sv_specnoclip": "1",
"sv_steamgroup": "",
"decalfrequency": "10",
"mp_fadetoblack": "0",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"metamod_version": "1.12.0-dev+1225V",
"mp_forcerespawn": "1",
"mp_friendlyfire": "0",
"sv_resupplytime": "60",
"mp_autocrosshair": "1",
"players_complete": true,
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tv_relaypassword": "0",
"r_JeepViewZHeight": "10.0",
"sourcemod_version": "1.12.0.7249",
"sv_specaccelerate": "5",
"sv_wateraccelerate": "10",
"r_VehicleViewDampen": "1",
"sv_maphack_filename": "",
"sv_noclipaccelerate": "5",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"sv_vote_quorum_ratio": "0.6",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"sv_allow_custom_balance": "0",
"sv_maxusrcmdprocessticks": "24"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16741817");
$data = json_decode($json, true);
var_dump($data);