JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/3679691
json
{
  "response": {
    "fps": 11,
    "fps_avg": 14,
    "entities_count": 64796,
    "world_seed": 2084509121,
    "world_size": 3500,
    "steam_id": "90286605171225602",
    "domain": null,
    "id": 3679691,
    "ip": "135.148.137.125",
    "port": 28415,
    "query": 28417,
    "color": 0,
    "city": "Warrenton",
    "description": "![Sunset | Vanilla Solo Only | Noob Friendly | Monthly](https://github.com/daniel-wil/sunset/blob/main/icons/SunsetBanner.png?raw=true)\nWelcome To Sunset Solo Monthly Group Size = Solo(1) - Blueprints Wipe Monthly On Forcewipe! [Server Rules] : - No cheating, scripting or exploiting. No impersonation of staff members. - No Overteaming , Solo ONLY (no exceptions) - No spam, racism or discrimination. - No DDoS/DOXXING threats of any sort. - No 1 Rust/EAC Banned account under 180 days - No 2 Rust/EAC Banned account(s). [Server Perks]: - Active Staff - High Performance Servers - DDoS Protected For more information join our Discord by clicking the blue button!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599269,
    "last_online": 1780623626,
    "icon": null,
    "name": "Sunset | Vanilla Solo Only | Noob Friendly | Monthly",
    "connect": "135.148.137.125:28415",
    "request": "135.148.137.125:28417",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1711959639,
    "last_update": 1780623626,
    "banned": false,
    "wipe": 1780599352,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1416,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/3679691");
$data = json_decode($json, true);
var_dump($data);