JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/12950991
json
{
  "response": {
    "add_date": 1785313311,
    "app": {
      "id": 67,
      "name": "ARK: Survival Evolved",
      "steam_id": 346110,
      "url": "ark-survival-evolved"
    },
    "color": 0,
    "connect": "31.58.161.2:7800",
    "country": "FR",
    "domain": null,
    "game": 346110,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 12950991,
    "ip": "31.58.161.2",
    "language": "fr",
    "last_update": 1791611090,
    "map": "Aberration",
    "maxplayers": 50,
    "name": "[FR-PVE] ADE MODS - x3 REC X3 / Tam X10 & Rep X10",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 7800,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 27100,
    "request": "31.58.161.2:27100",
    "secured": true,
    "status": true,
    "steam_id": "90294487401265178",
    "version": "358.24",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Париж",
    "description": null,
    "disabled_modules": [],
    "gamemode": "TestGameMode_C",
    "hidden": false,
    "last_offline": 1791603912,
    "last_online": 1791611090,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 7951,
    "wipe_period": null,
    "MOD0_s": "751991809:08D51D7E4078F9DF0580B281589CC6D5",
    "MOD1_s": "1999447172:86E42BFD46FE40638D694AA8CBE644A4",
    "MOD2_s": "1404697612:87CB9E1D490C5FA6D4F255B2952F8302",
    "MOD3_s": "889745138:E23A8057493F3DE6E378DB9E99B6510A",
    "ModId_l": "0",
    "P2PADDR": "90294487401265178",
    "P2PPORT": "7800",
    "LEGACY_i": "0",
    "DayTime_s": "1366",
    "OWNINGNAME": "90294487401265178",
    "listentype": "d",
    "ClusterId_s": "cluster200",
    "environment": "w",
    "Networking_i": "0",
    "SESSIONFLAGS": "683",
    "a2s_protocol": 17,
    "MATCHTIMEOUT_f": "120.000000",
    "NUMOPENPUBCONN": "50",
    "SESSIONISPVE_i": "1",
    "HASACTIVEMODS_i": "1",
    "OFFICIALSERVER_i": "0",
    "SEARCHKEYWORDS_s": "Custom",
    "ServerPassword_b": "false",
    "players_complete": true,
    "CUSTOMSERVERNAME_s": "[fr-pve] ade mods - x3 rec x3 / tam x10 & rep x10",
    "ALLOWDOWNLOADCHARS_i": "1",
    "ALLOWDOWNLOADITEMS_i": "1",
    "SERVERUSESBATTLEYE_b": "true"
  }
}

Примеры кода

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12950991");
$data = json_decode($json, true);
var_dump($data);