JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8390761
json
{
  "response": {
    "fps": 81,
    "fps_avg": 79,
    "entities_count": 169322,
    "world_seed": 60914251,
    "world_size": 4500,
    "steam_id": "90285650855520279",
    "domain": null,
    "id": 8390761,
    "ip": "54.39.161.203",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Beauharnois",
    "description": "![Canadian Backyard PVE](https://i.postimg.cc/B6wz6150/server-header-image-for-dave-esox.jpg)\nWelcome to Canadian Backyard PVE! Thanks for Finding us! We are Family and Builder Friendly! Great Server for First Timers wanting to learn. We have Kids, Adults and Families that play here. So FUN and SAFETY are our First CONCERN! Rudeness is not Tolerated! And RULES are Enforced! We are a Small Community here. (WE ARE A PVE SERVER ONLY!) We offer a Variety of Mods for Builders and Combatants. As well as some others for the Lazier Players too...LOL!!! Take Care and Have Fun! And Welcome to Our RUST Community!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778572981,
    "score": 0,
    "last_online": 1778590218,
    "icon": null,
    "name": "Canadian Backyard PVE",
    "connect": "54.39.161.203:28080",
    "request": "54.39.161.203:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1743673751,
    "last_update": 1778590218,
    "banned": false,
    "wipe": 1778178260,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2457,
    "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/8390761");
$data = json_decode($json, true);
var_dump($data);