API для [ITA] I MARCIONI - imarcioni.altervista.org - Server KF2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": 90286833952097300,
"domain": null,
"id": 11695163,
"ip": "87.4.135.51",
"port": 7777,
"query": 27017,
"project_id": null,
"color": 0,
"city": "Milan",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1781154852,
"last_online": 1781137353,
"icon": null,
"name": "[ITA] I MARCIONI - imarcioni.altervista.org - Server KF2",
"connect": "87.4.135.51:7777",
"request": "87.4.135.51:27017",
"map": "KF-MOONBASE",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "IT",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780225544,
"last_update": 1781154852,
"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": 1170,
"language": "it",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11695163");
$data = json_decode($json, true);
var_dump($data);