JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502491
json
{
  "response": {
    "fps": 27,
    "fps_avg": 35,
    "entities_count": 69756,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": 90286605620616200,
    "domain": null,
    "id": 11502491,
    "ip": "66.51.96.49",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Ashburn",
    "description": "![Lexi's World PVE](https://i.imgur.com/FaPus7X.png)\nLexi's World is a new fun, Cozy PVE server with good vibes and some extra features to make your gaming experience even better. It has all the usual things you'd expect from a PVE server like no killing, no raiding bases and no stealing from players, but with some extra features: \r\n\r\nHigh gather and recycle rates. \r\n\r\nEarn RP points from playing the game which you can then use to buy things from an in game shop.\r\n\r\nEvents at monuments with extra scientists and heli's (and quality loot.) \r\n\r\nAbility to call in Karen's and buy raidable bases. \r\n\r\nWe are still trying out and testing some features, but we'd love for you to come join us for a monthly wipe.\r\n\r\nThe server aims to offer a fun playable Rust experience for those that play on it. It wipes monthly and please make sure that you upgrade your buildings beyond twig!, How To Connect: Press F1 in main menu of rust, then connect 66.51.96.63:28025, Join Us On Discord https://discord.gg/QsrUmVzw8h",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780637434,
    "icon": null,
    "name": "Lexi's World PVE",
    "connect": "66.51.96.49:28035",
    "request": "66.51.96.49:28036",
    "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": 1779207201,
    "last_update": 1780637434,
    "banned": false,
    "wipe": 1780597538,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2258,
    "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/11502491");
$data = json_decode($json, true);
var_dump($data);