JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511724
json
{
  "response": {
    "fps": 15,
    "fps_avg": 15,
    "entities_count": 93764,
    "world_seed": 1,
    "world_size": 4000,
    "steam_id": "90286362098995206",
    "domain": null,
    "id": 11511724,
    "ip": "156.236.84.49",
    "port": 28065,
    "query": 28066,
    "color": 0,
    "city": "Dallas",
    "description": "![BRN Solo/Duo/Trio/Quad/Max5 | x2 Loot/Gather](https://upload.metsh.tech/download.png)\nWelcome to BradsRustyNetwork!\r\nWe offer a modded experience with balanced kits!\r\n\r\n★ x2 Loot with no junk\r\n★ x2 Gather\r\n★ Higher stacks\r\n★ Max of 5 for Teams\r\n★ The Best performing hardware\r\n★ Reward for joining the discord\r\n★ Weekly wipes\r\n★ Recyclers at monuments",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780559614,
    "last_online": 1780078826,
    "icon": null,
    "name": "BRN Solo/Duo/Trio/Quad/Max5 | x2 Loot/Gather",
    "connect": "156.236.84.49:28065",
    "request": "156.236.84.49:28066",
    "map": "BRN Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353863,
    "last_update": 1780559614,
    "banned": false,
    "wipe": 1779999057,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11923,
    "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/11511724");
$data = json_decode($json, true);
var_dump($data);