JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9905571
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 146713,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286737891389455",
    "domain": null,
    "id": 9905571,
    "ip": "82.153.70.49",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "City of London",
    "description": "![Rust4Noobs | PvE 2x Vanilla+ 50% Monthly | No BP Wipe](https://cdn.4noobs.co/R4N/4k-Wallpaper/4k-Wallpaper%202%20comp.png)\nWelcome to Rust4Noobs! \r\nLooking for a place to learn/chill out, hop on! \r\n \r\n Info: \r\n - Monthly map wipes. \r\n - Blueprints DO NOT wipe. \r\n - No team limit. \r\n - Junk loot removed. \r\n - 2x Loot tables & resources. \r\n - In-game economy \r\n - Inactive bases removed after 7 days  \r\n - VIP perks available @4noobs.co \r\n \r\n Rules: \r\n - No griefing. \r\n - Claim monuments before running them. \r\n - Stealing of ANY kind is not permitted \r\n - Do not",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780764207,
    "last_online": 1780952427,
    "icon": null,
    "name": "Rust4Noobs | PvE 2x Vanilla+ 50% Monthly | No BP Wipe",
    "connect": "82.153.70.49:28015",
    "request": "82.153.70.49:28017",
    "map": "discord.gg/r4n",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 4,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1753908017,
    "last_update": 1780952427,
    "banned": false,
    "wipe": 1780595422,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1957,
    "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/9905571");
$data = json_decode($json, true);
var_dump($data);