JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11606768
json
{
  "response": {
    "steam_id": "90286445912847375",
    "domain": null,
    "id": 11606768,
    "ip": "81.167.215.251",
    "port": 48862,
    "query": 48864,
    "color": 0,
    "city": "Kopervik",
    "description": "![[NO/EU] Norwegian Vanilla | No BP Wipe](https://www.dropbox.com/scl/fi/8gnz7kqxno3aksik32ffh/ChatGPT-Image-May-31-2026-03_53_26-PM.png?rlkey=u5jxzbul00moe2ln5g5onhq1i&st=j7z1ju9w&dl=1)\nSERVER INFO\r\n \r\n • Vanilla+ experience\r\n • Weekly Sunday wipes\r\n • Active non-playing admins\r\n • No pay-to-win\r\n • Stable EU hosting\r\n • Nordic community – everyone welcome\r\n \r\n WHAT TO EXPECT\r\n • Fair fights without large zergs\r\n • Balanced progression\r\n • Relaxed but competitive gameplay\r\n • Active moderation\r\n • Community-driven environment\r\n • Built for both casual and experienced players\r\n \r\n RULES\r\n • Maximum team size: NO LIMIT\r\n • No teaming with other players/groups\r\n • No cheating, scripting, or exploiting\r\n • No racism, hate speech, or extreme toxicity\r\n • No ban evasion\r\n • Respect admins and server decisions\r\n • Keep global chat civil\r\n • Stream sniping is not allowed",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780626800,
    "last_online": 1780594234,
    "icon": null,
    "name": "[NO/EU] Norwegian Vanilla | No BP Wipe",
    "connect": "81.167.215.251:48862",
    "request": "81.167.215.251:48864",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NO",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915481,
    "last_update": 1780626800,
    "banned": false,
    "wipe": 1780237064,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11802,
    "language": "no",
    "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/11606768");
$data = json_decode($json, true);
var_dump($data);