JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4126355
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 98569,
    "world_seed": 902834415,
    "world_size": 4250,
    "steam_id": "90286603845779481",
    "domain": null,
    "id": 4126355,
    "ip": "159.69.226.146",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Nuremberg",
    "description": "![Rusted Noobs Solo Only x2](https://i.postimg.cc/K8GyTsV0/Newheader.png)\nWelcome to Rusted Noobs SOLO ONLY\r\n SERVER INFO:\r\nBlueprints Wipe Monthly Every Force Wipe!\r\nGather rates x2 (Sulfur x1)\r\nComponent-Resources Stack Size Doubled!\r\nUpkeep 50%\r\nRecyclers in all monuments!\r\nDrone Markeplace in all safezones!\r\nNPC DRIVEN TAXIS (VIPs Only)\r\nJoin Our Friendly Non Toxic Community!\r\nDiscord: https://discord.gg/gjsBqd3Jun  (or hit VIEW WEBPAGE button!)\r\nJoin our Discord for Map wipe Schedules! Also use Discord for Reports! \r\nDDoS Protected\r\nNo Lag, Non playing Active Admins\r\nServer Rules:\r\nNo racist,homophobic or any kind of bad language\r\nNo Teaming\r\nNo Raiding/Roaming/Farming with other players\r\nNo bagging other players\r\nBase giveaways are not allowed\r\nNo free items giveaways\r\nYou can however give tier 1 items to new spawns\r\nTrades Only in safe zones, shop fronts or vending machines\r\nAny kind of teaming will result in a ban for both players\r\nVac Banned players will get banned!\r\nToxic players will get banned!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780600230,
    "icon": null,
    "name": "Rusted Noobs Solo Only x2",
    "connect": "159.69.226.146:28025",
    "request": "159.69.226.146:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 4,
    "maxplayers": 80,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1714755157,
    "last_update": 1780600230,
    "banned": false,
    "wipe": 1780595631,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1742,
    "language": "de",
    "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/4126355");
$data = json_decode($json, true);
var_dump($data);