JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/570412
json
{
  "response": {
    "fps": 51,
    "fps_avg": 53,
    "entities_count": 85680,
    "world_seed": 1337,
    "world_size": 3275,
    "steam_id": "90286565185124377",
    "domain": null,
    "id": 570412,
    "ip": "64.40.9.221",
    "port": 28015,
    "query": 28019,
    "color": 0,
    "city": "London",
    "description": "![Rusty Nuts](https://cdn.discordapp.com/attachments/1096739195155918948/1097275001515823157/Rusty_Nuts_Server_Image_2.png)\nWelcome to Rusty Nuts\r\n\r\nWe aim to be a fun, relaxed server that focuses on gameplay over PvP\r\nWe welcome all players that are willing to follow the rules.\r\n\r\nPlease join the discord to be whitelisted.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780031018,
    "last_online": 1780547435,
    "icon": null,
    "name": "Rusty Nuts",
    "connect": "64.40.9.221:28015",
    "request": "64.40.9.221:28019",
    "map": "Season 27 - Summer is coming!",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1668892622,
    "last_update": 1780547435,
    "banned": false,
    "wipe": 1778176355,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1958,
    "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/570412");
$data = json_decode($json, true);
var_dump($data);