JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10684720
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 29472,
    "world_seed": 1,
    "world_size": 2500,
    "steam_id": "90286733302447104",
    "domain": null,
    "id": 10684720,
    "ip": "148.113.159.48",
    "port": 28035,
    "query": 28036,
    "project_id": null,
    "color": 0,
    "city": "Montreal",
    "description": "Welcome to LionServer Trio|Duo|Solo\r\n\r\n Join us on LionServer Rust to learn the fundamentals with a little relief from the environment. We've reduced upkeep 50% so you can come and go freely knowing it wasn't  decay that took your loot. \r\n\r\nCheck us out at www.lionserver.ca \r\n\r\nF7 for reports,\r\n\r\nServer Rules : \r\n\r\n1. No toxicity - keep chat positive,\r\n2. Respect newbies, \r\n4. Teach a skill, learn a skill, \r\n3. No teaming, \r\n4. No hate speech, \r\n5. No VPNs \r\n6. No cheats or exploits, \r\n7. No bots or bot like behavior,\r\n8. No Interfering:\r\n*This includes but isn't limited to, harm, grief, harass, threaten, interrupt, interfere with or misuse the LionServer administration services, network, other users, community members or staff.* \r\n   \r\n Fun, learning, and fair play wins, \r\n\r\n LionServer Administration Service",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780944033,
    "icon": null,
    "name": "LionServer - Trio | Active Admins | Quebec | Beginner Friendly",
    "connect": "148.113.159.48:28035",
    "request": "148.113.159.48:28036",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1764589565,
    "last_update": 1780944033,
    "banned": false,
    "wipe": 1780596290,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4270,
    "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/10684720");
$data = json_decode($json, true);
var_dump($data);