JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1035743
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 101822,
    "world_seed": 792636081,
    "world_size": 4000,
    "steam_id": "90286604109122572",
    "domain": null,
    "id": 1035743,
    "ip": "156.236.84.23",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![Relaxing Rust | Linux Friendly | 10x | PVE](https://www.relaxingrust.vip/logo.png)\nWelcome! Relaxing Rust gives you the cross you wanted between PvP and PvE. You have 14 days to build your fortress after wipe, then you can test your build during our 24 hour PvP, purge, time.\r\n-- Play with friends in this relaxing Rust server. \r\n-- Raidable Bases\r\n-- PVE\r\n-- Linux Friendly",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778868777,
    "last_online": 1780629624,
    "icon": null,
    "name": "Relaxing Rust | Linux Friendly | 10x | PVE",
    "connect": "156.236.84.23:28015",
    "request": "156.236.84.23:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 65,
    "add_date": 1688593719,
    "last_update": 1780629624,
    "banned": false,
    "wipe": 1780596683,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 829,
    "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/1035743");
$data = json_decode($json, true);
var_dump($data);