JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/2310519
json
{
  "response": {
    "fps": 67,
    "fps_avg": 68,
    "entities_count": 156143,
    "world_seed": 123123123,
    "world_size": 5000,
    "steam_id": "90286574638039061",
    "domain": null,
    "id": 2310519,
    "ip": "64.40.9.217",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "London",
    "description": "![WE PLAY SOLO ONLY [3X] [MONTHLY] [NO BPS] 07/05](https://i.ibb.co/fPmvLCd/we-play-solo-only.png)\n[ SHORT INFO ] If you pure solo player, try our server, who knows maybe it's a best server for you... Server allows players to enjoy an improved mid and end game experience with a skill of raid protection! Allows casual or even noob players design bases properly without having a fear of being raided same day! Once you find out how all works, you be able to survive very long!\r\n\r\n[ SERVER SETTINGS ] Gather rates can be increased by\r\nlearning skills and using tea buffs up to ( 3x )\r\nGroup/team limits is ( SOLO ONLY ) Server wipes ( monthly )\r\nStarting gather rates is ( 2x )\r\n\r\n[ JOIN OUR DISCORD ] http://discord.gg/qqv9eav6TP",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780922009,
    "last_online": 1780597229,
    "icon": null,
    "name": "WE PLAY SOLO ONLY [3X] [MONTHLY] [NO BPS] 07/05",
    "connect": "64.40.9.217:28015",
    "request": "64.40.9.217:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1703673659,
    "last_update": 1780922009,
    "banned": false,
    "wipe": 1778185829,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9553,
    "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/2310519");
$data = json_decode($json, true);
var_dump($data);