JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11259942
json
{
  "response": {
    "fps": 216,
    "fps_avg": 215,
    "entities_count": 86503,
    "world_seed": 436805750,
    "world_size": 4000,
    "steam_id": "90285588296910867",
    "domain": null,
    "id": 11259942,
    "ip": "85.215.121.81",
    "port": 27024,
    "query": 27027,
    "color": 0,
    "city": "Berlin",
    "description": "![[FR] Les Conquérants | Vanilla+ 2x | Quad | Bi-Weekly | Admin](https://inv0lv3.fr/sph3re/rust/rust.png)\nBienvenue sur [FR] Rust Les Conquérants ! /n/nVanilla+ 2x Quad équilibré entre fun et compétition. /n/n- PvP actif (team max 4 — no alliance) /n- x2 global / x2.5 monuments /n- Protection offline intelligente /n- Système comeback après raid /n- Stack TC 10k /n- Récompenses d’activité /n- No Pay To Win /n- Admin actif /n/nRaid. Rebuild. Reviens plus fort.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780563821,
    "last_online": 1779997827,
    "icon": null,
    "name": "[FR] Les Conquérants | Vanilla+ 2x | Quad | Bi-Weekly | Admin",
    "connect": "85.215.121.81:27024",
    "request": "85.215.121.81:27027",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 256,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774555184,
    "last_update": 1780563821,
    "banned": false,
    "wipe": 1778177527,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10886,
    "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/11259942");
$data = json_decode($json, true);
var_dump($data);