JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9640867
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 67035,
    "world_seed": 237188464,
    "world_size": 6000,
    "steam_id": "90286604837484546",
    "domain": null,
    "id": 9640867,
    "ip": "205.178.168.72",
    "port": 28015,
    "query": 28014,
    "color": 0,
    "city": "Dallas",
    "description": "Server to test all things that are Karuza's! We've got planes, custom helicopters, water vehicles, cars, flying carpets, star wars, and more!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601667,
    "last_online": 1780608631,
    "icon": null,
    "name": "Karuza's Plugin Corner",
    "connect": "205.178.168.72:28015",
    "request": "205.178.168.72:28014",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1751297654,
    "last_update": 1780608631,
    "banned": false,
    "wipe": 1780598227,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3573,
    "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/9640867");
$data = json_decode($json, true);
var_dump($data);