JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11771299
json
{
  "response": {
    "fps": 104,
    "fps_avg": 98,
    "entities_count": 91218,
    "world_seed": 2078932597,
    "world_size": 4000,
    "steam_id": "90286799318387738",
    "domain": null,
    "id": 11771299,
    "ip": "157.85.91.157",
    "port": 22081,
    "query": 22082,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "⚠️NO MAN'S LAND | Vanilla 2x | Fresh Start\r\n⚠️Welcome to our brand-new Rust community!\r\n⚠️Vanilla 2x Rates\r\n⚠️Active Owner & Future Staff Team\r\n⚠️Fair & Competitive Gameplay\r\n⚠️No Admin Abuse\r\n⚠️Fresh Economy & Fresh Start\r\n⚠️Please note: Our Discord is currently under construction as we continue improving the server. We're a new community and appreciate your support while we get everything fully established.\r\n⚠️Help us reach high pop! Invite your teammates-clan members and friends. Every player helps build a stronger server and we'd love for you to be part of our journey from the beginning.\r\n⚠️Good luck survivors.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780996894,
    "last_online": 1781049027,
    "icon": null,
    "name": "NO MAN'S LAND - US 2x Monthly | Vanilla | NO P2W",
    "connect": "157.85.91.157:22081",
    "request": "157.85.91.157:22082",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780996894,
    "last_update": 1781049027,
    "banned": false,
    "wipe": 1780612028,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2692,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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