JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11607314
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 2266,
    "world_seed": 1337,
    "world_size": 1000,
    "steam_id": "90286583568979971",
    "domain": null,
    "id": 11607314,
    "ip": "66.51.99.145",
    "port": 28025,
    "query": 27018,
    "color": 0,
    "city": "Dallas",
    "description": "The Official Lounge for the Farming Paradise Community\r\nA central hub for the Farming Paradise community built for fun, competition, and social play beyond the main server.\r\n\r\nCasino\r\n• Jump for scrap\r\n• Gambling leaderboard to track top players\r\n\r\nPvP Arenas\r\n• Nuketown\r\n• Shipment\r\n• Vacant\r\n• Oil Rig\r\n\r\nRacing\r\n• Go-Kart Racing\r\n• Bumper Cars\r\n\r\nA place to chill, compete, and connect with the Farming Paradise community.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915502,
    "last_online": 1780575640,
    "icon": null,
    "name": "The Farming Paradise Lounge",
    "connect": "66.51.99.145:28025",
    "request": "66.51.99.145:27018",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915502,
    "last_update": 1780575640,
    "banned": false,
    "wipe": 1778596079,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5550,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11607314");
$data = json_decode($json, true);
var_dump($data);