JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/1874616
json
{
  "response": {
    "fps": 37,
    "fps_avg": 37,
    "entities_count": 164596,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286591768374279",
    "domain": null,
    "id": 1874616,
    "ip": "65.28.44.27",
    "port": 28039,
    "query": 28038,
    "color": 0,
    "city": "Trevor",
    "description": "![Kapco411 Battlefield Pro50X|TC Protections|Mega Events|500Raidb](https://i.imgur.com/o22aTkl.png)\nThis Pro Battle server is built and maintained for the love of the game.\r\n-Over 20 + events run throughout the wipe.\r\n-Server is 50X on resources with enhanced scrap 2X loot.\r\n-Smart Base technology allowing access to boxes and TC from across the map.\r\n-Base Protections available at the TC with in Game currency.\r\n-Keep on death loot.\r\n-250 mods running,far to much to list.\r\n-Our Servers offer free Tier I VIP perks.\r\n-Have a blast!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780635859,
    "last_online": 1780632027,
    "icon": null,
    "name": "Kapco411 Battlefield Pro50X|TC Protections|Mega Events|500Raidb",
    "connect": "65.28.44.27:28039",
    "request": "65.28.44.27:28038",
    "map": "Custom Maps",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1700406673,
    "last_update": 1780635859,
    "banned": false,
    "wipe": 1779390060,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9593,
    "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/1874616");
$data = json_decode($json, true);
var_dump($data);