JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11189431
json
{
  "response": {
    "fps": 73,
    "fps_avg": 69,
    "entities_count": 210446,
    "world_seed": 946036005,
    "world_size": 4250,
    "steam_id": "90286769815101445",
    "domain": null,
    "id": 11189431,
    "ip": "174.86.45.201",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Saint Charles",
    "description": "![[US] Rust For Parents | Hybrid PvPvE | 0.5x Upkeep](https://i.ibb.co/svJ2Zk45/R4-PBanner.png)\nWelcome to Rust For Parents!\r\n\r\nRelaxed Hybrid PvPvE for adults who love the game but have a life.\r\n\r\n-  0.5x Upkeep: Base survives the work week\r\n- Hybrid Gameplay: Safe PvE during the week\r\n- PvP & Raid Weekends: Fri-Sun 9PM EST\r\n- Opt-In Raiding: Use PBPZ bubbles to flag for action!\r\n\r\nNo Toxicity | No Griefing | Respect the Grind\r\n\r\nClick the 'External Website' button below to join our Discord!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780952665,
    "last_online": 1780958424,
    "icon": null,
    "name": "[US] Rust For Parents | Hybrid PvPvE | 0.5x Upkeep",
    "connect": "174.86.45.201:28015",
    "request": "174.86.45.201:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 33,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 70,
    "add_date": 1772699053,
    "last_update": 1780958424,
    "banned": false,
    "wipe": 1780598817,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 761,
    "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/11189431");
$data = json_decode($json, true);
var_dump($data);