JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/7206221
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 7206221,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"ze0s6yPeWK\",\"type\":\"paragraph\",\"data\":{\"text\":\"About every five hours the server reboots and takes an incremental backup.  Discord requests to [https://discord.gg/RqSn9wyZ](https://discord.gg/RqSn9wyZ) while I'm online for performance concerns, or if you 'oops' it and want a rollback, will be considered so long as it won't impact other players.\"}},{\"id\":\"iduY0en9aI\",\"type\":\"paragraph\",\"data\":{\"text\":\"I'm temporarily running in a 4x2 CPU configuration (vs the previous 4x1) during my Windows 2025 Server eval, any feedback on performance is welcome.\"}},{\"id\":\"GnPm7-X6nH\",\"type\":\"paragraph\",\"data\":{\"text\":\"This is a vanilla DayZ server with no extra mods at all.  I do manage some admin logs for review. \"}},{\"id\":\"3hM0P6-Jmy\",\"type\":\"paragraph\",\"data\":{\"text\":\"PLEASE NOTE:  Wanton destruction for the purposes of setting back someone else's progress is a basis for a ban.  While I respect the PvP nature of the game, I want this to be a 'sporting' server.  Despawning items when someone isn't online only sets them back, and the population is low enough that this only serves to force a 'grind.'  As such, if you must make PvP a direct 'sporting kill,'  However, how about you yell out a hello instead since you know where they're at?  Maybe they'll want a fight, or you two can hunt a bear instead.\"}},{\"id\":\"7kiP1TSFpL\",\"type\":\"paragraph\",\"data\":{\"text\":\"(To clarify, this isn't necessarily the same thing as a raid.  Taking an item you can use, or even loading up someone's car and driving off is fair game enough as they have a chance of finding you and stealing it back so long as the items remain 'in play.')\"}},{\"id\":\"drBZouiWoX\",\"type\":\"paragraph\",\"data\":{\"text\":\"Established players with a history can request access to my iZurvive map.  This will allow us to mark items of interest (other vehicles, barrels, etc.)\"}}]",
    "game": 221100,
    "owner": 99209,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1747218030,
    "icon": null,
    "name": "ScaleMatrix4Dayz",
    "connect": null,
    "request": null,
    "map": "chernarusplus",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1736444572,
    "last_update": 1750457066,
    "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": 13640,
    "language": "en",
    "parked": true,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": {
      "username": "wparish",
      "avatar": "779b1a76-a113-4a5c-8255-557f6bf8223b.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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