JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10116786
json
{
  "response": {
    "fps": 45,
    "fps_avg": 44,
    "entities_count": 51987,
    "world_seed": 758141313,
    "world_size": 3000,
    "steam_id": "90286266926043162",
    "domain": null,
    "id": 10116786,
    "ip": "213.5.132.40",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Peterborough",
    "description": "![[EU] RichMansRust | Survive, Earn & Conquer](https://i.postimg.cc/XqYWXkMf/banner.png)\nA unique take on a monthly Rust experience with an incentive of becoming rich! Grind your way earning Scrap and purchasing in game VIP MEMBERSHIP & MORE!\r\n \r\n◈ Week 1: Workbench Progression\r\n◈ Week 2: Bradleys Road Roam + Workbenches Unlocked\r\n◈ Week 3: Random Raids Enabled\r\n◈ Week 4+: Battlefield Rust Experience\r\n \r\n◈Features:\r\n- Scrap Currency\r\n- No Tech Tree\r\n- Offline Raid Protection (Using Scrap)\r\n- Faster Crafting\r\n- /shop\r\n- /quests\r\n- /remove\r\n- Roamers\r\n- Zombies\r\n- RaidableBases\r\n- New Server Events\r\n- Smaller Map to account for pop limit\r\n- AND MUCH MORE!\r\n \r\n◈WIPE SCHEDULE:\r\nMonthly\r\nMap & Blueprint wipe is on every first Thursday of the month. (Forced Wipe)\r\nOn wipe day the server is shutdown early between 4PM-6PM GMT untill the update is applied (Around 8:30PM GMT)\r\n \r\nClick 'View Webpage' for the Discord for more info & GLHF!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605215,
    "last_online": 1779940227,
    "icon": null,
    "name": "[EU] RichMansRust | Survive, Earn & Conquer",
    "connect": "213.5.132.40:28015",
    "request": "213.5.132.40:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1755725435,
    "last_update": 1780605215,
    "banned": false,
    "wipe": 1778202762,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9988,
    "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/10116786");
$data = json_decode($json, true);
var_dump($data);