JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11259979
json
{
  "response": {
    "fps": 240,
    "fps_avg": 239,
    "entities_count": 96720,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90284724853987347",
    "domain": null,
    "id": 11259979,
    "ip": "57.128.193.21",
    "port": 50000,
    "query": 50002,
    "color": 0,
    "city": "Warsaw",
    "description": "![EVOS PL](https://i.ibb.co/ycrxgQN8/Black-Neon-Modern-Gaminr-512-x-256-1.png)\nJesteśmy zespołem entuzjastów i graczy, którzy postanowili stworzyć coś, czego zawsze brakowało na innych serwerach. \r\nPołączyliśmy nasze pomysły, doświadczenie i pasję, aby zmienić standardowe podejście do serwerów RUST.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776316312,
    "score": 0,
    "last_online": 1776825621,
    "icon": null,
    "name": "EVOS PL",
    "connect": "57.128.193.21:50000",
    "request": "57.128.193.21:50002",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555185,
    "last_update": 1776825621,
    "banned": false,
    "wipe": 1775224910,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4790,
    "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/11259979");
$data = json_decode($json, true);
var_dump($data);