面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/2852271
json
{
  "response": {
    "fps": 135,
    "fps_avg": 131,
    "entities_count": 143888,
    "world_seed": 800206238,
    "world_size": 5000,
    "steam_id": "90286528982494239",
    "domain": null,
    "id": 2852271,
    "ip": "109.230.239.82",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Hamburg",
    "description": "![EU RustRevolt 2x No BP Wipes Solo/Duo/Trio|Shop|Noob Friendly](https://www.dropbox.com/scl/fi/vsboz5bflx3hkrqp2egzm/RR-Logo.PNG?rlkey=jnihxiol4bdq3boa0usspcp35&st=k0pinup1&dl=1)\nWelcome to RustRevolt   next wipe 04 Juny - 8pm CET\r\n\r\nMap wipes Monthly on Forced wipes - first Thursday of each month at 19:00 GMT/20:00 CEST\r\nBlueprints don't wipe \r\nMax Teamsize 3 No allying/teaming allowed.\r\nPVP\r\n\r\nDiscord: https://discord.gg/m4Qf8H72jh\r\n\r\nFree skins – skin all items\r\nProfessional performance Server\r\n2x gather rates\r\n2x scrap and components\r\n2x craft, recycling\r\n2x smelting speed\r\nIncreased stack sizes \r\nSome minicopters spawn on the roads\r\nObject Stacking (Wood Boxes...)\r\nStarter kits\r\nReduced upkeep 50%\r\nShort nights & long days\r\nRecyclers at Dome, Oilrigs, Cargo Ranches and Fishing Villages\r\nCars spawn with car parts and are ready to drive\r\nVehicle Shop and item shop\r\nActive non-playing admins\r\nNewbie Friendly (10h Offline Raidprotection for RP Points)\r\nAnd so much more! View commands with /command or /help\r\nAll big events\r\n-------------\r\nRules: (more with /rules)\r\nNo cheating/exploiting. No VPNs/proxis\r\nPlaying with cheaters/evaders will result in a ban",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780432455,
    "last_online": 1780572035,
    "icon": null,
    "name": "EU RustRevolt 2x No BP Wipes Solo/Duo/Trio|Shop|Noob Friendly",
    "connect": "109.230.239.82:28015",
    "request": "109.230.239.82:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1707167611,
    "last_update": 1780572035,
    "banned": false,
    "wipe": 1778176066,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2527,
    "language": "de",
    "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/2852271");
$data = json_decode($json, true);
var_dump($data);