JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10978318
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 86739,
    "world_seed": 1292088692,
    "world_size": 3000,
    "steam_id": "90286263118549015",
    "domain": null,
    "id": 10978318,
    "ip": "144.76.91.226",
    "port": 28050,
    "query": 28051,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Mainland Rust | 3x | Just Wiped](https://cdn3.mapstr.gg/9aec0d3d9e21e42333403d8e26872eca.png)\nMainland Rust | 3x Quad EU\r\n\r\n• 3x Gather / vanilla Loot \r\n• Max Team 4\r\n• Harder Monuments (Strong Scientists events)\r\n• Raid Protection Weekdays / Full Raid Weekend\r\n• Kits (Delayed Start)\r\n• Active Events Every Weekend\r\n• No Pay2Win\r\n\r\nWipe: Every Friday 5 pm except First week of the wipe who folow the force wipe schedule\r\nJoin now and fight for Mainland.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780581226,
    "last_online": 1779901825,
    "icon": null,
    "name": "Mainland Rust | 3x | Just Wiped",
    "connect": "144.76.91.226:28050",
    "request": "144.76.91.226:28051",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1769900958,
    "last_update": 1780581226,
    "banned": false,
    "wipe": 1778183055,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10664,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "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/10978318");
$data = json_decode($json, true);
var_dump($data);