面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/1031784
json
{
  "response": {
    "fps": 87,
    "fps_avg": 84,
    "entities_count": 101659,
    "world_seed": 729498591,
    "world_size": 4250,
    "steam_id": "90286578627464197",
    "domain": null,
    "id": 1031784,
    "ip": "51.210.116.139",
    "port": 28035,
    "query": 28037,
    "color": 0,
    "city": "Gravelines",
    "description": "↓↓↓ Wipe Schedule ↓↓↓\r\n------------------+-------------------\r\n► MONTHLY BLUEPRINT WIPE and MONTHLY MAP CHANGES  \r\n\r\n        ↓↓ Rules ↓↓\r\n------------------+-------------------\r\n► Welcome and before You join server read and accept the rules below.Thanks and have fun.\r\n► We reserve the right to exclude people from the server who share extremist or racist ideas or who clearly disturb the server harmony.\r\n► Provocations and toxic behaviour will not be tolerated and will be punished!.\r\n► Be friendly to fellow players and your team,both in chat and in voice.\r\n\r\n► English Only In Chat.\r\n► Don't Be Racist.\r\n► Don't Impersonate Players Or Admins.\r\n► No Real Life Threatening.\r\n► No Spamming In Chat.\r\n► Don't Use Cheats Or Associate With Cheaters.\r\n► Report Hackers To Admin Also F7.\r\n► Advertising Is Not Allowed.\r\n► No Gamebreaking Exploits.\r\n►NO VPNS ALLOWED  \r\n \r\n↓↓ Webpage/Discord ↓↓\r\n ------------------+-------------------\r\n► Webpage https://jonstacey19830.wixsite.com/rustyislands\r\n► Tebex Store https://eu-rusty-islands.tebex.io\r\n► Discord https://discord.gg/bg6c5a7ygD",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780541060,
    "last_online": 1780567833,
    "icon": null,
    "name": "EU Rusty Islands",
    "connect": "51.210.116.139:28035",
    "request": "51.210.116.139:28037",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1688488164,
    "last_update": 1780567833,
    "banned": false,
    "wipe": 1778194217,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2306,
    "language": "fr",
    "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/1031784");
$data = json_decode($json, true);
var_dump($data);