JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11305695
json
{
  "response": {
    "fps": 125,
    "fps_avg": 123,
    "entities_count": 138294,
    "world_seed": 86,
    "world_size": 5000,
    "steam_id": "90286589744537618",
    "domain": null,
    "id": 11305695,
    "ip": "108.201.195.35",
    "port": 38020,
    "query": 38021,
    "color": 0,
    "city": "Avon",
    "description": "![! MTG: 1MX PVP 1000000X |No BPs|1M Stacks !](https://www.metimegaming.com/_silo/_ondeck/MTG-1MX-Header.png)\n--> Last wipe: May 7th 2026\r\n--> Next wipe: June 4th 2026\r\n\r\n--> 50 bags and active turrets!\r\n--> Very active Admin\r\n--> Discord overlay friendly \r\n\r\n--> The more scrap in your TC, the more/longer your base is protected while you are offline! NOTE: Your base takes normal damage when you are online. 1% damage when offline!\r\n\r\n--> Server restarts daily at 05:00 Eastern US time\r\n--> Call a vote for up to 4 attack helicopters to your location (once per hour)\r\n--> VIP information at our Discord\r\n--> No BPs\r\n--> Raid Alarm\r\n--> Clans (unlimited size)\r\n--> Fast Smelt\r\n--> TP\r\n--> Bgrade with up command!\r\n--> Remove tool\r\n--> Death notices\r\n--> Furnace Splitter\r\n--> Guarded Crate\r\n--> Bradley Guards\r\n--> Auto, no fuel lamp and lanterns\r\n\r\nNote: Some bans are set to forever!\r\n--> VAC ban less than one year, is now an auto 30-day ban\r\n--> Banned from 3 Steam games is now an auto 30-day ban\r\n--> Using a VPN (proxy) will get you an auto kick. Just come back without using a proxy \r\n\r\n Admin contact: PM at our Discord\r\n\r\n Discord: https://discord.gg/PTpCGGy",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780567467,
    "last_online": 1780588231,
    "icon": null,
    "name": "! MTG: 1MX PVP 1000000X |No BPs|1M Stacks !",
    "connect": "108.201.195.35:38020",
    "request": "108.201.195.35:38021",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592897,
    "last_update": 1780588231,
    "banned": false,
    "wipe": 1778176766,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4560,
    "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/11305695");
$data = json_decode($json, true);
var_dump($data);