API для [Hardcore|RU] My Last Days [NoWipe]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286820932207618",
"domain": null,
"id": 11162349,
"ip": "91.149.187.52",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Minsk",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780900460,
"last_online": 1781089841,
"icon": null,
"name": "[Hardcore|RU] My Last Days [NoWipe]",
"connect": "91.149.187.52:16261",
"request": "91.149.187.52:16261",
"map": "ProjectUnderground;vehicle_inte",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 4,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "BY",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1772228291,
"last_update": 1781089841,
"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": 3479,
"language": "be",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11162349");
$data = json_decode($json, true);
var_dump($data);