JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/754198
json
{
  "response": {
    "fps": 57,
    "fps_avg": 55,
    "entities_count": 101202,
    "world_seed": 1558424269,
    "world_size": 4250,
    "steam_id": "90286604329210882",
    "domain": null,
    "id": 754198,
    "ip": "216.126.207.136",
    "port": 28015,
    "query": 28014,
    "color": 0,
    "city": "Poplar",
    "description": "Welcome to [UK] The Haven PvE we have a variety of quality life plugins to make the server better for our players. If you are from the US we have a US based server you can play on you can find this server from our discord or by hitting F1 then typing client.connect 45.88.228.182 and this will connect you to the server. Our Servers wipe monthly on force wipe.\r\nActive Staff & Mods.\r\n\r\nPlugins:\r\n    NoDecay (Only Twig will Decay).\r\n    RaidableBases(PVE).\r\n    SkillTree.\r\n    Water Event.\r\n    Junkyard Event.\r\n    Harbor Event.\r\n    BackPacks.\r\n    Heli Signals.\r\n    Building Skins.\r\n    Building Grades.\r\n    Base Repair.\r\n    Building Workbench(Extents work bench Range).\r\n    \r\nIn-game Rules:\r\n    1) No stealing or looting anybody else's stuff.  This includes looting drops,\r\n     boxes or taking loot from a monument that they are doing.\r\n    2) Monuments are first come first serve. (Monuments are automatically  \r\n      claimed to you) If someone claims before you, allow them time to clear it \r\n      and gather their loot. (Supermarkets, Gas Stations, Light House & Mining \r\n      Outpost do not need to be claimed).\r\n    3) Bradley can only be claimed once per day unless server is quiet (Must be  \r\n       at launch to claim).\r\n   4) If someone has tagged Chad before you, give them time to take him \r\n       down.\r\n   5) If you are doing a monument, they get automatically claimed to you,\r\n       apart from Crates, Brad, Chad, Raids and Events theses still need to be  \r\n       claimed.\r\n   6) Toxicity, racism, or harassment of any kind in global chat, team chat, or\r\n        voice",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596861,
    "last_online": 1780603824,
    "icon": null,
    "name": "[UK] [PVE] The Haven | No Killing | No Decay | No Stealing",
    "connect": "216.126.207.136:28015",
    "request": "216.126.207.136:28014",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 30,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 77,
    "add_date": 1676380737,
    "last_update": 1780603824,
    "banned": false,
    "wipe": 1780597076,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 680,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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