JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10979312
json
{
  "response": {
    "fps": 62,
    "fps_avg": 56,
    "entities_count": 116765,
    "world_seed": 1539870744,
    "world_size": 4500,
    "steam_id": "90286585608003584",
    "domain": null,
    "id": 10979312,
    "ip": "69.30.244.178",
    "port": 55526,
    "query": 55528,
    "color": 0,
    "city": "Kansas City",
    "description": "![AfterShock | 3x | No Limit | 50% Upkeep | NEW](https://i.ibb.co/dJ6xbLqr/aftershock-3x-nolimit.png)\nAfterShock 3x Rust Server \r\n \r\n Wipe Schedule \r\n ◆ Map: Thursdays @ 3PM EST (or during forced updates) \r\n ◆ Blueprints: Monthly \r\n \r\n Rates \r\n ◆ 3x Gather | 3x Loot | 3x Stack \r\n ◆ 50% Upkeep Cost \r\n \r\n Rules \r\n ◆ No hacking or scripting \r\n ◆ No intentional bug abuse \r\n ◆ No EAC or Facepunch banned alternate accounts \r\n ◆ No ban evading \r\n ◆ No racism or hate speech \r\n \r\n Server Features \r\n ◆ Optimized for strong performance \r\n ◆ Active, non-playing admins \r\n ◆ Carefully selected map seeds \r\n ◆ Server protected by Server Armour",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780319592,
    "last_online": 1780602037,
    "icon": null,
    "name": "AfterShock | 3x | No Limit | 50% Upkeep | NEW",
    "connect": "69.30.244.178:55526",
    "request": "69.30.244.178:55528",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1769901093,
    "last_update": 1780602037,
    "banned": false,
    "wipe": 1778186788,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3894,
    "language": "en",
    "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/10979312");
$data = json_decode($json, true);
var_dump($data);