API для This is a dummy CS 1.6 server!
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790104876,
"app": {
"id": 3,
"name": "Counter-Strike",
"steam_id": 10,
"url": "counter-strike"
},
"color": 0,
"connect": "130.94.82.95:27084",
"country": "KW",
"domain": null,
"game": 10,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16916094,
"ip": "130.94.82.95",
"language": "ar",
"last_update": 1790311278,
"map": "de_alejandro",
"maxplayers": 32,
"name": "This is a dummy CS 1.6 server!",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27084,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27084,
"request": "130.94.82.95:27084",
"secured": false,
"status": false,
"steam_id": "90293217997904919",
"version": "1.1.2.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Эль-Кувейт",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790311278,
"last_online": 1790106082,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 27310,
"wipe_period": null,
"os": "w",
"region": 5,
"product": "cstrike",
"gametype": "protocol:48",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16916094");
$data = json_decode($json, true);
var_dump($data);