JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11259960
json
{
  "response": {
    "fps": 195,
    "fps_avg": 208,
    "entities_count": 58392,
    "world_seed": 1337,
    "world_size": 5800,
    "steam_id": "90284798220187667",
    "domain": null,
    "id": 11259960,
    "ip": "57.128.193.21",
    "port": 60000,
    "query": 60002,
    "color": 0,
    "city": "Warsaw",
    "description": "![EVOS DUMP](https://i.ibb.co/ycrxgQN8/Black-Neon-Modern-Gaminr-512-x-256-1.png)\nEVOS DUMP: Created for You! \r\n \r\nWe are a team of enthusiasts and players from different nations, united by one idea: create what's been missing on other servers. \r\nWe combined our passion, experience, and diverse perspectives to offer a fresh take on Rust. \r\nJoin our global community and be part of something new! \r\n- Global Community, Global Fun \r\n- PVP / Earth Map \r\n- Hardcore/Apocalypse",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776316312,
    "score": 0,
    "last_online": 1776840622,
    "icon": null,
    "name": "EVOS DUMP",
    "connect": "57.128.193.21:60000",
    "request": "57.128.193.21:60002",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555184,
    "last_update": 1776840622,
    "banned": false,
    "wipe": 1775225037,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4813,
    "language": "pl",
    "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/11259960");
$data = json_decode($json, true);
var_dump($data);