JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/759963
json
{
  "response": {
    "fps": 55,
    "fps_avg": 54,
    "entities_count": 120836,
    "world_seed": 148090100,
    "world_size": 4250,
    "steam_id": "90286604065760272",
    "domain": null,
    "id": 759963,
    "ip": "64.40.223.7",
    "port": 28032,
    "query": 28031,
    "color": 0,
    "city": "Abilene",
    "description": "![Four Horsemen | 2X | No BP Wipe | Half Upkeep](https://i.imgur.com/hUukTAY.jpeg)\nFour Horsemen | 2X | Thursdays | No BP Wipe | Half Upkeep\r\nServer rules can be found on our discord.\r\nhttps://discord.gg/TEdvqP27An\r\n\r\nNon-Playing Admins/Mods\r\n\r\nLast BP Wipe - Never\r\nNext BP Wipe -  Never - Only when forced\r\nMap Wipe - Every Thursday 1PM Central\r\n2X Stacks And Gather Rates\r\nAlpha Loot - Junk Items Removed From Loot Boxes\r\nNoob Friendly\r\nHalf Upkeep\r\nClans\r\nWeekly Wipe Cycle - Thursdays 1 PM Central\r\n\r\nVisit our store\r\nhttps://four-horsemen.tebex.io",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780605029,
    "icon": null,
    "name": "Four Horsemen | 2X | No BP Wipe | Half Upkeep",
    "connect": "64.40.223.7:28032",
    "request": "64.40.223.7:28031",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1680784799,
    "last_update": 1780605029,
    "banned": false,
    "wipe": 1780596092,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1477,
    "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/759963");
$data = json_decode($json, true);
var_dump($data);