JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/4261919
json
{
  "response": {
    "fps": 53,
    "fps_avg": 51,
    "entities_count": 199895,
    "world_seed": 0,
    "world_size": 6000,
    "steam_id": "90285552948853764",
    "domain": null,
    "id": 4261919,
    "ip": "51.222.10.172",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Montreal",
    "description": "![InfernalJustice PVE Hardcore Server](https://drive.google.com/file/d/1yribBOiUQJwbP8fHOjceExiW8eAOCW37/view?usp=drive_link)\nThis server has been created by and for people who love the PVE experience but are sick of easy PVE servers, that removes Rust from its roots as a survival game. Looting and Stealing are allowed so lock your stuff up. Key Elements: Hardcore PVE, No Tech Tree, Twig is Vulnerable, Death Notices, 2 Sleeping Bag Limit,No Suicide.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778355187,
    "score": 0,
    "last_online": 1778602824,
    "icon": null,
    "name": "InfernalJustice PVE Hardcore Server",
    "connect": "51.222.10.172:28035",
    "request": "51.222.10.172:28036",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1715849059,
    "last_update": 1778602824,
    "banned": false,
    "wipe": 1778181212,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3063,
    "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/4261919");
$data = json_decode($json, true);
var_dump($data);