JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/223992
json
{
  "response": {
    "fps": 179,
    "fps_avg": 178,
    "entities_count": 100340,
    "world_seed": 842350880,
    "world_size": 4000,
    "steam_id": "90284672840139798",
    "domain": null,
    "id": 223992,
    "ip": "13.53.128.138",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Stockholm",
    "description": "![Rust up North](https://gfx.northrust.eu/img/upnorthlogo.png)\nServer is modded to prevent raids. Maximum team size is 3. Minicopter decay inside is reduced to 2 weeks.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776633793,
    "score": null,
    "last_online": 1776880820,
    "icon": null,
    "name": "Rust up North",
    "connect": "13.53.128.138:28015",
    "request": "13.53.128.138:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1582979135,
    "last_update": 1776880820,
    "banned": false,
    "wipe": 1775153650,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2130,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/223992");
$data = json_decode($json, true);
var_dump($data);