API pentru ! [ SKrafty ] [ Learn Play Fun! ] ! ! [ New Bedwars Maps! ] !

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/590389
json
{
  "response": {
    "steam_id": null,
    "domain": "minecraft.skrafty.com",
    "id": 590389,
    "ip": "149.56.106.185",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Montreal",
    "description": "",
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776070990,
    "score": null,
    "last_online": 1776114644,
    "icon": null,
    "name": "! [ SKrafty ] [ Learn Play Fun! ] ! ! [ New Bedwars Maps! ] !",
    "connect": "minecraft.skrafty.com:25565",
    "request": "149.56.106.185:25565",
    "map": null,
    "gamemode": "FML",
    "version": "Waterfall 1.8.x, 1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x",
    "numplayers": 4,
    "maxplayers": 1,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1669213289,
    "last_update": 1776114644,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2089,
    "language": "en",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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