JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/2388209
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 5179,
    "world_seed": 1337,
    "world_size": 1000,
    "steam_id": "90286588114361368",
    "domain": null,
    "id": 2388209,
    "ip": "156.236.84.67",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "New York",
    "description": "![Zenith Rust 2x 1 Grid/One Grid [Solo/Duo/Trio]](https://www.dropbox.com/scl/fi/u33euv93w4oru0yidemfu/Zenith-Banner.jpg?rlkey=iczmn2i2xu9ks6knt85dbhwl9&dl=1)\nServer Info: \r\n-Wipe twice per week on Tuesdays and Fridays at 3:00PM ET/19:00 UTC\r\n-1 Grid map\r\n-Custom Features/Events \r\n-2x Gather, Vanilla Stack sizes, vending machines, and upkeep \r\n-Custom Barrels, Custom Map, Custom Monuments\r\nRules:\r\n-No cheating, abusing exploits, or other external assistance that offers a competitive advantage. \r\n- Players must not be associated with any gamebanned accounts\r\n-No Racism, Sexism, Homophobia, or excessive toxicity\r\n-No Advertising or self promotion\r\n-Max of 3 Players Authorized on TC & Codes \r\n-Max of 3 players per base \r\n-Max of 3 players Roaming/Raiding\r\n-Teams are limited to no more than 5 auto turrets placed at any given time.\r\n-No auto turret is to have view of any player spawn locations\r\n-Join our discord via our website ZenithRust.Net",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780427064,
    "last_online": 1780608632,
    "icon": null,
    "name": "Zenith Rust 2x 1 Grid/One Grid [Solo/Duo/Trio]",
    "connect": "156.236.84.67:28010",
    "request": "156.236.84.67:28011",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1704119325,
    "last_update": 1780608632,
    "banned": false,
    "wipe": 1780427065,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3146,
    "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/2388209");
$data = json_decode($json, true);
var_dump($data);