JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3722152
json
{
  "response": {
    "modded": true,
    "fps": 10,
    "fps_avg": 11,
    "entities_count": 134809,
    "world_seed": 1116398402,
    "world_size": 4500,
    "steam_id": "90286577197158412",
    "domain": null,
    "id": 3722152,
    "ip": "193.135.10.242",
    "port": 15438,
    "query": 15439,
    "color": 0,
    "city": "Wolfsburg",
    "description": "![[EU] RUST-4-NOOBS - PVP| x10| MYMINI](https://www.dropbox.com/s/69z43lyv7j670cb/23042022.jpg?dl=1)\nWelcome on RUST-4-NOOBS! \r\n- server located in germany\r\n- wipe every 14 days Thursday at 7 p.m. CET \r\n- Building in caves is not allowed \r\n- higher loot\r\n- higher gather rate\r\n- beginnerfriendly\r\n- MYMINI - your own minicopter\r\n- backpack\r\n- quicksmelt\r\n- kits\r\n- meteor shower\r\n- party-disco-package\r\n- Powerless Turrets & Sam's\r\n- ...",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780608257,
    "last_online": 1780594229,
    "icon": null,
    "name": "[EU] RUST-4-NOOBS - PVP| x10| MYMINI",
    "connect": "193.135.10.242:15438",
    "request": "193.135.10.242:15439",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1712427042,
    "last_update": 1780608257,
    "banned": false,
    "wipe": 1779379275,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9779,
    "language": "de",
    "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/3722152");
$data = json_decode($json, true);
var_dump($data);