JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501071
json
{
  "response": {
    "fps": 113,
    "fps_avg": 116,
    "entities_count": 88576,
    "world_seed": 1748468461,
    "world_size": 4000,
    "steam_id": "90286463878230034",
    "domain": null,
    "id": 11501071,
    "ip": "49.12.146.245",
    "port": 60409,
    "query": 60411,
    "color": 0,
    "city": "Falkenstein",
    "description": "Serverul RustKingsRomania este locul ideal pentru jucătorii care caută o experiență echilibrată și competitivă în Rust. Acesta este un server dedicat modului Solo/Duo/Trio, unde fiecare echipă are șanse egale de dezvoltare și progres. Serverul are wipe la fiecare 2 săptămâni, oferind un restart constant al progresului și menținând gameplay-ul fresh și dinamic pentru toți jucătorii. Pentru a asigura fair-play și respect între comunitate, raidurile offline sunt strict interzise și se sancționează cu ban. Astfel, fiecare confruntare este corectă și bazată pe skill, nu pe oportunism. Dacă vrei un server activ, corect și bine organizat, RustKingsRomania este alegerea perfectă The RustKingsRomania server is the ideal place for players looking for a balanced and competitive experience in Rust. This is a server dedicated to Solo/Duo/Trio mode, where each team has equal chances to develop and progress. The server has a wipe every 2 weeks, providing a constant restart of progress and keeping the gameplay fresh and dynamic for all players. To ensure fair play and respect among the community, offline raids are strictly prohibited and sanctioned with a ban. Thus, each confrontation is fair and based on skill, not opportunism. If you want an active, fair and well-organized server, RustKingsRomania is the perfect choice",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780548810,
    "last_online": 1780398627,
    "icon": null,
    "name": "RUSTKINGS|Romania|Vanila|Solo/Duo/Trio|",
    "connect": "49.12.146.245:60409",
    "request": "49.12.146.245:60411",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207167,
    "last_update": 1780548810,
    "banned": false,
    "wipe": 1780081411,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11209,
    "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/11501071");
$data = json_decode($json, true);
var_dump($data);