JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/686842
json
{
  "response": {
    "fps": 94,
    "fps_avg": 97,
    "entities_count": 112529,
    "world_seed": 279,
    "world_size": 4500,
    "steam_id": 90286585509167120,
    "domain": null,
    "id": 686842,
    "ip": "23.94.102.82",
    "port": 28016,
    "query": 28019,
    "color": 0,
    "city": "Dallas",
    "description": "![! The Alamo Texas Noobs Welcome](https://hosting.photobucket.com/1aa12785-51be-401b-bc6c-35cf0ef43d30/319b7d30-6f95-4d5d-9d57-7086c96061d3.png)\nThe Alamo Texas a Volten Gaming server \r\n Server specific rules and information. \r\n Weekly wipe schedule. \r\n Monthly blueprint. \r\n Active staff members. \r\n Online since April 2020. \r\n Volten Gaming rules are available on our website.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780596032,
    "icon": null,
    "name": "! The Alamo Texas Noobs Welcome",
    "connect": "23.94.102.82:28016",
    "request": "23.94.102.82:28019",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1670760486,
    "last_update": 1780596862,
    "banned": false,
    "wipe": 1780002606,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 8964,
    "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/686842");
$data = json_decode($json, true);
var_dump($data);