API для TEST KRANIN
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790268268,
"app": {
"id": 168,
"name": "Samp",
"steam_id": 9000035,
"url": "samp"
},
"color": 0,
"connect": "31.77.12.2:7777",
"country": "DE",
"domain": null,
"game": 9000035,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17072374,
"ip": "31.77.12.2",
"language": "de",
"last_update": 1790937420,
"map": "v16.40.0",
"maxplayers": 150,
"name": "TEST KRANIN",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7777,
"request": "31.77.12.2:7777",
"secured": null,
"status": true,
"steam_id": null,
"version": "0.3.7-R2",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "Release",
"hidden": false,
"last_offline": 1790869023,
"last_online": 1790937420,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1219,
"wipe_period": null,
"pr": false,
"openMp": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17072374");
$data = json_decode($json, true);
var_dump($data);