API для Christmas Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792414248,
"app": {
"id": 3,
"name": "Counter-Strike",
"steam_id": 10,
"url": "counter-strike"
},
"color": 0,
"connect": "86.123.225.229:27016",
"country": "RO",
"domain": null,
"game": 10,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18686012,
"ip": "86.123.225.229",
"language": "ro",
"last_update": 1792569947,
"map": "de_dust2_2x2_xmas",
"maxplayers": 20,
"name": "Christmas Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27016,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "86.123.225.229:27016",
"secured": true,
"status": false,
"steam_id": "90295244273089556",
"version": "1.1.2.7/Stdio",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Брашов",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1792569947,
"last_online": 1792416042,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 94025,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "cstrike",
"gametype": null,
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18686012");
$data = json_decode($json, true);
var_dump($data);