JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9706046
json
{
  "response": {
    "fps": 20,
    "fps_avg": 20,
    "entities_count": 146380,
    "world_seed": 324187018,
    "world_size": 4800,
    "steam_id": "90286579882982421",
    "domain": null,
    "id": 9706046,
    "ip": "159.196.202.188",
    "port": 28065,
    "query": 28067,
    "color": 0,
    "city": "Perth",
    "description": "![[AU] RusticRaiders|PVP Community Server. Monthly wipes. Beginne](https://rusticraiders.com.au/rusticraiders/images/HeaderImage.png)\nLooking for a chill Rust experience without the chaos and toxicity?\r\nWelcome to RusticRaiders Vanilla Rust! We're a brand new, low-pop server based right here in Perth, designed for players who want to enjoy the core Rust gameplay in a friendly, cheat-free environment.\r\n\r\nThis server is perfect for:\r\n\r\n⬤ Beginners: New to Rust? This is the ideal place to learn the ropes without being constantly overwhelmed by large groups or aggressive players.\r\n\r\n⬤ Monthly map and BP wipes.  Solo, Duo, or Trio Teams: Whether you prefer to brave the wilds alone or team up with a couple of mates, our server is balanced for smaller groups, ensuring a more manageable and enjoyable experience.\r\n\r\n⬤ Clean Fun: We have a strict zero-tolerance policy for cheating, griefing, or any form of toxic behavior. Our aim is to foster a community where everyone can have fun and build without fear.\r\n\r\n⬤ Pure Vanilla: No mods, no custom plugins – just the authentic Rust experience as the developers intended. This means a level playing field for everyone.\r\n\r\nJoin us for a refreshing take on Rust, where fair play and good vibes are the priority. Build, explore, and survive at your own pace in a welcoming community. See you in-game!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780542269,
    "last_online": 1780586434,
    "icon": null,
    "name": "[AU] RusticRaiders|PVP Community Server. Monthly wipes. Beginne",
    "connect": "159.196.202.188:28065",
    "request": "159.196.202.188:28067",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1751752658,
    "last_update": 1780586434,
    "banned": false,
    "wipe": 1778181252,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3433,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9706046");
$data = json_decode($json, true);
var_dump($data);