API для MGN Games
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794363162,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "115.179.30.7:28015",
"country": "JP",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19928413,
"ip": "115.179.30.7",
"language": "ja",
"last_update": 1794429960,
"map": "Procedural Map",
"maxplayers": 20,
"name": "MGN Games",
"numplayers": 0,
"official": null,
"points": 60,
"port": 28015,
"private": false,
"project_id": null,
"pve": 0,
"pvp": null,
"query": 28018,
"request": "115.179.30.7:28018",
"secured": true,
"status": true,
"steam_id": "90297243726136348",
"version": "2636",
"votes": 0,
"wipe": 1794361328,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Chiyoda",
"description": "JP,wipe once a month,PvE",
"disabled_modules": [],
"gamemode": "Survival",
"hidden": false,
"last_offline": 1794361850,
"last_online": 1794429960,
"list_hidden": false,
"map_url": "procedural_map_4500_seed_155428_r290",
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10284,
"wipe_period": null,
"fps": 188,
"gmn": "rust",
"url": "",
"hash": "f5974805",
"build": "170545",
"gc_cl": "140",
"gc_mb": "2812",
"fps_avg": 187,
"ram_sys": "0",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 155428,
"map_size": 4500,
"logoimage": "",
"listentype": "d",
"environment": "w",
"headerimage": "",
"a2s_protocol": 17,
"map_revision": 290,
"queueplayers": 0,
"map_image_url": "https://files.facepunch.com/rust/map-images/9c1a36ab0f88af436feba7fd48706a6c5fc186345131523d647744930e3c0821/proceduralmap.4500.0.290_9c1a36ab0f88af436feba7fd48706a6c.jpg",
"entities_count": 117000,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19928413");
$data = json_decode($json, true);
var_dump($data);