Medieval Engineers
API для RepublicOfStraightBananasV2
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1469667json
{
"response": {
"steam_id": "90285193789674507",
"domain": null,
"id": 1469667,
"ip": "81.169.166.42",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Berlin",
"description": "",
"game": 333950,
"owner": null,
"boosts": 1,
"last_offline": 1775790123,
"score": null,
"last_online": 1777687894,
"icon": null,
"name": "RepublicOfStraightBananasV2",
"connect": "81.169.166.42:27016",
"request": "81.169.166.42:27016",
"map": null,
"gamemode": "Medieval Engineers",
"version": "0.7.3.9866488",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1697313968,
"last_update": 1777687894,
"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": 2,
"language": "de",
"parked": false,
"app": {
"id": 89,
"steam_id": 333950,
"name": "Medieval Engineers",
"url": "medieval-engineers"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1469667");
$data = json_decode($json, true);
var_dump($data);