Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11501192
json
{
  "response": {
    "fps": 69,
    "fps_avg": 70,
    "entities_count": 140431,
    "world_seed": 1997343640,
    "world_size": 4500,
    "steam_id": "90286582079110167",
    "domain": null,
    "id": 11501192,
    "ip": "178.198.245.143",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Zurich",
    "description": "![SuM EU 1-2x OffProtect. BetterNPC](https://image.myrustserver.com/logo/gelflin_6a04a1403b1a4.PNG)\nDies ist ein Modded server mit diversen Events, Skill system, Verbesserten NPC in fast allen Monumenten. Kein Blueprint wipe wenn möglich. Statistic Board, Offline Protection für Drei Tage. Stacksize Holz,Steine,Metall 2k\r\n\r\nThis is a modded server with various events, skill system, improved NPC in almost all monuments. No blueprint wipe if possible. Statistic Board, Offline Protection for Three Days. Stacksize Wood.Stone,Metal 2k",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780461847,
    "last_online": 1780563627,
    "icon": null,
    "name": "SuM EU 1-2x OffProtect. BetterNPC",
    "connect": "178.198.245.143:28015",
    "request": "178.198.245.143:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CH",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779207168,
    "last_update": 1780563627,
    "banned": false,
    "wipe": 1779996332,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1674,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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