JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11158711
json
{
  "response": {
    "fps": 38,
    "fps_avg": 35,
    "entities_count": 98675,
    "world_seed": 1446541271,
    "world_size": 4250,
    "steam_id": "90286465366155265",
    "domain": null,
    "id": 11158711,
    "ip": "193.135.10.103",
    "port": 15253,
    "query": 15254,
    "color": 0,
    "city": "Wolfsburg",
    "description": "[EU/GER]Rusty UPGRADE HARD|FW 21.05|Loot+|Solo/Duo|Events|Minicopter|Decay50%|Panel| \nLight usefull helping things :) \n Info:\n - PVP\n - Server language is German (English is tolerated)\n - InfoPanel\n - Long day and small nights\n - RecyclerSpeed\n - DangerousTreasures\n - CargoPlaneCrash\n - Bradley\n - VehicleAirDrops\n - Group limit = 2\n - low upkeep approx. 1/2, i.e. resource requirement for maintaining the base is approx. 50%\n\n - Wipe including blueprints: Every 1st Thursday of the month.\n - Wipe only (no BP Wipe) 1-2weeks. (population Quest)\n - if the pop is low, wipe may be earlier.\n - Griefing, Doorcamping, hacking, bugusing will be punished with a ban!\n - offline raids are allowed, but online raids are explicitly desired.\n - Chat language is German. English is tolerated.\n - Friendly interaction with each other (follow netiquette).\n - No sexist, racist or offensive expressions.\n - Blackmail and anti-social behavior will not be tolerated!\n - If players do not comply with warnings, they will be excluded from the server.\n - walling a monument is forbidden!\n - Server restart: Daily at 5:00 am (approx. 15 minutes).\n - If the server crashes or you lose things due to a bug, they will NOT be replaced!\n\n - Serversprache ist Deutsch (Englisch wird toleriert) \n - low upkeep ca. 1/2, d.h. Ressourcenbedarf zur Erhaltung der Base liegt bei ca. 50% \n - Gruppenlimit = 2 \n - Wipe inkl. Blueprints: Jeden 1. Donnerstag im Monat.\n - Wipe ohne Blueprints alle 1-2 Wochen. (Je nach Population)\n - offline Raids sind zwar erlaubt, aber online Raids sind erwuescht.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780585414,
    "last_online": 1780336835,
    "icon": null,
    "name": "[EU/GER]Rusty UPGRADE HARD|FW 21.05|Loot+|Solo/Duo|Events|Minic",
    "connect": "193.135.10.103:15253",
    "request": "193.135.10.103:15254",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772228115,
    "last_update": 1780585414,
    "banned": false,
    "wipe": 1779368109,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10792,
    "language": "de",
    "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/11158711");
$data = json_decode($json, true);
var_dump($data);