JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/7175083
json
{
  "response": {
    "fps": 68,
    "fps_avg": 71,
    "entities_count": 131161,
    "world_seed": 1337,
    "world_size": 4750,
    "steam_id": "90286604065468432",
    "domain": null,
    "id": 7175083,
    "ip": "91.229.114.90",
    "port": 28032,
    "query": 28034,
    "color": 0,
    "city": "Chicago",
    "description": "![Hurricane • 3% Upkeep • No Raiding • PvP Zones](https://i.imgur.com/JY175Fi.png)\nOnly Wipes On Force-Wipe • No Team Limit • Bigger Stacks • PvP Zones\r\nSkill Leveling • Online Rewards • Chat Minigames • Map Size 4750\r\n\r\nRaiding is Disabled\r\n• All structures and tugboats are protected\r\n• Turrets cannot damage other players\r\n• Tool cupboards, legacy shelters, and tugboats are marked on map\r\n\r\nPvP is Limited\r\n• Friendly fire between teammates is enabled\r\n• Otherwise PvP is only enabled if both combatants are in a PvP zone\r\n• All PvP zones are marked on the map and visible in-game\r\n\r\nPvP Zones \r\nLaunch Site • Military Tunnels • Nuclear Missile Silo\r\nAbandoned Military Base • Arctic Research Base\r\nOil Rig • Large Oil Rig • Giant Excavator Pit • Cargo\r\nHQM Quarry • Sulfur Quarry • Stone Quarry",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780627224,
    "icon": null,
    "name": "Hurricane • 3% Upkeep • No Raiding • PvP Zones",
    "connect": "91.229.114.90:28032",
    "request": "91.229.114.90:28034",
    "map": "Hurricane Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 18,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1736279790,
    "last_update": 1780627224,
    "banned": false,
    "wipe": 1780596090,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 780,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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