JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11502881
json
{
  "response": {
    "fps": 228,
    "fps_avg": 227,
    "entities_count": 117395,
    "world_seed": 568493054,
    "world_size": 4500,
    "steam_id": "90286606023459850",
    "domain": null,
    "id": 11502881,
    "ip": "121.200.13.115",
    "port": 28019,
    "query": 28020,
    "color": 0,
    "city": "Melbourne",
    "description": "![[AU] Rust Captain Server - Weekly Sun Solo/Duo/Trio only.](https://i.postimg.cc/pTb4jkTh/Rust-Captain-Background-Winner-3-1025x512.png)\n[AU] Rust Captain Server - Weekly Sun Solo/Duo/Trio only \r\nThis server encourages you to fly minis, drive vehicles, captain boats and trains \r\ndiscord.gg/26UqeSHu6t \r\nPVP for Solo's, Duo's and Trio's \r\n  Full PVP Vanilla rust experience with quality of life enhancements. \r\n     Night is reduced length \r\n     Harvesting is easier with auto hit crit spots on trees and nodes \r\n     Recyclers at Fishing village, Oil Rigs, Cargo, Barns and more efficient \r\n     !pop shows active and sleeping player counts",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601666,
    "last_online": 1780608636,
    "icon": null,
    "name": "[AU] Rust Captain Server - Weekly Sun Solo/Duo/Trio only.",
    "connect": "121.200.13.115:28019",
    "request": "121.200.13.115:28020",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207224,
    "last_update": 1780608636,
    "banned": false,
    "wipe": 1780601809,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4839,
    "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/11502881");
$data = json_decode($json, true);
var_dump($data);