JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9861545
json
{
  "response": {
    "fps": 120,
    "fps_avg": 119,
    "entities_count": 47465,
    "world_seed": 2030470401,
    "world_size": 3000,
    "steam_id": "90286605732589575",
    "domain": null,
    "id": 9861545,
    "ip": "156.236.84.50",
    "port": 28080,
    "query": 28081,
    "color": 0,
    "city": "Dallas",
    "description": "![Eden Rust 3X PVE](https://media.discordapp.net/attachments/1395521722727534643/1478387937363230771/discord_banner.png?ex=69b5668f&is=69b4150f&hm=d099e11d0a03bdac933f3083a4745d7655bdc26d597071929a9f38d3c36c5365&=&format=webp&quality=lossless)\nWelcome to Eden Rust PVE\\\\ Be sure to check out the Rust Discord for all rules and have fun\\\\ 3X vanilla server\\\\ Enjoy and remember  Admin decisions are final — appeals can be made via Discord\\\\Report rule breakers with screenshots or clips\\\\Failure to follow these rules may result in removal, and or a ban or permanent ban\\\\All rules must be followed\\\\Thank you for your cooperation, and we hope you have a great time rusting!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780600466,
    "last_online": 1780629030,
    "icon": null,
    "name": "Eden Rust 3X PVE",
    "connect": "156.236.84.50:28080",
    "request": "156.236.84.50:28081",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1753269594,
    "last_update": 1780629030,
    "banned": false,
    "wipe": 1780600786,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3250,
    "language": "en",
    "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/9861545");
$data = json_decode($json, true);
var_dump($data);