JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11639141
json
{
  "response": {
    "fps": 117,
    "fps_avg": 115,
    "entities_count": 71164,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286559135965208",
    "domain": null,
    "id": 11639141,
    "ip": "66.51.99.70",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Dallas",
    "description": "![NA RUST Company - Tags & Territory | RUST x Real Battlefield](https://assets.playrustcompany.com/Images/header4.png)\nCompletely NEW gamemode | Vanilla Rust x Real Battlefield\r\n- Two Large Teams\r\n- Squads Inside Large Teams\r\n- Balanced/Mirrored Custom Map\r\n- Capture Points\r\n- Scoreboard\r\n- Dogtags Economy\r\n- Weekly Campaigns, With Winner Team at the End\r\n\r\nVisit Web-site for more information: Playrustcompany.com\r\nOr Join growing community on Discord: https://discord.gg/afzJCZRGqT",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780670003,
    "last_online": 1780506632,
    "icon": null,
    "name": "NA RUST Company - Tags & Territory | RUST x Real Battlefield",
    "connect": "66.51.99.70:28020",
    "request": "66.51.99.70:28021",
    "map": "Launch Island",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779917955,
    "last_update": 1780670003,
    "banned": false,
    "wipe": 1780346005,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11927,
    "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/11639141");
$data = json_decode($json, true);
var_dump($data);