JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/4985444
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 119891,
    "world_seed": 302985247,
    "world_size": 4250,
    "steam_id": "90284748654087189",
    "domain": null,
    "id": 4985444,
    "ip": "103.62.51.134",
    "port": 49555,
    "query": 49556,
    "color": 0,
    "city": "Sydney",
    "description": "![EasyRust 2 | No Decay | Monthly](https://steamuserimages-a.akamaihd.net/ugc/780732677055894545/6A64C7059D7019B50A6B575536A8DF493697D279/?imw=512)\nRust, but for people with lives! We're a casual server with a small & friendly community, come stop by the Discord! (click View Webpage)\r\n\r\nTweaks: \r\n• No decay, but bases that have been inactive for >14 days will be decayed. \r\n• Minicopters spawn on roads. \r\n• Locked Crates hack twice as fast. \r\n• Plants grow 20% faster. \r\nRules: \r\n** Please join the Discord server for full details on these rules! ** \r\n• NO griefing. Raiders must return bases to their owner.\r\n• 1 OFFLINE per day, per group.\r\n• NO fully sealing your Tool Cupboard(s). \r\n• NO toxicity. PvP is allowed, but keep interactions civil. \r\n• Max team size of 5.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776016937,
    "score": 0,
    "last_online": 1776824421,
    "icon": null,
    "name": "EasyRust 2 | No Decay | Monthly",
    "connect": "103.62.51.134:49555",
    "request": "103.62.51.134:49556",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1720204483,
    "last_update": 1776824421,
    "banned": false,
    "wipe": 1775191814,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2701,
    "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/4985444");
$data = json_decode($json, true);
var_dump($data);