Motor Town: Behind The Wheel
API для Mr Bug's Infested Server +
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/9893248json
{
"response": {
"steam_id": "90284365086381066",
"domain": null,
"id": 9893248,
"ip": "109.228.37.5",
"port": 7777,
"query": 27015,
"color": 0,
"city": "London",
"description": null,
"game": 1369670,
"owner": null,
"boosts": 1,
"last_offline": 1775901119,
"score": 1,
"last_online": 1776216620,
"icon": null,
"name": "Mr Bug's Infested Server +",
"connect": "109.228.37.5:7777",
"request": "109.228.37.5:27015",
"map": null,
"gamemode": "Unreal Test!",
"version": "0.7.18+1",
"numplayers": 4,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 35,
"add_date": 1753710265,
"last_update": 1776216620,
"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": 16,
"language": "en",
"parked": false,
"app": {
"id": 1564980,
"steam_id": 1369670,
"name": "Motor Town: Behind The Wheel",
"url": "motor-town-behind-the-wheel"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/9893248");
$data = json_decode($json, true);
var_dump($data);