#5 | OFFICIAL MAX5 | FUN MODE 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286638247122974",
"domain": null,
"id": 11135378,
"ip": "194.147.90.93",
"port": 22450,
"query": 22450,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 480,
"owner": null,
"boosts": 1,
"last_offline": 1780066423,
"last_online": 1780846817,
"icon": null,
"name": "#5 | OFFICIAL MAX5 | FUN MODE",
"connect": "194.147.90.93:22450",
"request": "194.147.90.93:22450",
"map": "Scarland",
"gamemode": null,
"version": "1.2.9",
"numplayers": 119,
"maxplayers": 150,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 121,
"add_date": 1770398152,
"last_update": 1780846817,
"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": 1,
"language": "ru",
"parked": false,
"app": {
"id": 54694,
"steam_id": 480,
"name": "Spacewar",
"url": "spacewar"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11135378");
$data = json_decode($json, true);
var_dump($data);