JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8197659
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 73688,
    "world_seed": 1337,
    "world_size": 3300,
    "steam_id": "90286603784166405",
    "domain": null,
    "id": 8197659,
    "ip": "156.236.84.48",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "Dallas",
    "description": "![[NA] Willjum's 3x Fridays](https://media.discordapp.net/attachments/1087970531527102504/1101108762560970852/RustBanner.png)\nWelcome to [NA] Willjum's 3x Fridays, Enjoy a more casual Rust experience with optimized loot tables, 3x higher gather rate, free DLC features, and advanced automatic cheater detection. This all packed into a small map with lots of PVP and player interaction.\r\n\r\nGeneral information:\r\n➤ Wipe schedule: Weekly Friday @ 4pm ET | Monthly BPs\r\n➤ 3100 Map size\r\n➤ Buy VIP:  Store.willjum.com\r\n➤ Join Discord: Discord.gg/willjum\r\n➤ Advanced custom made Anti cheat system\r\n➤ Active staff\r\n\r\nGameplay Features:\r\n➤ Building skins, Choose any building skin by using /bskin\r\n➤ Free barrel DLC, Type /barrel while holding a box to convert it into a barrel\r\n➤ Drone shops, Recyclers & gambling added to the fishing villages\r\n➤ Cozy Custom outpost (Check out the saloon)\r\n➤ Optimized map generation: We generate 100+ maps each wipe and pick the best one to get all your favorite monuments and build spots into a small map\r\n\r\nModded features:\r\n➤ 3x gather rate\r\n➤ Optimized loot tables (Junk removed)\r\n➤ 2x Craft speed\r\n➤ Fast nights\r\n\r\nRules:\r\n➤ Rule #1 -- No cheating/Exploiting\r\n➤ Rule #2 -- No Ban evasion/Cheater Assosiation\r\n➤ Rule #3 -- No Extreme toxicity/Spam\r\n➤ Rule #4 -- Don't impersonate staff or the server\r\nFull list of rules in Discord.gg/willjum",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779959623,
    "last_online": 1780623625,
    "icon": null,
    "name": "[NA] Willjum's 3x Fridays",
    "connect": "156.236.84.48:28014",
    "request": "156.236.84.48:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 16,
    "maxplayers": 350,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1742388423,
    "last_update": 1780623625,
    "banned": false,
    "wipe": 1780595588,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1282,
    "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/8197659");
$data = json_decode($json, true);
var_dump($data);