Counter-Strike: Source
API для [v34] TIME2LUCK.RU | © Public 18+
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/7193945json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7193945,
"ip": "46.174.55.157",
"port": 27777,
"query": 27777,
"color": 0,
"city": "Moscow",
"description": null,
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775981517,
"score": 0,
"last_online": 1776118823,
"icon": null,
"name": "[v34] TIME2LUCK.RU | © Public 18+",
"connect": "46.174.55.157:27777",
"request": "46.174.55.157:27777",
"map": "de_cbble",
"gamemode": "Counter-Strike: Source",
"version": "1.0.0.34",
"numplayers": 1,
"maxplayers": 40,
"bots": 7,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1736340042,
"last_update": 1776118823,
"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": 604,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/7193945");
$data = json_decode($json, true);
var_dump($data);