JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11412797
json
{
  "response": {
    "fps": 74,
    "fps_avg": 72,
    "entities_count": 144617,
    "world_seed": 1737378502,
    "world_size": 5000,
    "steam_id": "90286741920031774",
    "domain": null,
    "id": 11412797,
    "ip": "66.51.99.76",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "Are you East Bound and Down? This is a PvP limited server where OFFLINE raiding is not allowed. ONLINE raiding is not frowned upon, but encouraged.\r\n\r\nSolo/Duo/Trio/Quads\r\nNo BP Wipe\r\n\r\nRULES \r\n-No Offline Raiding (enforced viciously)\r\n-KOS allowed at monuments, care packages, and defending online raids.\r\n-There are no rules the last week of wipe beginning Friday, June 26th at 11:00pm/23:00 EST",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598072,
    "last_online": 1780918228,
    "icon": null,
    "name": "Rust Bound and Down | NO OFFLINES |",
    "connect": "66.51.99.76:28015",
    "request": "66.51.99.76:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1774599017,
    "last_update": 1780918228,
    "banned": false,
    "wipe": 1780597944,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2350,
    "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/11412797");
$data = json_decode($json, true);
var_dump($data);