JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10508674
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 137110,
    "world_seed": 620351077,
    "world_size": 4500,
    "steam_id": "90286589763920913",
    "domain": null,
    "id": 10508674,
    "ip": "66.51.99.63",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![CANDYLAND CARNAGE | PVE | NOOB FRIENDLY | NO DECAY](https://8upload.com/image/438166c8ca204aff/Gemini_Generated_Image_me3wzvme3wzvme3w.png)\nWelcome to Candyland Carnage\r\nWhere sugar meets survival\r\n\r\nOur community was created with farmers, builders, roleplayers, and traders in mind. Whether you're looking to relax, create, or explore, this is a space where creativity thrives without the usual pressure of survival servers.\r\n\r\nTake a trip to Sweetwater, our custom-built town filled with shops, trading hubs, and roleplay opportunities. It’s the heart of the server—perfect for meeting others, trading, quests gathering or just enjoying the atmosphere.\r\n\r\nServer Features:\r\nEconomy System – Earn, trade, and build your wealth\r\nRewards Store – Spend your earnings on useful and fun items\r\nZombies – PvE combat encounters to keep things exciting\r\nBalloon Heist Event – High-risk, high-reward server event\r\nRaidable Bases – Test your skills against NPC-controlled bases\r\nQuests – Take on tasks and earn rewards as you progress\r\nTrading System – Player-driven economy and exchanges\r\nSign Artist – Customize your builds with unique signs\r\nRemover Tool – Build freely and adjust without stress\r\nVIP Packages – Extra perks for enhanced gameplay\r\n& More!\r\n\r\nServer Rules & Playstyle:\r\nNo Upkeep / No Decay – Build as much as you want without worrying about maintenance\r\nNo Player-to-Player Damage (PvE Only) – A relaxed, friendly environment with no PvP\r\nRoleplay Friendly – Create stories, businesses, and communities\r\n\r\nWhether you’re designing your dream base, trading to your hearts content, or taking on zombies and events, there’s something here for everyone.\r\n\r\nCome join us. Rust & Chill.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780044769,
    "last_online": 1780579238,
    "icon": null,
    "name": "CANDYLAND CARNAGE | PVE | NOOB FRIENDLY | NO DECAY",
    "connect": "66.51.99.63:28000",
    "request": "66.51.99.63:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1761421347,
    "last_update": 1780579238,
    "banned": false,
    "wipe": 1778178887,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3642,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/10508674");
$data = json_decode($json, true);
var_dump($data);