JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/238036
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 238036,
    "ip": "213.32.18.205",
    "port": 28960,
    "query": 28960,
    "color": 0,
    "city": "Roubaix",
    "description": "",
    "game": 7940,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775464927,
    "score": null,
    "last_online": 1775948422,
    "icon": null,
    "name": "Sr- Speedrun #Deathrun #CoDJumper",
    "connect": "213.32.18.205:28960",
    "request": "213.32.18.205:28960",
    "map": "mp_pipeline",
    "gamemode": "Call of Duty 4 - Modern Warfare",
    "version": "CoD4 X - linux-i386-custom build 1490 Mar 17 2026",
    "numplayers": 1,
    "maxplayers": 24,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 35,
    "add_date": 1583081806,
    "last_update": 1775948422,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 14,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 1629111,
      "steam_id": 7940,
      "name": "Call of Duty 4: Modern Warfare",
      "url": "call-of-duty-4-modern-warfare"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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