JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/1822852
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 105639,
    "world_seed": 1046314577,
    "world_size": 4250,
    "steam_id": "90286604129131521",
    "domain": null,
    "id": 1822852,
    "ip": "162.55.236.48",
    "port": 28035,
    "query": 28038,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU] FireRust 10x|Modded|5Max|Wiped 4/6](https://www.firerust.com/img/headers/firerust_10x.png)\nWelcome to our 10x Modded server!\n\nThis server is fully PVP but does have a lot of PVE aspects to it. There are lots of events and a rewards system that gives you in-game money when you play, gather resources, and kill players.\n\nRules on this server:\n-No accounts with more than 1 VAC ban. VAC ban must be older than 365 days\n-No private/not setup accounts allowed\n-No Racism.\n-No pornographic signs when using /sil.\n-No Cheating.\n-No Glitching/Exploiting.\n-You are required to be in the same clan when teaming.\n-Max Team size: 5. You must be in the same team the whole wipe. All kinds of teaming more than 5 will result in a temporary ban.\n\nJoin our Discord: firerust.com/discord\n\nThe last wipe was on Thursday 4/6\nThe next wipe will be on Thursday 18/6 (14 day wipe schedule)\nThe map size is 4250 and the seed is 1046314577 (BP wiped Thursday 4/6)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780605029,
    "icon": null,
    "name": "[EU] FireRust 10x|Modded|5Max|Wiped 4/6",
    "connect": "162.55.236.48:28035",
    "request": "162.55.236.48:28038",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1699911949,
    "last_update": 1780605029,
    "banned": false,
    "wipe": 1780596587,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2290,
    "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/1822852");
$data = json_decode($json, true);
var_dump($data);