API dla Currently under maintenance We will be back soon!
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": "legacyschool.my.id",
"id": 11750321,
"ip": "185.207.166.156",
"port": 25040,
"query": 25040,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1780519118,
"last_online": 1780566118,
"icon": null,
"name": "Currently under maintenance We will be back soon!",
"connect": "legacyschool.my.id:25040",
"request": "185.207.166.156:25040",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": null,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780519118,
"last_update": 1780566118,
"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": 4645,
"language": "nl",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11750321");
$data = json_decode($json, true);
var_dump($data);