JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/7174334
json
{
  "response": {
    "fps": 80,
    "fps_avg": 79,
    "entities_count": 103919,
    "world_seed": 1483743531,
    "world_size": 4250,
    "steam_id": "90286454298863617",
    "domain": null,
    "id": 7174334,
    "ip": "81.16.176.157",
    "port": 7053,
    "query": 7055,
    "color": 0,
    "city": "Solihull",
    "description": "![Muff Rust Main | 50% Upkeep | No BP Wipes](https://i.imgur.com/3tu0PIr.png)\nWelcome to Muff Rust!  Step back in time and embrace wild, untamed Rust experience.  Half Upkeep... The true survival experience just raw,  warfare.  Can you survive?  Pure Survival  Focus on building and surviving, not grinding for upkeep.  No Blueprint Wipes – Keep your learned recipes and progress as you grow stronger in the world. Starter Community – Beginner-friendly with an helpful player base and fair gameplay.  Need Help? – Join our Discord for support and community interactions.  Can you master the best survival game?",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780575643,
    "icon": null,
    "name": "Muff Rust Main | 50% Upkeep | No BP Wipes",
    "connect": "81.16.176.157:7053",
    "request": "81.16.176.157:7055",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1736279674,
    "last_update": 1780575643,
    "banned": false,
    "wipe": 1778757080,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2919,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/7174334");
$data = json_decode($json, true);
var_dump($data);