API pentru ALLOUTWAR Linux|2x|Weekly|Fridays|Wiped:17.04

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10699351
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 46904,
    "world_seed": 6387,
    "world_size": 3000,
    "steam_id": "90284799162377240",
    "domain": null,
    "id": 10699351,
    "ip": "81.226.57.218",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Piteå",
    "description": "![ALLOUTWAR Linux|2x|Weekly|Fridays|Wiped:17.04](http://i.ibb.co/vzhY6Qc/rsz-rust-icon-small-0.png)\n\r\n◦  Welcome To Alloutwar 2X  ◦ \r\n \r\n◦  For Windows and Linux players. \r\n◦  2X gather rate. \r\n◦  Map size 3000. \r\n◦  Map wipe Fridays at 14.00 CET. \r\n◦  BP wipe Fridays following a forcewipe at 14.00 CET. \r\n◦  No VAC bans newer than 365 days. \r\n◦  No scripting or hacking. \r\n◦  No intentional bug abuse. \r\n◦  Active admins. \r\n◦  Dedicated server. \r\n◦  Daily auto restart at 08.00 CET.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776837800,
    "score": 0,
    "last_online": 1776883356,
    "icon": null,
    "name": "ALLOUTWAR Linux|2x|Weekly|Fridays|Wiped:17.04",
    "connect": "81.226.57.218:28015",
    "request": "81.226.57.218:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1765122736,
    "last_update": 1776883356,
    "banned": false,
    "wipe": 1776428128,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4243,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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