JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10671293
json
{
  "response": {
    "fps": 75,
    "fps_avg": 74,
    "entities_count": 103934,
    "world_seed": 1337,
    "world_size": 4096,
    "steam_id": "90286574640643088",
    "domain": null,
    "id": 10671293,
    "ip": "70.173.255.80",
    "port": 27010,
    "query": 27011,
    "color": 0,
    "city": "Las Vegas",
    "description": "![4SG Rust PvE | No Kill | No Raid | No Decay](https://www.dropbox.com/scl/fi/t525v3z92i2n2mk2xh7c7/4sgPVERustServerBannerCompressed.png?rlkey=njvtkv9k9hjmy3po41wil3iof&st=gszuicmd&dl=1)\nWelcome to 4SG - For Social Gaming Rust PvE!\r\n\r\n Here, you'll find a world where teamwork and adventure thrive. Prepare for:\r\n - **OpForce**: Battle the Convoy for epic loot!\r\n - **Harbor Heist**: Take over the harbor for some serious gains!\r\n - **Raidable Bases**: Test your skills against custom bases.\r\n - **Custom NPCs**: Meet tougher, smarter enemies at monuments.\r\n\r\n No decay for bases above twig level! Build to your heart's content.\r\n\r\n Dive into a fun-filled PvE environment where every day brings new challenges and rewards!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780158816,
    "last_online": 1780588838,
    "icon": null,
    "name": "4SG Rust PvE | No Kill | No Raid | No Decay",
    "connect": "70.173.255.80:27010",
    "request": "70.173.255.80:27011",
    "map": "Synecdoche Islands",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1764579375,
    "last_update": 1780588838,
    "banned": false,
    "wipe": 1778617480,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3822,
    "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/10671293");
$data = json_decode($json, true);
var_dump($data);