Insert Name - EUGameHost.com 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260628
json
{
  "response": {
    "fps": 25,
    "fps_avg": 25,
    "entities_count": 66978,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": "90284253695754245",
    "domain": null,
    "id": 11260628,
    "ip": "185.172.175.236",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "City of London",
    "description": "![Insert Name - EUGameHost.com](https://files.eugamehost.com/storage/uploads/eugamehost-rust.png)\nA high-performance Rust server, powered by CPUs running at 4.5-5Ghz, supported by super-fast SSD/NVME drives, and fortified with robust 12Tbps DDoS protection from path.net.\r\n\r\nWhat sets us apart?\r\n�ף Lightning-fast Deployment in Just 30 Seconds\r\n�ף Global Server Locations for Optimal Latency\r\n�ף Top-of-the-line Hardware Ensuring Unwavering Reliability\r\n�ף Shielded with 12Tbps Anycasted DDoS Protection and A2S Caching by path.net\r\n\r\nUnlock the ultimate gaming experience today!\r\nPurchase your own server now at eugamehost.com/rust-server-hosting.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775962312,
    "score": 0,
    "last_online": 1776840620,
    "icon": null,
    "name": "Insert Name - EUGameHost.com",
    "connect": "185.172.175.236:28025",
    "request": "185.172.175.236:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2622",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555199,
    "last_update": 1776840620,
    "banned": false,
    "wipe": 1774194819,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4936,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11260628");
$data = json_decode($json, true);
var_dump($data);