API pentru ««« IMPERIAL-STATE-MC.RU[1.16.5-1.20] »»» ▶ ОБНОВЛЕНИЕ - ГОРОДА - СФЕРЫ, ИВЕНТЫ
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6193841,
"ip": "45.93.200.16",
"port": 25582,
"query": 25582,
"project_id": null,
"color": 0,
"city": "Nizhnevartovsk",
"description": null,
"game": 9000034,
"owner": null,
"boosts": 1,
"last_offline": 1778509418,
"last_online": 1780971133,
"icon": null,
"name": "««« IMPERIAL-STATE-MC.RU[1.16.5-1.20] »»» ▶ ОБНОВЛЕНИЕ - ГОРОДА - СФЕРЫ, ИВЕНТЫ",
"connect": "45.93.200.16:25582",
"request": "45.93.200.16:25582",
"map": null,
"gamemode": null,
"version": "1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6",
"numplayers": 0,
"maxplayers": 1000,
"bots": 0,
"secured": null,
"private": null,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1728261729,
"last_update": 1780971133,
"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": 2411,
"language": "ru",
"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/6193841");
$data = json_decode($json, true);
var_dump($data);