JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1838646
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 99922,
    "world_seed": 1595028025,
    "world_size": 4250,
    "steam_id": "90286581561044993",
    "domain": null,
    "id": 1838646,
    "ip": "162.55.236.48",
    "port": 28025,
    "query": 28028,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU] FireRust 2x|Vanilla|Wiped 21/5](https://www.firerust.com/img/headers/firerust_2x.png)\nWelcome to our 2x Vanilla server!\n\nRules on this server:\n-No accounts with more than 1 VAC ban. VAC ban must be older than 365 days\n-No private/not setup accounts allowed\n-No Racism.\n-No pornographic signs when using /sil.\n-No Cheating.\n-No Glitching/Exploiting.\n-No team limit.\n\nJoin our Discord: firerust.com/discord\n\nBP's wipe biweekly\n\nThe last wipe was on Thursday 21/5\nThe next wipe will be on Thursday 4/6 (14 day wipe schedule)\nThe map size is 4250 and the seed is 1595028025 (BP wiped Friday 8/5)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780545869,
    "last_online": 1780562430,
    "icon": null,
    "name": "[EU] FireRust 2x|Vanilla|Wiped 21/5",
    "connect": "162.55.236.48:28025",
    "request": "162.55.236.48:28028",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1700120860,
    "last_update": 1780562430,
    "banned": false,
    "wipe": 1779372785,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2339,
    "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/1838646");
$data = json_decode($json, true);
var_dump($data);