JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10310503
json
{
  "response": {
    "fps": 50,
    "fps_avg": 50,
    "entities_count": 79763,
    "world_seed": 2129926341,
    "world_size": 3750,
    "steam_id": "90284792885392411",
    "domain": null,
    "id": 10310503,
    "ip": "94.254.104.145",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Älvsbyn",
    "description": "*** Welcome to Grimlands ***\r\n The European Rust Community - Solo Server\r\n \r\n Server: Solo Only (Vanilla)\r\n Map Size: 3750\r\n Max Population: 200\r\n \r\n → Wipe Schedule:\r\n • Map wipe: Every Thursday @ 16:00 CET / 17:00 CEST\r\n • Blueprint wipe: First Thursday of each month (forced wipe)\r\n \r\n → Rules:\r\n • Solo only - no teaming, alliances or group play\r\n • Do NOT give away items, bases, codes or bags\r\n • No friendly",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776347624,
    "score": 0,
    "last_online": 1776879024,
    "icon": null,
    "name": "[EU] Grimlands.eu - Solo | Weekly",
    "connect": "94.254.104.145:28025",
    "request": "94.254.104.145:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1758288371,
    "last_update": 1776879024,
    "banned": false,
    "wipe": 1776347839,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3896,
    "language": "sv",
    "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/10310503");
$data = json_decode($json, true);
var_dump($data);